mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:24:58 +00:00
LibCrypto: Move JacobianPoint into the curve cpp file
This commit is contained in:
parent
4efbb10a36
commit
6b5c6e7c03
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue