mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
@@ -31698,9 +31698,16 @@ int StoreECC_DSA_Sig(byte* out, word32* outLen, mp_int* r, mp_int* s)
|
|||||||
}
|
}
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
/* Encode DSA signature into buffer. */
|
/* Encode DSA signature into buffer. */
|
||||||
SetASN_Items(dsaSigASN, dataASN, dsaSigASN_Length, out);
|
ret = SetASN_Items(dsaSigASN, dataASN, dsaSigASN_Length, out);
|
||||||
/* Set the actual encoding size. */
|
if (ret >= 0) {
|
||||||
*outLen = (word32)sz;
|
if (ret == sz) {
|
||||||
|
/* Set the actual encoding size. */
|
||||||
|
*outLen = (word32)sz;
|
||||||
|
ret = 0;
|
||||||
|
} else {
|
||||||
|
ret = BAD_STATE_E;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user