LibCrypto: Move JacobianPoint into the curve cpp file

This commit is contained in:
Michiel Visser 2023-11-10 16:19:23 +01:00 committed by Ali Mohammad Pur
parent 4efbb10a36
commit 6b5c6e7c03
Notes: sideshowbarker 2024-07-17 00:49:59 +09:00
2 changed files with 6 additions and 6 deletions

View File

@ -15,6 +15,12 @@
namespace Crypto::Curves {
struct JacobianPoint {
u256 x { 0u };
u256 y { 0u };
u256 z { 0u };
};
static constexpr u256 calculate_modular_inverse_mod_r(u256 value)
{
// Calculate the modular multiplicative inverse of value mod 2^256 using the extended euclidean algorithm

View File

@ -12,12 +12,6 @@
namespace Crypto::Curves {
struct JacobianPoint {
u256 x { 0u };
u256 y { 0u };
u256 z { 0u };
};
class SECP256r1 : public EllipticCurve {
public:
size_t key_size() override { return 1 + 2 * 32; }