aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-06 20:30:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-06 20:30:55 +0200
commita68b6ec7f55ec9a35848fb70ca6edfded174bbb3 (patch)
tree88c73832aa7f754bd970ee499e23434f0ba592d5 /libavutil
parent9e10b2cfc9ec7442e2164a0921be39d0d8be15dd (diff)
downloadffmpeg-a68b6ec7f55ec9a35848fb70ca6edfded174bbb3.tar.gz
avutil/hmac: make const tables static const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hmac.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavutil/hmac.c b/libavutil/hmac.c
index 66f4fa603f..02bdc182a1 100644
--- a/libavutil/hmac.c
+++ b/libavutil/hmac.c
@@ -208,12 +208,12 @@ int main(void)
{
uint8_t key1[20], key3[131], data3[50];
enum AVHMACType i = AV_HMAC_SHA224;
- const uint8_t key2[] = "Jefe";
- const uint8_t data1[] = "Hi There";
- const uint8_t data2[] = "what do ya want for nothing?";
- const uint8_t data4[] = "Test Using Larger Than Block-Size Key - Hash Key First";
- const uint8_t data5[] = "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data";
- const uint8_t data6[] = "This is a test using a larger than block-size key and a larger "
+ static const uint8_t key2[] = "Jefe";
+ static const uint8_t data1[] = "Hi There";
+ static const uint8_t data2[] = "what do ya want for nothing?";
+ static const uint8_t data4[] = "Test Using Larger Than Block-Size Key - Hash Key First";
+ static const uint8_t data5[] = "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data";
+ static const uint8_t data6[] = "This is a test using a larger than block-size key and a larger "
"than block-size data. The key needs to be hashed before being used"
" by the HMAC algorithm.";
AVHMAC *hmac = av_hmac_alloc(AV_HMAC_MD5);