From f8e9dc0bc7939cdbf1691da0f96fc31c6cd41e39 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 11 Jan 2021 10:33:06 -0500 Subject: Don't use shouting case for ASN1_{Type,Class} values Leftover from it being an old style enum, and now that we have split them there is not any further compatability concern. --- src/lib/prov/pkcs11/p11_ecc_key.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/prov/pkcs11/p11_ecc_key.cpp') diff --git a/src/lib/prov/pkcs11/p11_ecc_key.cpp b/src/lib/prov/pkcs11/p11_ecc_key.cpp index dddf3a0c4..d983c2955 100644 --- a/src/lib/prov/pkcs11/p11_ecc_key.cpp +++ b/src/lib/prov/pkcs11/p11_ecc_key.cpp @@ -21,7 +21,7 @@ namespace { PointGFp decode_public_point(const secure_vector& ec_point_data, const EC_Group& group) { secure_vector ec_point; - BER_Decoder(ec_point_data).decode(ec_point, ASN1_Type::OCTET_STRING); + BER_Decoder(ec_point_data).decode(ec_point, ASN1_Type::OctetString); return group.OS2ECP(ec_point); } } @@ -55,7 +55,7 @@ PKCS11_EC_PublicKey::PKCS11_EC_PublicKey(Session& session, const EC_PublicKeyImp m_domain_params = EC_Group(props.ec_params()); secure_vector ec_point; - BER_Decoder(props.ec_point()).decode(ec_point, ASN1_Type::OCTET_STRING); + BER_Decoder(props.ec_point()).decode(ec_point, ASN1_Type::OctetString); m_public_key = m_domain_params.OS2ECP(ec_point); m_domain_encoding = EC_Group_Encoding::Explicit; } -- cgit v1.2.3