[*] Updated LibTomCrypt
This commit is contained in:
parent
97bf497ec0
commit
600c7b68dc
@ -140,7 +140,7 @@ namespace Aurora::Crypto::RSA
|
||||
payload.length,
|
||||
out.writePtr, &len,
|
||||
NULL, 0,
|
||||
0, // hash? excuse me?
|
||||
0, 0, // hash? excuse me?
|
||||
padding,
|
||||
&stat,
|
||||
&this->key_);
|
||||
|
@ -133,7 +133,7 @@ namespace Aurora::Crypto::RSA
|
||||
out.writePtr, &len,
|
||||
NULL, 0,
|
||||
&yarrow_prng, prng_idx,
|
||||
0,
|
||||
0, 0,
|
||||
padding,
|
||||
&this->key_);
|
||||
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];
|
||||
const char *oidReference;
|
||||
|
||||
ret = pk_get_oid(PKA_RSA, &oidReference);
|
||||
ret = pk_get_oid(LTC_OID_RSA, &oidReference);
|
||||
if (ret != CRYPT_OK)
|
||||
{
|
||||
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;
|
||||
|
||||
/* get RSA alg oid */
|
||||
err = pk_get_oid(PKA_RSA, &rsaoid);
|
||||
err = pk_get_oid(LTC_OID_RSA, &rsaoid);
|
||||
if (err != CRYPT_OK)
|
||||
{
|
||||
goto LBL_ERR;
|
||||
|
Loading…
Reference in New Issue
Block a user