Browse Source

make key parameter const

Originally committed as revision 7935 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 18 years ago
parent
commit
57d7b036ea
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavutil/aes.c
  2. +1
    -1
      libavutil/aes.h

+ 1
- 1
libavutil/aes.c View File

@@ -120,7 +120,7 @@ static void init_multbl2(uint8_t tbl[1024], int c[4], uint8_t *log8, uint8_t *al
} }


// this is based on the reference AES code by Paulo Barreto and Vincent Rijmen // 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; int i, j, t, rconpointer = 0;
uint8_t tk[8][4]; uint8_t tk[8][4];
int KC= key_bits>>5; int KC= key_bits>>5;


+ 1
- 1
libavutil/aes.h View File

@@ -30,7 +30,7 @@ struct AVAES;
* @param key_bits 128, 192 or 256 * @param key_bits 128, 192 or 256
* @param decrypt 0 for encryption, 1 for decryption * @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. * encrypts / decrypts.


Loading…
Cancel
Save