summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
authorbeck <>2001-06-22 00:03:44 +0000
committerbeck <>2001-06-22 00:03:44 +0000
commit38b6ff9e5294811c57541ad47940f8f8f41dc114 (patch)
tree402699541cee3cf3f2943b0384dbda7de534de70 /src/lib/libcrypto/evp
parentafae624d63e4e717c5bae8c7842a4712309f728f (diff)
downloadopenbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.gz
openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.bz2
openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.zip
openssl-engine-0.9.6a merge
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/Makefile.ssl3
-rw-r--r--src/lib/libcrypto/evp/evp.h36
2 files changed, 36 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/Makefile.ssl b/src/lib/libcrypto/evp/Makefile.ssl
index ad39fcc9e7..624168031d 100644
--- a/src/lib/libcrypto/evp/Makefile.ssl
+++ b/src/lib/libcrypto/evp/Makefile.ssl
@@ -58,7 +58,8 @@ all: lib
58 58
59lib: $(LIBOBJ) 59lib: $(LIBOBJ)
60 $(AR) $(LIB) $(LIBOBJ) 60 $(AR) $(LIB) $(LIBOBJ)
61 $(RANLIB) $(LIB) 61 @echo You may get an error following this line. Please ignore.
62 - $(RANLIB) $(LIB)
62 @touch lib 63 @touch lib
63 64
64files: 65files:
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index 62350dfd69..76d417b44a 100644
--- a/src/lib/libcrypto/evp/evp.h
+++ b/src/lib/libcrypto/evp/evp.h
@@ -462,12 +462,20 @@ typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
462 ASN1_TYPE *param, EVP_CIPHER *cipher, 462 ASN1_TYPE *param, EVP_CIPHER *cipher,
463 EVP_MD *md, int en_de); 463 EVP_MD *md, int en_de);
464 464
465#ifndef NO_RSA
465#define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\ 466#define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\
466 (char *)(rsa)) 467 (char *)(rsa))
468#endif
469
470#ifndef NO_DSA
467#define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\ 471#define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\
468 (char *)(dsa)) 472 (char *)(dsa))
473#endif
474
475#ifndef NO_DH
469#define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH,\ 476#define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH,\
470 (char *)(dh)) 477 (char *)(dh))
478#endif
471 479
472/* Add some extra combinations */ 480/* Add some extra combinations */
473#define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a)) 481#define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a))
@@ -611,17 +619,29 @@ void BIO_set_cipher(BIO *b,const EVP_CIPHER *c,unsigned char *k,
611#endif 619#endif
612 620
613EVP_MD *EVP_md_null(void); 621EVP_MD *EVP_md_null(void);
622#ifndef NO_MD2
614EVP_MD *EVP_md2(void); 623EVP_MD *EVP_md2(void);
624#endif
625#ifndef NO_MD4
615EVP_MD *EVP_md4(void); 626EVP_MD *EVP_md4(void);
627#endif
628#ifndef NO_MD5
616EVP_MD *EVP_md5(void); 629EVP_MD *EVP_md5(void);
630#endif
631#ifndef NO_SHA
617EVP_MD *EVP_sha(void); 632EVP_MD *EVP_sha(void);
618EVP_MD *EVP_sha1(void); 633EVP_MD *EVP_sha1(void);
619EVP_MD *EVP_dss(void); 634EVP_MD *EVP_dss(void);
620EVP_MD *EVP_dss1(void); 635EVP_MD *EVP_dss1(void);
636#endif
637#ifndef NO_MDC2
621EVP_MD *EVP_mdc2(void); 638EVP_MD *EVP_mdc2(void);
639#endif
640#ifndef NO_RIPEMD
622EVP_MD *EVP_ripemd160(void); 641EVP_MD *EVP_ripemd160(void);
623 642#endif
624EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */ 643EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */
644#ifndef NO_DES
625EVP_CIPHER *EVP_des_ecb(void); 645EVP_CIPHER *EVP_des_ecb(void);
626EVP_CIPHER *EVP_des_ede(void); 646EVP_CIPHER *EVP_des_ede(void);
627EVP_CIPHER *EVP_des_ede3(void); 647EVP_CIPHER *EVP_des_ede3(void);
@@ -635,31 +655,43 @@ EVP_CIPHER *EVP_des_cbc(void);
635EVP_CIPHER *EVP_des_ede_cbc(void); 655EVP_CIPHER *EVP_des_ede_cbc(void);
636EVP_CIPHER *EVP_des_ede3_cbc(void); 656EVP_CIPHER *EVP_des_ede3_cbc(void);
637EVP_CIPHER *EVP_desx_cbc(void); 657EVP_CIPHER *EVP_desx_cbc(void);
658#endif
659#ifndef NO_RC4
638EVP_CIPHER *EVP_rc4(void); 660EVP_CIPHER *EVP_rc4(void);
639EVP_CIPHER *EVP_rc4_40(void); 661EVP_CIPHER *EVP_rc4_40(void);
662#endif
663#ifndef NO_IDEA
640EVP_CIPHER *EVP_idea_ecb(void); 664EVP_CIPHER *EVP_idea_ecb(void);
641EVP_CIPHER *EVP_idea_cfb(void); 665EVP_CIPHER *EVP_idea_cfb(void);
642EVP_CIPHER *EVP_idea_ofb(void); 666EVP_CIPHER *EVP_idea_ofb(void);
643EVP_CIPHER *EVP_idea_cbc(void); 667EVP_CIPHER *EVP_idea_cbc(void);
668#endif
669#ifndef NO_RC2
644EVP_CIPHER *EVP_rc2_ecb(void); 670EVP_CIPHER *EVP_rc2_ecb(void);
645EVP_CIPHER *EVP_rc2_cbc(void); 671EVP_CIPHER *EVP_rc2_cbc(void);
646EVP_CIPHER *EVP_rc2_40_cbc(void); 672EVP_CIPHER *EVP_rc2_40_cbc(void);
647EVP_CIPHER *EVP_rc2_64_cbc(void); 673EVP_CIPHER *EVP_rc2_64_cbc(void);
648EVP_CIPHER *EVP_rc2_cfb(void); 674EVP_CIPHER *EVP_rc2_cfb(void);
649EVP_CIPHER *EVP_rc2_ofb(void); 675EVP_CIPHER *EVP_rc2_ofb(void);
676#endif
677#ifndef NO_BF
650EVP_CIPHER *EVP_bf_ecb(void); 678EVP_CIPHER *EVP_bf_ecb(void);
651EVP_CIPHER *EVP_bf_cbc(void); 679EVP_CIPHER *EVP_bf_cbc(void);
652EVP_CIPHER *EVP_bf_cfb(void); 680EVP_CIPHER *EVP_bf_cfb(void);
653EVP_CIPHER *EVP_bf_ofb(void); 681EVP_CIPHER *EVP_bf_ofb(void);
682#endif
683#ifndef NO_CAST
654EVP_CIPHER *EVP_cast5_ecb(void); 684EVP_CIPHER *EVP_cast5_ecb(void);
655EVP_CIPHER *EVP_cast5_cbc(void); 685EVP_CIPHER *EVP_cast5_cbc(void);
656EVP_CIPHER *EVP_cast5_cfb(void); 686EVP_CIPHER *EVP_cast5_cfb(void);
657EVP_CIPHER *EVP_cast5_ofb(void); 687EVP_CIPHER *EVP_cast5_ofb(void);
688#endif
689#ifndef NO_RC5
658EVP_CIPHER *EVP_rc5_32_12_16_cbc(void); 690EVP_CIPHER *EVP_rc5_32_12_16_cbc(void);
659EVP_CIPHER *EVP_rc5_32_12_16_ecb(void); 691EVP_CIPHER *EVP_rc5_32_12_16_ecb(void);
660EVP_CIPHER *EVP_rc5_32_12_16_cfb(void); 692EVP_CIPHER *EVP_rc5_32_12_16_cfb(void);
661EVP_CIPHER *EVP_rc5_32_12_16_ofb(void); 693EVP_CIPHER *EVP_rc5_32_12_16_ofb(void);
662 694#endif
663void OpenSSL_add_all_algorithms(void); 695void OpenSSL_add_all_algorithms(void);
664void OpenSSL_add_all_ciphers(void); 696void OpenSSL_add_all_ciphers(void);
665void OpenSSL_add_all_digests(void); 697void OpenSSL_add_all_digests(void);