[Ffmpeg-cvslog] r7935 - in trunk/libavutil: aes.c aes.h

bcoudurier subversion
Sun Feb 11 17:57:17 CET 2007


Author: bcoudurier
Date: Sun Feb 11 17:57:17 2007
New Revision: 7935

Modified:
   trunk/libavutil/aes.c
   trunk/libavutil/aes.h

Log:
make key parameter const

Modified: trunk/libavutil/aes.c
==============================================================================
--- trunk/libavutil/aes.c	(original)
+++ trunk/libavutil/aes.c	Sun Feb 11 17:57:17 2007
@@ -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;

Modified: trunk/libavutil/aes.h
==============================================================================
--- trunk/libavutil/aes.h	(original)
+++ trunk/libavutil/aes.h	Sun Feb 11 17:57:17 2007
@@ -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.




More information about the ffmpeg-cvslog mailing list