diff options
Diffstat (limited to 'crypto/bf')
-rw-r--r-- | crypto/bf/bf_enc.c | 6 | ||||
-rw-r--r-- | crypto/bf/bf_skey.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/crypto/bf/bf_enc.c b/crypto/bf/bf_enc.c index a43361f433..b380acf959 100644 --- a/crypto/bf/bf_enc.c +++ b/crypto/bf/bf_enc.c @@ -72,7 +72,8 @@ to modify the code. void BF_encrypt(BF_LONG *data, const BF_KEY *key) { #ifndef BF_PTR2 - register BF_LONG l,r,*p,*s; + register BF_LONG l,r; + const register BF_LONG *p,*s; p=key->P; s= &(key->S[0]); @@ -148,7 +149,8 @@ void BF_encrypt(BF_LONG *data, const BF_KEY *key) void BF_decrypt(BF_LONG *data, const BF_KEY *key) { #ifndef BF_PTR2 - register BF_LONG l,r,*p,*s; + register BF_LONG l,r; + const register BF_LONG *p,*s; p=key->P; s= &(key->S[0]); diff --git a/crypto/bf/bf_skey.c b/crypto/bf/bf_skey.c index 4fb869b129..4d6a232fe0 100644 --- a/crypto/bf/bf_skey.c +++ b/crypto/bf/bf_skey.c @@ -66,7 +66,7 @@ void BF_set_key(BF_KEY *key, int len, const unsigned char *data) { int i; BF_LONG *p,ri,in[2]; - unsigned char *d,*end; + const unsigned char *d,*end; memcpy((char *)key,(char *)&bf_init,sizeof(BF_KEY)); |