diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-03-09 09:48:16 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2021-03-18 17:52:37 +1000 |
commit | adf7e6d1d63890f037625031789ed042187c3947 (patch) | |
tree | 48c61a773e33b6df45664d1a46e8be54e0a9092d /crypto/evp/evp_lib.c | |
parent | 1335ca4b0799d1714a2f8e21525cb23edf660e93 (diff) | |
download | openssl-adf7e6d1d63890f037625031789ed042187c3947.tar.gz |
Add ossl_asn1 symbols
Partial fix for #12964
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14473)
Diffstat (limited to 'crypto/evp/evp_lib.c')
-rw-r--r-- | crypto/evp/evp_lib.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c index dd3173ddd5..48bf99d1f5 100644 --- a/crypto/evp/evp_lib.c +++ b/crypto/evp/evp_lib.c @@ -243,10 +243,10 @@ int evp_cipher_get_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type, if (type == NULL || asn1_params == NULL) return 0; - i = asn1_type_get_octetstring_int(type, &tl, NULL, EVP_MAX_IV_LENGTH); + i = ossl_asn1_type_get_octetstring_int(type, &tl, NULL, EVP_MAX_IV_LENGTH); if (i <= 0) return -1; - asn1_type_get_octetstring_int(type, &tl, iv, i); + ossl_asn1_type_get_octetstring_int(type, &tl, iv, i); memcpy(asn1_params->iv, iv, i); asn1_params->iv_len = i; @@ -260,8 +260,9 @@ int evp_cipher_set_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type, if (type == NULL || asn1_params == NULL) return 0; - return asn1_type_set_octetstring_int(type, asn1_params->tag_len, - asn1_params->iv, asn1_params->iv_len); + return ossl_asn1_type_set_octetstring_int(type, asn1_params->tag_len, + asn1_params->iv, + asn1_params->iv_len); } #endif /* !defined(FIPS_MODULE) */ |