diff options
author | beck <> | 2000-03-19 11:13:58 +0000 |
---|---|---|
committer | beck <> | 2000-03-19 11:13:58 +0000 |
commit | 796d609550df3a33fc11468741c5d2f6d3df4c11 (patch) | |
tree | 6c6d539061caa20372dad0ac4ddb1dfae2fbe7fe /src/lib/libcrypto/evp/evp.h | |
parent | 5be3114c1fd7e0dfea1e38d3abb4cbba75244419 (diff) | |
download | openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.gz openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.bz2 openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.zip |
OpenSSL 0.9.5 merge
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2
if you are using the ssl26 packages for ssh and other things to work you will
need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 570fe27d39..54215b0905 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
@@ -149,7 +149,7 @@ extern "C" { | |||
149 | 149 | ||
150 | /* Type needs to be a bit field | 150 | /* Type needs to be a bit field |
151 | * Sub-type needs to be for variations on the method, as in, can it do | 151 | * Sub-type needs to be for variations on the method, as in, can it do |
152 | * arbitary encryption.... */ | 152 | * arbitrary encryption.... */ |
153 | typedef struct evp_pkey_st | 153 | typedef struct evp_pkey_st |
154 | { | 154 | { |
155 | int type; | 155 | int type; |
@@ -343,7 +343,7 @@ typedef struct evp_cipher_ctx_st | |||
343 | unsigned char buf[EVP_MAX_IV_LENGTH]; /* saved partial block */ | 343 | unsigned char buf[EVP_MAX_IV_LENGTH]; /* saved partial block */ |
344 | int num; /* used by cfb/ofb mode */ | 344 | int num; /* used by cfb/ofb mode */ |
345 | 345 | ||
346 | char *app_data; /* aplication stuff */ | 346 | char *app_data; /* application stuff */ |
347 | union { | 347 | union { |
348 | #ifndef NO_RC4 | 348 | #ifndef NO_RC4 |
349 | struct | 349 | struct |
@@ -421,9 +421,10 @@ typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, | |||
421 | #define EVP_MD_size(e) ((e)->md_size) | 421 | #define EVP_MD_size(e) ((e)->md_size) |
422 | #define EVP_MD_block_size(e) ((e)->block_size) | 422 | #define EVP_MD_block_size(e) ((e)->block_size) |
423 | 423 | ||
424 | #define EVP_MD_CTX_md(e) ((e)->digest) | ||
424 | #define EVP_MD_CTX_size(e) EVP_MD_size((e)->digest) | 425 | #define EVP_MD_CTX_size(e) EVP_MD_size((e)->digest) |
425 | #define EVP_MD_CTX_block_size(e) EVP_MD_block_size((e)->digest) | 426 | #define EVP_MD_CTX_block_size(e) EVP_MD_block_size((e)->digest) |
426 | #define EVP_MD_CTX_type(e) ((e)->digest) | 427 | #define EVP_MD_CTX_type(e) EVP_MD_type((e)->digest) |
427 | 428 | ||
428 | #define EVP_CIPHER_nid(e) ((e)->nid) | 429 | #define EVP_CIPHER_nid(e) ((e)->nid) |
429 | #define EVP_CIPHER_block_size(e) ((e)->block_size) | 430 | #define EVP_CIPHER_block_size(e) ((e)->block_size) |
@@ -521,15 +522,14 @@ void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); | |||
521 | void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx,unsigned char *out, | 522 | void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx,unsigned char *out, |
522 | int *outl,unsigned char *in,int inl); | 523 | int *outl,unsigned char *in,int inl); |
523 | void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx,unsigned char *out,int *outl); | 524 | void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx,unsigned char *out,int *outl); |
524 | int EVP_EncodeBlock(unsigned char *t, unsigned char *f, int n); | 525 | int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n); |
525 | 526 | ||
526 | void EVP_DecodeInit(EVP_ENCODE_CTX *ctx); | 527 | void EVP_DecodeInit(EVP_ENCODE_CTX *ctx); |
527 | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx,unsigned char *out,int *outl, | 528 | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx,unsigned char *out,int *outl, |
528 | unsigned char *in, int inl); | 529 | unsigned char *in, int inl); |
529 | int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned | 530 | int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned |
530 | char *out, int *outl); | 531 | char *out, int *outl); |
531 | int EVP_DecodeBlock(unsigned char *t, unsigned | 532 | int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n); |
532 | char *f, int n); | ||
533 | 533 | ||
534 | void ERR_load_EVP_strings(void ); | 534 | void ERR_load_EVP_strings(void ); |
535 | 535 | ||
@@ -594,9 +594,12 @@ EVP_CIPHER *EVP_rc5_32_12_16_ecb(void); | |||
594 | EVP_CIPHER *EVP_rc5_32_12_16_cfb(void); | 594 | EVP_CIPHER *EVP_rc5_32_12_16_cfb(void); |
595 | EVP_CIPHER *EVP_rc5_32_12_16_ofb(void); | 595 | EVP_CIPHER *EVP_rc5_32_12_16_ofb(void); |
596 | 596 | ||
597 | void SSLeay_add_all_algorithms(void); | 597 | void OpenSSL_add_all_algorithms(void); |
598 | void SSLeay_add_all_ciphers(void); | 598 | void OpenSSL_add_all_ciphers(void); |
599 | void SSLeay_add_all_digests(void); | 599 | void OpenSSL_add_all_digests(void); |
600 | #define SSLeay_add_all_algorithms() OpenSSL_add_all_algorithms() | ||
601 | #define SSLeay_add_all_ciphers() OpenSSL_add_all_ciphers() | ||
602 | #define SSLeay_add_all_digests() OpenSSL_add_all_digests() | ||
600 | 603 | ||
601 | int EVP_add_cipher(EVP_CIPHER *cipher); | 604 | int EVP_add_cipher(EVP_CIPHER *cipher); |
602 | int EVP_add_digest(EVP_MD *digest); | 605 | int EVP_add_digest(EVP_MD *digest); |
@@ -613,6 +616,18 @@ int EVP_PKEY_type(int type); | |||
613 | int EVP_PKEY_bits(EVP_PKEY *pkey); | 616 | int EVP_PKEY_bits(EVP_PKEY *pkey); |
614 | int EVP_PKEY_size(EVP_PKEY *pkey); | 617 | int EVP_PKEY_size(EVP_PKEY *pkey); |
615 | int EVP_PKEY_assign(EVP_PKEY *pkey,int type,char *key); | 618 | int EVP_PKEY_assign(EVP_PKEY *pkey,int type,char *key); |
619 | #ifndef NO_RSA | ||
620 | int EVP_PKEY_set1_RSA(EVP_PKEY *pkey,RSA *key); | ||
621 | RSA * EVP_PKEY_get1_RSA(EVP_PKEY *pkey); | ||
622 | #endif | ||
623 | #ifndef NO_DSA | ||
624 | int EVP_PKEY_set1_DSA(EVP_PKEY *pkey,DSA *key); | ||
625 | DSA * EVP_PKEY_get1_DSA(EVP_PKEY *pkey); | ||
626 | #endif | ||
627 | #ifndef NO_DH | ||
628 | int EVP_PKEY_set1_DH(EVP_PKEY *pkey,DH *key); | ||
629 | DH * EVP_PKEY_get1_DH(EVP_PKEY *pkey); | ||
630 | #endif | ||
616 | EVP_PKEY * EVP_PKEY_new(void); | 631 | EVP_PKEY * EVP_PKEY_new(void); |
617 | void EVP_PKEY_free(EVP_PKEY *pkey); | 632 | void EVP_PKEY_free(EVP_PKEY *pkey); |
618 | EVP_PKEY * d2i_PublicKey(int type,EVP_PKEY **a, unsigned char **pp, | 633 | EVP_PKEY * d2i_PublicKey(int type,EVP_PKEY **a, unsigned char **pp, |
@@ -621,6 +636,8 @@ int i2d_PublicKey(EVP_PKEY *a, unsigned char **pp); | |||
621 | 636 | ||
622 | EVP_PKEY * d2i_PrivateKey(int type,EVP_PKEY **a, unsigned char **pp, | 637 | EVP_PKEY * d2i_PrivateKey(int type,EVP_PKEY **a, unsigned char **pp, |
623 | long length); | 638 | long length); |
639 | EVP_PKEY * d2i_AutoPrivateKey(EVP_PKEY **a, unsigned char **pp, | ||
640 | long length); | ||
624 | int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp); | 641 | int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp); |
625 | 642 | ||
626 | int EVP_PKEY_copy_parameters(EVP_PKEY *to,EVP_PKEY *from); | 643 | int EVP_PKEY_copy_parameters(EVP_PKEY *to,EVP_PKEY *from); |
@@ -677,6 +694,9 @@ void EVP_PBE_cleanup(void); | |||
677 | #define EVP_F_EVP_PKEY_COPY_PARAMETERS 103 | 694 | #define EVP_F_EVP_PKEY_COPY_PARAMETERS 103 |
678 | #define EVP_F_EVP_PKEY_DECRYPT 104 | 695 | #define EVP_F_EVP_PKEY_DECRYPT 104 |
679 | #define EVP_F_EVP_PKEY_ENCRYPT 105 | 696 | #define EVP_F_EVP_PKEY_ENCRYPT 105 |
697 | #define EVP_F_EVP_PKEY_GET1_DH 119 | ||
698 | #define EVP_F_EVP_PKEY_GET1_DSA 120 | ||
699 | #define EVP_F_EVP_PKEY_GET1_RSA 121 | ||
680 | #define EVP_F_EVP_PKEY_NEW 106 | 700 | #define EVP_F_EVP_PKEY_NEW 106 |
681 | #define EVP_F_EVP_SIGNFINAL 107 | 701 | #define EVP_F_EVP_SIGNFINAL 107 |
682 | #define EVP_F_EVP_VERIFYFINAL 108 | 702 | #define EVP_F_EVP_VERIFYFINAL 108 |
@@ -693,10 +713,13 @@ void EVP_PBE_cleanup(void); | |||
693 | #define EVP_R_DIFFERENT_KEY_TYPES 101 | 713 | #define EVP_R_DIFFERENT_KEY_TYPES 101 |
694 | #define EVP_R_ENCODE_ERROR 115 | 714 | #define EVP_R_ENCODE_ERROR 115 |
695 | #define EVP_R_EVP_PBE_CIPHERINIT_ERROR 119 | 715 | #define EVP_R_EVP_PBE_CIPHERINIT_ERROR 119 |
716 | #define EVP_R_EXPECTING_AN_RSA_KEY 127 | ||
717 | #define EVP_R_EXPECTING_A_DH_KEY 128 | ||
718 | #define EVP_R_EXPECTING_A_DSA_KEY 129 | ||
696 | #define EVP_R_INPUT_NOT_INITIALIZED 111 | 719 | #define EVP_R_INPUT_NOT_INITIALIZED 111 |
697 | #define EVP_R_IV_TOO_LARGE 102 | 720 | #define EVP_R_IV_TOO_LARGE 102 |
698 | #define EVP_R_KEYGEN_FAILURE 120 | 721 | #define EVP_R_KEYGEN_FAILURE 120 |
699 | #define EVP_R_MISSING_PARMATERS 103 | 722 | #define EVP_R_MISSING_PARAMETERS 103 |
700 | #define EVP_R_NO_DSA_PARAMETERS 116 | 723 | #define EVP_R_NO_DSA_PARAMETERS 116 |
701 | #define EVP_R_NO_SIGN_FUNCTION_CONFIGURED 104 | 724 | #define EVP_R_NO_SIGN_FUNCTION_CONFIGURED 104 |
702 | #define EVP_R_NO_VERIFY_FUNCTION_CONFIGURED 105 | 725 | #define EVP_R_NO_VERIFY_FUNCTION_CONFIGURED 105 |