forked from wolfSSL/wolfssl
Merge pull request #1145 from JacobBarthelmeh/HardwareAcc
init hardware acc. use of public RSA key with public key decode funct…
This commit is contained in:
@@ -2819,6 +2819,12 @@ int wc_RsaPublicKeyDecode(const byte* input, word32* inOutIdx, RsaKey* key,
|
|||||||
return ASN_RSA_KEY_E;
|
return ASN_RSA_KEY_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_XILINX_CRYPT
|
||||||
|
if (wc_InitRsaHw(key) != 0) {
|
||||||
|
return BAD_STATE_E;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2850,6 +2856,12 @@ int wc_RsaPublicKeyDecodeRaw(const byte* n, word32 nSz, const byte* e,
|
|||||||
return ASN_GETINT_E;
|
return ASN_GETINT_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_XILINX_CRYPT
|
||||||
|
if (wc_InitRsaHw(key) != 0) {
|
||||||
|
return BAD_STATE_E;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_USER_RSA */
|
#endif /* HAVE_USER_RSA */
|
||||||
|
Reference in New Issue
Block a user