diff --git a/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp b/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp index 96b3d4693f..3f7bc50766 100644 --- a/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp +++ b/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp @@ -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 diff --git a/Userland/Libraries/LibCrypto/Curves/SECP256r1.h b/Userland/Libraries/LibCrypto/Curves/SECP256r1.h index 71b5635e6f..ca37be06c7 100644 --- a/Userland/Libraries/LibCrypto/Curves/SECP256r1.h +++ b/Userland/Libraries/LibCrypto/Curves/SECP256r1.h @@ -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; }