diff options
Diffstat (limited to 'src/lib/libcrypto/des/dess.cpp')
| -rw-r--r-- | src/lib/libcrypto/des/dess.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/des/dess.cpp b/src/lib/libcrypto/des/dess.cpp index 7fb5987314..5549bab90a 100644 --- a/src/lib/libcrypto/des/dess.cpp +++ b/src/lib/libcrypto/des/dess.cpp | |||
| @@ -32,7 +32,7 @@ void GetTSC(unsigned long& tsc) | |||
| 32 | 32 | ||
| 33 | #include <stdio.h> | 33 | #include <stdio.h> |
| 34 | #include <stdlib.h> | 34 | #include <stdlib.h> |
| 35 | #include "des.h" | 35 | #include <openssl/des.h> |
| 36 | 36 | ||
| 37 | void main(int argc,char *argv[]) | 37 | void main(int argc,char *argv[]) |
| 38 | { | 38 | { |
| @@ -45,19 +45,19 @@ void main(int argc,char *argv[]) | |||
| 45 | { | 45 | { |
| 46 | for (i=0; i<1000; i++) /**/ | 46 | for (i=0; i<1000; i++) /**/ |
| 47 | { | 47 | { |
| 48 | des_encrypt(&data[0],key,1); | 48 | des_encrypt1(&data[0],key,1); |
| 49 | GetTSC(s1); | 49 | GetTSC(s1); |
| 50 | des_encrypt(&data[0],key,1); | 50 | des_encrypt1(&data[0],key,1); |
| 51 | des_encrypt(&data[0],key,1); | 51 | des_encrypt1(&data[0],key,1); |
| 52 | des_encrypt(&data[0],key,1); | 52 | des_encrypt1(&data[0],key,1); |
| 53 | GetTSC(e1); | 53 | GetTSC(e1); |
| 54 | GetTSC(s2); | 54 | GetTSC(s2); |
| 55 | des_encrypt(&data[0],key,1); | 55 | des_encrypt1(&data[0],key,1); |
| 56 | des_encrypt(&data[0],key,1); | 56 | des_encrypt1(&data[0],key,1); |
| 57 | des_encrypt(&data[0],key,1); | 57 | des_encrypt1(&data[0],key,1); |
| 58 | des_encrypt(&data[0],key,1); | 58 | des_encrypt1(&data[0],key,1); |
| 59 | GetTSC(e2); | 59 | GetTSC(e2); |
| 60 | des_encrypt(&data[0],key,1); | 60 | des_encrypt1(&data[0],key,1); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | printf("des %d %d (%d)\n", | 63 | printf("des %d %d (%d)\n", |
