Skip to content

Commit c32d9c8

Browse files
fix for check on hash with ECDSAk case
1 parent 9eac8cb commit c32d9c8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wolfcrypt/src/pkcs7.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,8 +2758,7 @@ static int PKCS7_EncodeSigned(PKCS7* pkcs7,
27582758
* hash must be known in order to create the surrounding ASN1 syntax
27592759
* properly before writing out the content and generating the hash on the
27602760
* fly and then creating the signature */
2761-
if (pkcs7->getContentCb != NULL && hashBuf == NULL &&
2762-
pkcs7->publicKeyOID == ECDSAk) {
2761+
if (hashBuf == NULL && pkcs7->publicKeyOID == ECDSAk) {
27632762
WOLFSSL_MSG("Pre-calculated content hash is needed in this case");
27642763
return BAD_FUNC_ARG;
27652764
}

0 commit comments

Comments
 (0)