Skip to content
Snippets Groups Projects
Commit ea13e6c0 authored by J.H.M. Dassen's avatar J.H.M. Dassen Committed by Niels Möller
Browse files

Constness fixes (jdassen@wi.leidenuniv.nl)

Rev: src/symmetric/include/blowfish.h:1.2
Rev: src/symmetric/include/rc4.h:1.3
parent a9efcd8a
No related branches found
No related tags found
No related merge requests found
...@@ -40,12 +40,12 @@ typedef struct { ...@@ -40,12 +40,12 @@ typedef struct {
} BLOWFISH_context; } BLOWFISH_context;
const char * CONST char *
blowfish_get_info( int algo, size_t *keylen, blowfish_get_info( int algo, size_t *keylen,
size_t *blocksize, size_t *contextsize, size_t *blocksize, size_t *contextsize,
int (**setkey)( void *c, const byte *key, unsigned keylen ), int (**setkey)( void *c, CONST byte *key, unsigned keylen ),
void (**encrypt)( void *c, byte *outbuf, const byte *inbuf ), void (**encrypt)( void *c, byte *outbuf, CONST byte *inbuf ),
void (**decrypt)( void *c, byte *outbuf, const byte *inbuf ) void (**decrypt)( void *c, byte *outbuf, CONST byte *inbuf )
); );
#endif /*G10_BLOWFISH_H*/ #endif /*G10_BLOWFISH_H*/
...@@ -16,7 +16,7 @@ struct rc4_ctx { ...@@ -16,7 +16,7 @@ struct rc4_ctx {
void rc4_init(struct rc4_ctx *ctx); void rc4_init(struct rc4_ctx *ctx);
#endif #endif
void rc4_set_key(struct rc4_ctx *ctx, const UINT8 *key, UINT32 len); void rc4_set_key(struct rc4_ctx *ctx, CONST UINT8 *key, UINT32 len);
void rc4_crypt(struct rc4_ctx *ctx, UINT8 *dest, const UINT8 *src, UINT32 len); void rc4_crypt(struct rc4_ctx *ctx, UINT8 *dest, CONST UINT8 *src, UINT32 len);
#endif /* RC4_H_INCLUDED */ #endif /* RC4_H_INCLUDED */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment