diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 9898738e64..89ebac415d 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp.h,v 1.87 2021/11/30 18:27:04 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.88 2021/12/12 21:35:46 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -119,6 +119,7 @@ | |||
| 119 | extern "C" { | 119 | extern "C" { |
| 120 | #endif | 120 | #endif |
| 121 | 121 | ||
| 122 | /* Move to evp_locl.h */ | ||
| 122 | /* Type needs to be a bit field | 123 | /* Type needs to be a bit field |
| 123 | * Sub-type needs to be for variations on the method, as in, can it do | 124 | * Sub-type needs to be for variations on the method, as in, can it do |
| 124 | * arbitrary encryption.... */ | 125 | * arbitrary encryption.... */ |
| @@ -163,6 +164,7 @@ typedef int evp_verify_method(int type, const unsigned char *m, | |||
| 163 | void *key); | 164 | void *key); |
| 164 | 165 | ||
| 165 | #ifndef EVP_MD | 166 | #ifndef EVP_MD |
| 167 | /* Move to evp_locl.h */ | ||
| 166 | struct env_md_st { | 168 | struct env_md_st { |
| 167 | int type; | 169 | int type; |
| 168 | int pkey_type; | 170 | int pkey_type; |
| @@ -258,6 +260,7 @@ struct env_md_st { | |||
| 258 | 260 | ||
| 259 | #endif /* !EVP_MD */ | 261 | #endif /* !EVP_MD */ |
| 260 | 262 | ||
| 263 | /* Move to evp_locl.h. */ | ||
| 261 | struct env_md_ctx_st { | 264 | struct env_md_ctx_st { |
| 262 | const EVP_MD *digest; | 265 | const EVP_MD *digest; |
| 263 | ENGINE *engine; /* functional reference if 'digest' is ENGINE-provided */ | 266 | ENGINE *engine; /* functional reference if 'digest' is ENGINE-provided */ |
| @@ -295,6 +298,7 @@ struct env_md_ctx_st { | |||
| 295 | 298 | ||
| 296 | #define EVP_MD_CTX_FLAG_NO_INIT 0x0100 /* Don't initialize md_data */ | 299 | #define EVP_MD_CTX_FLAG_NO_INIT 0x0100 /* Don't initialize md_data */ |
| 297 | 300 | ||
| 301 | /* Move to evp_locl.h */ | ||
| 298 | struct evp_cipher_st { | 302 | struct evp_cipher_st { |
| 299 | int nid; | 303 | int nid; |
| 300 | int block_size; | 304 | int block_size; |
| @@ -413,6 +417,7 @@ typedef struct evp_cipher_info_st { | |||
| 413 | unsigned char iv[EVP_MAX_IV_LENGTH]; | 417 | unsigned char iv[EVP_MAX_IV_LENGTH]; |
| 414 | } EVP_CIPHER_INFO; | 418 | } EVP_CIPHER_INFO; |
| 415 | 419 | ||
| 420 | /* Move to evp_locl.h */ | ||
| 416 | struct evp_cipher_ctx_st { | 421 | struct evp_cipher_ctx_st { |
| 417 | const EVP_CIPHER *cipher; | 422 | const EVP_CIPHER *cipher; |
| 418 | ENGINE *engine; /* functional reference if 'cipher' is ENGINE-provided */ | 423 | ENGINE *engine; /* functional reference if 'cipher' is ENGINE-provided */ |
| @@ -433,7 +438,9 @@ struct evp_cipher_ctx_st { | |||
| 433 | unsigned char final[EVP_MAX_BLOCK_LENGTH];/* possible final block */ | 438 | unsigned char final[EVP_MAX_BLOCK_LENGTH];/* possible final block */ |
| 434 | } /* EVP_CIPHER_CTX */; | 439 | } /* EVP_CIPHER_CTX */; |
| 435 | 440 | ||
| 436 | typedef struct evp_Encode_Ctx_st { | 441 | /* Move to evp_locl.h */ |
| 442 | struct evp_Encode_Ctx_st { | ||
| 443 | |||
| 437 | int num; /* number saved in a partial encode/decode */ | 444 | int num; /* number saved in a partial encode/decode */ |
| 438 | int length; /* The length is either the output line length | 445 | int length; /* The length is either the output line length |
| 439 | * (in input bytes) or the shortest input line | 446 | * (in input bytes) or the shortest input line |
| @@ -443,7 +450,7 @@ typedef struct evp_Encode_Ctx_st { | |||
| 443 | unsigned char enc_data[80]; /* data to encode */ | 450 | unsigned char enc_data[80]; /* data to encode */ |
| 444 | int line_num; /* number read on current line */ | 451 | int line_num; /* number read on current line */ |
| 445 | int expect_nl; | 452 | int expect_nl; |
| 446 | } EVP_ENCODE_CTX; | 453 | } /* EVP_ENCODE_CTX */; |
| 447 | 454 | ||
| 448 | /* Password based encryption function */ | 455 | /* Password based encryption function */ |
| 449 | typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, | 456 | typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, |
