diff options
Diffstat (limited to 'crypto/bf/bf_ecb.c')
-rw-r--r-- | crypto/bf/bf_ecb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/bf/bf_ecb.c b/crypto/bf/bf_ecb.c index d8d6fff0ff..341991636f 100644 --- a/crypto/bf/bf_ecb.c +++ b/crypto/bf/bf_ecb.c @@ -78,17 +78,17 @@ const char *BF_options(void) #endif } -void BF_ecb_encrypt(unsigned char *in, unsigned char *out, BF_KEY *ks, - int encrypt) +void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, + const BF_KEY *key, int encrypt) { BF_LONG l,d[2]; n2l(in,l); d[0]=l; n2l(in,l); d[1]=l; if (encrypt) - BF_encrypt(d,ks); + BF_encrypt(d,key); else - BF_decrypt(d,ks); + BF_decrypt(d,key); l=d[0]; l2n(l,out); l=d[1]; l2n(l,out); l=d[0]=d[1]=0; |