[*] Updated LibTomCrypt

This commit is contained in:
Reece Wilson 2024-02-19 09:16:40 +00:00
parent 97bf497ec0
commit 600c7b68dc
4 changed files with 4 additions and 4 deletions

View File

@ -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_);

View File

@ -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)

View File

@ -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;

View File

@ -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;