mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
Crypto: workaround -Wunused-variable
Ignore for key vault for now.
This commit is contained in:
parent
cfe660ab35
commit
6cf73fad13
4 changed files with 238 additions and 229 deletions
|
|
@ -465,7 +465,7 @@ static void ec_priv_to_pub(u8 *k, u8 *Q)
|
|||
}
|
||||
#endif
|
||||
|
||||
int ecdsa_set_curve(const u8* p, const u8* a, const u8* b, const u8* N, const u8* Gx, const u8* Gy)
|
||||
int ecdsa_set_curve(u8* p, u8* a, u8* b, u8* N, u8* Gx, u8* Gy)
|
||||
{
|
||||
memcpy(ec_p, p, 20);
|
||||
memcpy(ec_a, a, 20);
|
||||
|
|
@ -482,14 +482,14 @@ int ecdsa_set_curve(const u8* p, const u8* a, const u8* b, const u8* N, const u8
|
|||
return 0;
|
||||
}
|
||||
|
||||
void ecdsa_set_pub(const u8* Q)
|
||||
void ecdsa_set_pub(u8 *Q)
|
||||
{
|
||||
memcpy(ec_Q.x, Q, 20);
|
||||
memcpy(ec_Q.y, Q+20, 20);
|
||||
point_to_mon(&ec_Q);
|
||||
}
|
||||
|
||||
void ecdsa_set_priv(const u8* k)
|
||||
void ecdsa_set_priv(u8 *k)
|
||||
{
|
||||
memcpy(ec_k, k, sizeof ec_k);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue