diff options
Diffstat (limited to 'src/lib/libcrypto/bf/bf_skey.c')
-rw-r--r-- | src/lib/libcrypto/bf/bf_skey.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/libcrypto/bf/bf_skey.c b/src/lib/libcrypto/bf/bf_skey.c index 86574c0acc..3673cdee6e 100644 --- a/src/lib/libcrypto/bf/bf_skey.c +++ b/src/lib/libcrypto/bf/bf_skey.c | |||
@@ -58,21 +58,18 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <string.h> | 60 | #include <string.h> |
61 | #include "blowfish.h" | 61 | #include <openssl/blowfish.h> |
62 | #include "bf_locl.h" | 62 | #include "bf_locl.h" |
63 | #include "bf_pi.h" | 63 | #include "bf_pi.h" |
64 | 64 | ||
65 | void BF_set_key(key,len,data) | 65 | void BF_set_key(BF_KEY *key, int len, const unsigned char *data) |
66 | BF_KEY *key; | ||
67 | int len; | ||
68 | unsigned char *data; | ||
69 | { | 66 | { |
70 | int i; | 67 | int i; |
71 | BF_LONG *p,ri,in[2]; | 68 | BF_LONG *p,ri,in[2]; |
72 | unsigned char *d,*end; | 69 | const unsigned char *d,*end; |
73 | 70 | ||
74 | 71 | ||
75 | memcpy((char *)key,(char *)&bf_init,sizeof(BF_KEY)); | 72 | memcpy(key,&bf_init,sizeof(BF_KEY)); |
76 | p=key->P; | 73 | p=key->P; |
77 | 74 | ||
78 | if (len > ((BF_ROUNDS+2)*4)) len=(BF_ROUNDS+2)*4; | 75 | if (len > ((BF_ROUNDS+2)*4)) len=(BF_ROUNDS+2)*4; |