mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
fix for check on hash with ECDSAk case
This commit is contained in:
@@ -2758,8 +2758,7 @@ static int PKCS7_EncodeSigned(PKCS7* pkcs7,
|
|||||||
* hash must be known in order to create the surrounding ASN1 syntax
|
* hash must be known in order to create the surrounding ASN1 syntax
|
||||||
* properly before writing out the content and generating the hash on the
|
* properly before writing out the content and generating the hash on the
|
||||||
* fly and then creating the signature */
|
* fly and then creating the signature */
|
||||||
if (pkcs7->getContentCb != NULL && hashBuf == NULL &&
|
if (hashBuf == NULL && pkcs7->publicKeyOID == ECDSAk) {
|
||||||
pkcs7->publicKeyOID == ECDSAk) {
|
|
||||||
WOLFSSL_MSG("Pre-calculated content hash is needed in this case");
|
WOLFSSL_MSG("Pre-calculated content hash is needed in this case");
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user