diff options
Diffstat (limited to 'src/lib/libcrypto/evp')
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 09cd364ac4..90e29bd0d8 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.125 2024/03/02 09:59:56 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.126 2024/03/02 10:03:13 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 | * |
| @@ -933,53 +933,11 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_get0(int idx); | |||
| 933 | const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type); | 933 | const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type); |
| 934 | const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pe, | 934 | const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pe, |
| 935 | const char *str, int len); | 935 | const char *str, int len); |
| 936 | int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth); | ||
| 937 | int EVP_PKEY_asn1_add_alias(int to, int from); | ||
| 938 | int EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id, int *ppkey_flags, | 936 | int EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id, int *ppkey_flags, |
| 939 | const char **pinfo, const char **ppem_str, | 937 | const char **pinfo, const char **ppem_str, |
| 940 | const EVP_PKEY_ASN1_METHOD *ameth); | 938 | const EVP_PKEY_ASN1_METHOD *ameth); |
| 941 | 939 | ||
| 942 | const EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey); | 940 | const EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey); |
| 943 | EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_new(int id, int flags, const char *pem_str, | ||
| 944 | const char *info); | ||
| 945 | void EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst, | ||
| 946 | const EVP_PKEY_ASN1_METHOD *src); | ||
| 947 | void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth); | ||
| 948 | void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 949 | int (*pub_decode)(EVP_PKEY *pk, X509_PUBKEY *pub), | ||
| 950 | int (*pub_encode)(X509_PUBKEY *pub, const EVP_PKEY *pk), | ||
| 951 | int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b), | ||
| 952 | int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent, | ||
| 953 | ASN1_PCTX *pctx), | ||
| 954 | int (*pkey_size)(const EVP_PKEY *pk), | ||
| 955 | int (*pkey_bits)(const EVP_PKEY *pk)); | ||
| 956 | void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 957 | int (*priv_decode)(EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf), | ||
| 958 | int (*priv_encode)(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk), | ||
| 959 | int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent, | ||
| 960 | ASN1_PCTX *pctx)); | ||
| 961 | void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 962 | int (*param_decode)(EVP_PKEY *pkey, const unsigned char **pder, int derlen), | ||
| 963 | int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder), | ||
| 964 | int (*param_missing)(const EVP_PKEY *pk), | ||
| 965 | int (*param_copy)(EVP_PKEY *to, const EVP_PKEY *from), | ||
| 966 | int (*param_cmp)(const EVP_PKEY *a, const EVP_PKEY *b), | ||
| 967 | int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent, | ||
| 968 | ASN1_PCTX *pctx)); | ||
| 969 | |||
| 970 | void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 971 | void (*pkey_free)(EVP_PKEY *pkey)); | ||
| 972 | void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 973 | int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2)); | ||
| 974 | void EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 975 | int (*pkey_security_bits)(const EVP_PKEY *pkey)); | ||
| 976 | |||
| 977 | void EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 978 | int (*pkey_check)(const EVP_PKEY *pk)); | ||
| 979 | void EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 980 | int (*pkey_public_check)(const EVP_PKEY *pk)); | ||
| 981 | void EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth, | ||
| 982 | int (*pkey_check)(const EVP_PKEY *pk)); | ||
| 983 | 941 | ||
| 984 | #define EVP_PKEY_OP_UNDEFINED 0 | 942 | #define EVP_PKEY_OP_UNDEFINED 0 |
| 985 | #define EVP_PKEY_OP_PARAMGEN (1<<1) | 943 | #define EVP_PKEY_OP_PARAMGEN (1<<1) |
