summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/evp/evp.h26
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);
407unsigned long EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx); 407unsigned 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)
411EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
412EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);
413void EVP_CIPHER_meth_free(EVP_CIPHER *cipher);
414
415int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);
416int EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags);
417int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);
418int 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));
421int 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));
424int EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,
425 int (*cleanup)(EVP_CIPHER_CTX *));
426int EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,
427 int (*set_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *));
428int EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,
429 int (*get_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *));
430int 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
410EVP_PKEY *EVP_PKEY_new_raw_private_key(int type, ENGINE *engine, 434EVP_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);
412EVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *engine, 436EVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *engine,