# HG changeset patch # User bcoudurier # Date 1171213037 0 # Node ID 998d097d926d9e66650984037ce255852816d43d # Parent 80f17646fa2dcae536a00eae13249f20988e4d6e make key parameter const diff -r 80f17646fa2d -r 998d097d926d aes.c --- a/aes.c Sun Feb 11 12:50:33 2007 +0000 +++ b/aes.c Sun Feb 11 16:57:17 2007 +0000 @@ -120,7 +120,7 @@ } // this is based on the reference AES code by Paulo Barreto and Vincent Rijmen -int av_aes_init(AVAES *a, uint8_t *key, int key_bits, int decrypt) { +int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt) { int i, j, t, rconpointer = 0; uint8_t tk[8][4]; int KC= key_bits>>5; diff -r 80f17646fa2d -r 998d097d926d aes.h --- a/aes.h Sun Feb 11 12:50:33 2007 +0000 +++ b/aes.h Sun Feb 11 16:57:17 2007 +0000 @@ -30,7 +30,7 @@ * @param key_bits 128, 192 or 256 * @param decrypt 0 for encryption, 1 for decryption */ -int av_aes_init(struct AVAES *a, uint8_t *key, int key_bits, int decrypt); +int av_aes_init(struct AVAES *a, const uint8_t *key, int key_bits, int decrypt); /** * encrypts / decrypts.