[*] Updated LibTomCrypt
This commit is contained in:
parent
97bf497ec0
commit
600c7b68dc
@ -140,7 +140,7 @@ namespace Aurora::Crypto::RSA
|
|||||||
payload.length,
|
payload.length,
|
||||||
out.writePtr, &len,
|
out.writePtr, &len,
|
||||||
NULL, 0,
|
NULL, 0,
|
||||||
0, // hash? excuse me?
|
0, 0, // hash? excuse me?
|
||||||
padding,
|
padding,
|
||||||
&stat,
|
&stat,
|
||||||
&this->key_);
|
&this->key_);
|
||||||
|
@ -133,7 +133,7 @@ namespace Aurora::Crypto::RSA
|
|||||||
out.writePtr, &len,
|
out.writePtr, &len,
|
||||||
NULL, 0,
|
NULL, 0,
|
||||||
&yarrow_prng, prng_idx,
|
&yarrow_prng, prng_idx,
|
||||||
0,
|
0, 0,
|
||||||
padding,
|
padding,
|
||||||
&this->key_);
|
&this->key_);
|
||||||
if (iRet != CRYPT_OK)
|
if (iRet != CRYPT_OK)
|
||||||
|
@ -77,7 +77,7 @@ int rsa_pkcs8_export(unsigned char *out, unsigned long *outlen, const rsa_key *
|
|||||||
unsigned long oid[16];
|
unsigned long oid[16];
|
||||||
const char *oidReference;
|
const char *oidReference;
|
||||||
|
|
||||||
ret = pk_get_oid(PKA_RSA, &oidReference);
|
ret = pk_get_oid(LTC_OID_RSA, &oidReference);
|
||||||
if (ret != CRYPT_OK)
|
if (ret != CRYPT_OK)
|
||||||
{
|
{
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -43,7 +43,7 @@ int rsa_import_ex(const unsigned char *in, unsigned long inlen, rsa_key *key, in
|
|||||||
ltc_asn1_list *l = NULL;
|
ltc_asn1_list *l = NULL;
|
||||||
|
|
||||||
/* get RSA alg oid */
|
/* get RSA alg oid */
|
||||||
err = pk_get_oid(PKA_RSA, &rsaoid);
|
err = pk_get_oid(LTC_OID_RSA, &rsaoid);
|
||||||
if (err != CRYPT_OK)
|
if (err != CRYPT_OK)
|
||||||
{
|
{
|
||||||
goto LBL_ERR;
|
goto LBL_ERR;
|
||||||
|
Loading…
Reference in New Issue
Block a user