Skip to content

Commit c0f1a1f

Browse files
Fix PostSignRequest
1 parent b71670f commit c0f1a1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/agent.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ static int PostSignRequest(WOLFSSH_AGENT_CTX* agent,
863863
}
864864

865865
if (ret == WS_SUCCESS) {
866+
digestSz = (word32)wc_HashGetDigestSize(hashType);
866867
ret = wc_Hash(hashType, data, dataSz, digest, digestSz);
867868
if (ret != 0)
868869
ret = WS_CRYPTO_FAILED;

0 commit comments

Comments
 (0)