mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* algorithms.h, cast5.c, cipher.c, idea-stub.c, twofish.c, blowfish.c,
des.c, rijndael.c: Consistently use const for input buffers.
This commit is contained in:
parent
ca6dcb7258
commit
b15cc684b8
9 changed files with 112 additions and 135 deletions
|
@ -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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue