} 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*/
#include "crypto_types.h"
void idea_expand(UINT16 *ctx,
- CONST UINT8 *key);
+ const UINT8 *key);
void idea_invert(UINT16 *d,
- CONST UINT16 *e);
+ const UINT16 *e);
-void idea_crypt(CONST UINT16 *ctx,
+void idea_crypt(const UINT16 *ctx,
UINT8 *dest,
- CONST UINT8 *src);
+ const UINT8 *src);
#endif /* IDEA_H_INCLUDED */
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 */