diff options
author | Richard Levitte <levitte@openssl.org> | 2000-02-08 14:19:14 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-02-08 14:19:14 +0000 |
commit | cf0694015e8fcb6cd09f191299b6ad9d8793760e (patch) | |
tree | 8248f5e06d1b1f5da5c9fe4e65dd1a012503a7c0 /crypto/bf/blowfish.h | |
parent | 0cd4498b8f32bb0cb60724c42aa1014f724b2f2c (diff) | |
download | openssl-cf0694015e8fcb6cd09f191299b6ad9d8793760e.tar.gz |
Constify
Diffstat (limited to 'crypto/bf/blowfish.h')
-rw-r--r-- | crypto/bf/blowfish.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/crypto/bf/blowfish.h b/crypto/bf/blowfish.h index 02f73b2f30..78acfd63b4 100644 --- a/crypto/bf/blowfish.h +++ b/crypto/bf/blowfish.h @@ -103,17 +103,19 @@ typedef struct bf_key_st } BF_KEY; -void BF_set_key(BF_KEY *key, int len, unsigned char *data); -void BF_ecb_encrypt(unsigned char *in,unsigned char *out,BF_KEY *key, - int enc); -void BF_encrypt(BF_LONG *data,BF_KEY *key); -void BF_decrypt(BF_LONG *data,BF_KEY *key); -void BF_cbc_encrypt(unsigned char *in, unsigned char *out, long length, - BF_KEY *ks, unsigned char *iv, int enc); -void BF_cfb64_encrypt(unsigned char *in, unsigned char *out, long length, - BF_KEY *schedule, unsigned char *ivec, int *num, int enc); -void BF_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, - BF_KEY *schedule, unsigned char *ivec, int *num); +void BF_set_key(BF_KEY *key, int len, const unsigned char *data); + +void BF_encrypt(BF_LONG *data,const BF_KEY *key); +void BF_decrypt(BF_LONG *data,const BF_KEY *key); + +void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, + const BF_KEY *key, int enc); +void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, + const BF_KEY *schedule, unsigned char *ivec, int enc); +void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, + const BF_KEY *schedule, unsigned char *ivec, int *num, int enc); +void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out, long length, + const BF_KEY *schedule, unsigned char *ivec, int *num); const char *BF_options(void); #ifdef __cplusplus |