aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/algorithms.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cipher/algorithms.h52
1 files changed, 25 insertions, 27 deletions
diff --git a/cipher/algorithms.h b/cipher/algorithms.h
index 2802a2acd..36fc8442e 100644
--- a/cipher/algorithms.h
+++ b/cipher/algorithms.h
@@ -79,55 +79,53 @@ sha512_get_info (int algo, size_t *contextsize,
const char *
des_get_info( int algo, size_t *keylen,
- size_t *blocksize, size_t *contextsize,
- int (**setkeyf)( void *c, byte *key, unsigned keylen ),
- void (**encryptf)( void *c, byte *outbuf, byte *inbuf ),
- void (**decryptf)( void *c, byte *outbuf, byte *inbuf )
- );
+ size_t *blocksize, size_t *contextsize,
+ int (**setkeyf)( void *c, const byte *key, unsigned keylen ),
+ void (**encryptf)( void *c, byte *outbuf, const byte *inbuf ),
+ void (**decryptf)( void *c, byte *outbuf, const byte *inbuf )
+ );
const char *
cast5_get_info( int algo, size_t *keylen,
- size_t *blocksize, size_t *contextsize,
- int (**setkeyf)( void *c, byte *key, unsigned keylen ),
- void (**encryptf)( void *c, byte *outbuf, byte *inbuf ),
- void (**decryptf)( void *c, byte *outbuf, byte *inbuf )
- );
+ size_t *blocksize, size_t *contextsize,
+ int (**setkeyf)( void *c, const byte *key, unsigned keylen ),
+ void (**encryptf)( void *c, byte *outbuf, const byte *inbuf ),
+ void (**decryptf)( void *c, byte *outbuf, const byte *inbuf )
+ );
const char *
blowfish_get_info( int algo, size_t *keylen,
size_t *blocksize, size_t *contextsize,
- int (**setkeyf)( void *c, byte *key, unsigned keylen ),
- void (**encryptf)( void *c, byte *outbuf, byte *inbuf ),
- void (**decryptf)( void *c, byte *outbuf, byte *inbuf )
+ int (**setkeyf)(void *c, const byte *key, unsigned keylen),
+ void (**encryptf)(void *c, byte *outbuf, const byte *inbuf),
+ void (**decryptf)(void *c, byte *outbuf, const byte *inbuf)
);
const char *
twofish_get_info( int algo, size_t *keylen,
- size_t *blocksize, size_t *contextsize,
- int (**setkeyf)( void *c, byte *key, unsigned keylen ),
- void (**encryptf)( void *c, byte *outbuf, byte *inbuf ),
- void (**decryptf)( void *c, byte *outbuf, byte *inbuf )
- );
+ size_t *blocksize, size_t *contextsize,
+ int (**setkeyf)( void *c, const byte *key, unsigned keylen ),
+ void (**encryptf)( void *c, byte *outbuf, const byte *inbuf),
+ void (**decryptf)( void *c, byte *outbuf, const byte *inbuf )
+ );
/* this is just a kludge for the time we have not yet changed the cipher
* stuff to the scheme we use for random and digests */
const char *
rijndael_get_info( int algo, size_t *keylen,
size_t *blocksize, size_t *contextsize,
- int (**setkeyf)( void *c, byte *key, unsigned keylen ),
- void (**encryptf)( void *c, byte *outbuf, byte *inbuf ),
- void (**decryptf)( void *c, byte *outbuf, byte *inbuf )
- );
+ int (**setkeyf)( void *c, const byte *key, unsigned keylen),
+ void (**encryptf)(void *c, byte *outbuf, const byte *inbuf),
+ void (**decryptf)(void *c, byte *outbuf, const byte *inbuf)
+ );
const char *
idea_get_info( int algo, size_t *keylen,
size_t *blocksize, size_t *contextsize,
- int (**setkeyf)( void *c, byte *key, unsigned keylen ),
- void (**encryptf)( void *c, byte *outbuf, byte *inbuf ),
- void (**decryptf)( void *c, byte *outbuf, byte *inbuf )
+ int (**setkeyf)( void *c, const byte *key, unsigned keylen ),
+ void (**encryptf)( void *c, byte *outbuf, const byte *inbuf ),
+ void (**decryptf)( void *c, byte *outbuf, const byte *inbuf )
);
-
-
#endif /*GNUPG_ALGORITHMS_H*/