summaryrefslogtreecommitdiff
path: root/crypto/des/dess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/des/dess.cpp')
-rw-r--r--crypto/des/dess.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/crypto/des/dess.cpp b/crypto/des/dess.cpp
index 7fb598731..5549bab90 100644
--- a/crypto/des/dess.cpp
+++ b/crypto/des/dess.cpp
@@ -32,7 +32,7 @@ void GetTSC(unsigned long& tsc)
#include <stdio.h>
#include <stdlib.h>
-#include "des.h"
+#include <openssl/des.h>
void main(int argc,char *argv[])
{
@@ -45,19 +45,19 @@ void main(int argc,char *argv[])
{
for (i=0; i<1000; i++) /**/
{
- des_encrypt(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
GetTSC(s1);
- des_encrypt(&data[0],key,1);
- des_encrypt(&data[0],key,1);
- des_encrypt(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
GetTSC(e1);
GetTSC(s2);
- des_encrypt(&data[0],key,1);
- des_encrypt(&data[0],key,1);
- des_encrypt(&data[0],key,1);
- des_encrypt(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
GetTSC(e2);
- des_encrypt(&data[0],key,1);
+ des_encrypt1(&data[0],key,1);
}
printf("des %d %d (%d)\n",