From: J.H.M. Dassen Date: Mon, 14 Dec 1998 23:33:52 +0000 (+0100) Subject: Constness fixes (jdassen@wi.leidenuniv.nl) X-Git-Tag: des_and_blowfish_compiles_19981216~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea13e6c02499a7558a639686968d09e7727e51eb;p=thirdparty%2Fnettle.git Constness fixes (jdassen@wi.leidenuniv.nl) Rev: src/symmetric/include/blowfish.h:1.2 Rev: src/symmetric/include/rc4.h:1.3 --- diff --git a/include/blowfish.h b/include/blowfish.h index dce69523..a6981c26 100644 --- a/include/blowfish.h +++ b/include/blowfish.h @@ -40,12 +40,12 @@ typedef struct { } BLOWFISH_context; -const char * +CONST char * blowfish_get_info( int algo, size_t *keylen, size_t *blocksize, size_t *contextsize, - int (**setkey)( void *c, const byte *key, unsigned keylen ), - void (**encrypt)( void *c, byte *outbuf, const byte *inbuf ), - void (**decrypt)( void *c, byte *outbuf, const byte *inbuf ) + int (**setkey)( void *c, CONST byte *key, unsigned keylen ), + void (**encrypt)( void *c, byte *outbuf, CONST byte *inbuf ), + void (**decrypt)( void *c, byte *outbuf, CONST byte *inbuf ) ); #endif /*G10_BLOWFISH_H*/ diff --git a/include/rc4.h b/include/rc4.h index 3e9827d5..32bbf5ca 100644 --- a/include/rc4.h +++ b/include/rc4.h @@ -16,7 +16,7 @@ struct rc4_ctx { void rc4_init(struct rc4_ctx *ctx); #endif -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_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); #endif /* RC4_H_INCLUDED */