summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bf/bf_ecb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bf/bf_ecb.c')
-rw-r--r--src/lib/libcrypto/bf/bf_ecb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bf/bf_ecb.c b/src/lib/libcrypto/bf/bf_ecb.c
index 9f8a24cdff..341991636f 100644
--- a/src/lib/libcrypto/bf/bf_ecb.c
+++ b/src/lib/libcrypto/bf/bf_ecb.c
@@ -61,11 +61,11 @@
61#include <openssl/opensslv.h> 61#include <openssl/opensslv.h>
62 62
63/* Blowfish as implemented from 'Blowfish: Springer-Verlag paper' 63/* Blowfish as implemented from 'Blowfish: Springer-Verlag paper'
64 * (From LECTURE NOTES IN COIMPUTER SCIENCE 809, FAST SOFTWARE ENCRYPTION, 64 * (From LECTURE NOTES IN COMPUTER SCIENCE 809, FAST SOFTWARE ENCRYPTION,
65 * CAMBRIDGE SECURITY WORKSHOP, CAMBRIDGE, U.K., DECEMBER 9-11, 1993) 65 * CAMBRIDGE SECURITY WORKSHOP, CAMBRIDGE, U.K., DECEMBER 9-11, 1993)
66 */ 66 */
67 67
68const char *BF_version="BlowFish" OPENSSL_VERSION_PTEXT; 68const char *BF_version="Blowfish" OPENSSL_VERSION_PTEXT;
69 69
70const char *BF_options(void) 70const char *BF_options(void)
71 { 71 {
@@ -78,17 +78,17 @@ const char *BF_options(void)
78#endif 78#endif
79 } 79 }
80 80
81void BF_ecb_encrypt(unsigned char *in, unsigned char *out, BF_KEY *ks, 81void BF_ecb_encrypt(const unsigned char *in, unsigned char *out,
82 int encrypt) 82 const BF_KEY *key, int encrypt)
83 { 83 {
84 BF_LONG l,d[2]; 84 BF_LONG l,d[2];
85 85
86 n2l(in,l); d[0]=l; 86 n2l(in,l); d[0]=l;
87 n2l(in,l); d[1]=l; 87 n2l(in,l); d[1]=l;
88 if (encrypt) 88 if (encrypt)
89 BF_encrypt(d,ks); 89 BF_encrypt(d,key);
90 else 90 else
91 BF_decrypt(d,ks); 91 BF_decrypt(d,key);
92 l=d[0]; l2n(l,out); 92 l=d[0]; l2n(l,out);
93 l=d[1]; l2n(l,out); 93 l=d[1]; l2n(l,out);
94 l=d[0]=d[1]=0; 94 l=d[0]=d[1]=0;