diff --git a/crypto/evp_extra/evp_asn1.c b/crypto/evp_extra/evp_asn1.c index af99690521..15b1247d97 100644 --- a/crypto/evp_extra/evp_asn1.c +++ b/crypto/evp_extra/evp_asn1.c @@ -70,14 +70,14 @@ #include "internal.h" #include "../dilithium/internal.h" -// The function parse_key_type takes the algorithm cbs sequence |cbs| and -// extracts the OID. The OID is then searched against ASN.1 methods for a method -// with that OID. As the |OID| is read from |cbs| the buffer is advanced. +// parse_key_type takes the algorithm cbs sequence |cbs| and extracts the OID. +// The OID is then searched against ASN.1 methods for a method with that OID. +// As the |OID| is read from |cbs| the buffer is advanced. // For the case of |NID_rsa| the method |rsa_asn1_meth| is returned. // For the case of |EVP_PKEY_PQDSA| the method |pqdsa_asn1.meth| is returned, as // the OID is not returned (and the |cbs| buffer is advanced) we return the OID -// as |cbs|. (This allows the specific OID, e.g. NID_MLDSA65 to be parsed to -// type specific decoding functions within the algorithm parameter. +// as |cbs|. (This allows the specific OID, e.g. NID_MLDSA65 to be parsed by +// the type-specific decoding functions within the algorithm parameter.) static const EVP_PKEY_ASN1_METHOD *parse_key_type(CBS *cbs) { CBS oid; if (!CBS_get_asn1(cbs, &oid, CBS_ASN1_OBJECT)) { @@ -101,7 +101,7 @@ static const EVP_PKEY_ASN1_METHOD *parse_key_type(CBS *cbs) { } #ifdef ENABLE_DILITHIUM - // if |cbs| is empty after parsing |oid| from it), we overwrite the contents + // if |cbs| is empty after parsing |oid| from it, we overwrite the contents // with |oid| so that we can call pub_decode/priv_decode with the |algorithm| // populated as |oid|. if (CBS_len(cbs) == 0) {