Commit d02f751c authored by Ulf Möller's avatar Ulf Möller
Browse files

Message digest stuff.

parent 79df9d62
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@
#define HASH    SHA1
#endif 

#ifndef NO_SHA
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
@@ -328,4 +329,4 @@ err:
	
	return(ok);
	}
#endif
+2 −1
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@
 * [including the GNU Public Licence.]
 */

#ifndef NO_SHA
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
@@ -108,4 +109,4 @@ err:
	if (ctx != NULL) BN_CTX_free(ctx);
	return(ok);
	}
#endif
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@
 * [including the GNU Public Licence.]
 */

#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
@@ -143,3 +144,4 @@ static void des_cbc_ede_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
		&(ctx->iv[0]),
		ctx->encrypt);
	}
#endif
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@
 * [including the GNU Public Licence.]
 */

#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
@@ -98,3 +99,4 @@ static void des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
	{
	des_ncbc_encrypt(in,out,inl,ctx->c.des_ks,&(ctx->iv[0]),ctx->encrypt);
	}
#endif
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@
 * [including the GNU Public Licence.]
 */

#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
@@ -146,3 +147,4 @@ static void des_ede_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
			       ctx->c.des_ede.ks3,
			       &(ctx->iv[0]),&ctx->num,ctx->encrypt);
	}
#endif
Loading