changeset 241:998d097d926d libavutil

make key parameter const
author bcoudurier
date Sun, 11 Feb 2007 16:57:17 +0000
parents 80f17646fa2d
children 2d2e2b4e50fa
files aes.c aes.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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.