diff options
author | tb <> | 2023-03-01 11:17:22 +0000 |
---|---|---|
committer | tb <> | 2023-03-01 11:17:22 +0000 |
commit | e13b694c80b3c7e2586b51415ad087acb44373d9 (patch) | |
tree | cb8fe41bad391dee91f24c9074e58d6c19441f28 /src/lib | |
parent | f5e0861acadab7b2625681b497a31647ae1ac5e2 (diff) | |
download | openbsd-e13b694c80b3c7e2586b51415ad087acb44373d9.tar.gz openbsd-e13b694c80b3c7e2586b51415ad087acb44373d9.tar.bz2 openbsd-e13b694c80b3c7e2586b51415ad087acb44373d9.zip |
Add EVP_CIPHER_meth_* prototypes to evp.h
As usual, this will be guarded by LIBRESSL_INTERNAL || LIBRESSL_NEXT_API
until the next bump.
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 4cb4dac5ad..c2008493a2 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.112 2022/11/13 14:04:13 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.113 2023/03/01 11:17:22 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 | * |
@@ -407,6 +407,30 @@ unsigned char *EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx); | |||
407 | unsigned long EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx); | 407 | unsigned long EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx); |
408 | #define EVP_CIPHER_CTX_mode(e) (EVP_CIPHER_CTX_flags(e) & EVP_CIPH_MODE) | 408 | #define EVP_CIPHER_CTX_mode(e) (EVP_CIPHER_CTX_flags(e) & EVP_CIPH_MODE) |
409 | 409 | ||
410 | #if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API) | ||
411 | EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len); | ||
412 | EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher); | ||
413 | void EVP_CIPHER_meth_free(EVP_CIPHER *cipher); | ||
414 | |||
415 | int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len); | ||
416 | int EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags); | ||
417 | int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size); | ||
418 | int EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, | ||
419 | int (*init)(EVP_CIPHER_CTX *ctx, const unsigned char *key, | ||
420 | const unsigned char *iv, int enc)); | ||
421 | int EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, | ||
422 | int (*do_cipher)(EVP_CIPHER_CTX *ctx, unsigned char *out, | ||
423 | const unsigned char *in, size_t inl)); | ||
424 | int EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, | ||
425 | int (*cleanup)(EVP_CIPHER_CTX *)); | ||
426 | int EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, | ||
427 | int (*set_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *)); | ||
428 | int EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, | ||
429 | int (*get_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *)); | ||
430 | int EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, | ||
431 | int (*ctrl)(EVP_CIPHER_CTX *, int type, int arg, void *ptr)); | ||
432 | #endif /* LIBRESSL_INTERNAL || LIBRESSL_NEXT_API */ | ||
433 | |||
410 | EVP_PKEY *EVP_PKEY_new_raw_private_key(int type, ENGINE *engine, | 434 | EVP_PKEY *EVP_PKEY_new_raw_private_key(int type, ENGINE *engine, |
411 | const unsigned char *private_key, size_t len); | 435 | const unsigned char *private_key, size_t len); |
412 | EVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *engine, | 436 | EVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *engine, |