comparison sha1.c @ 289:18a98b19af3f libavutil

explain how to test it
author michael
date Mon, 12 Mar 2007 21:07:38 +0000
parents c82b7b95e69d
children 8f02801da0f8
comparison
equal deleted inserted replaced
288:c82b7b95e69d 289:18a98b19af3f
116 for (i = 0; i < 20; i++) { 116 for (i = 0; i < 20; i++) {
117 digest[i] = context->state[i>>2] >> ((3-(i & 3)) * 8) ; 117 digest[i] = context->state[i>>2] >> ((3-(i & 3)) * 8) ;
118 } 118 }
119 } 119 }
120 120
121 // use the following to test
122 // gcc -DTEST -DHAVE_AV_CONFIG_H -I.. sha1.c -O3 -W -Wall -o sha1 && time ./sha1
121 #ifdef TEST 123 #ifdef TEST
122 #include <stdio.h> 124 #include <stdio.h>
123 #undef printf 125 #undef printf
124 126
125 int main(){ 127 int main(){