mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-04-21 10:58:44 +00:00
Merge pull request #742 from Laupetin/dependabot/submodules/thirdparty/libtomcrypt-2e441a1
chore(deps): bump thirdparty/libtomcrypt from `3223b87` to `2e441a1`
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include "AlgorithmRsa.h"
|
#include "AlgorithmRsa.h"
|
||||||
|
|
||||||
#include "Internal/CryptoLibrary.h"
|
#include "Internal/CryptoLibrary.h"
|
||||||
|
#include "tomcrypt_private.h"
|
||||||
|
|
||||||
using namespace cryptography;
|
using namespace cryptography;
|
||||||
|
|
||||||
@@ -29,15 +30,21 @@ namespace
|
|||||||
const int padding = GetPaddingMode();
|
const int padding = GetPaddingMode();
|
||||||
|
|
||||||
int result;
|
int result;
|
||||||
rsa_verify_hash_ex(signature,
|
const ltc_rsa_parameters rsaParams{
|
||||||
static_cast<unsigned long>(signatureSize),
|
.saltlen = 8,
|
||||||
signedData,
|
.hash_idx = hashId,
|
||||||
static_cast<unsigned long>(signedDataSize),
|
.mgf1_hash_idx = hashId,
|
||||||
padding,
|
};
|
||||||
hashId,
|
ltc_rsa_op_parameters params{
|
||||||
8,
|
.params = rsaParams,
|
||||||
&result,
|
.padding = padding,
|
||||||
&m_key);
|
.wprng = -1,
|
||||||
|
.prng = nullptr,
|
||||||
|
.u = {},
|
||||||
|
};
|
||||||
|
|
||||||
|
rsa_verify_hash_v2(
|
||||||
|
signature, static_cast<unsigned long>(signatureSize), signedData, static_cast<unsigned long>(signedDataSize), ¶ms, &result, &m_key);
|
||||||
|
|
||||||
return result == 1;
|
return result == 1;
|
||||||
}
|
}
|
||||||
|
|||||||
2
thirdparty/libtomcrypt
vendored
2
thirdparty/libtomcrypt
vendored
Submodule thirdparty/libtomcrypt updated: 3223b87588...2e441a17df
Reference in New Issue
Block a user