module Data.Curve.Weierstrass.BrainpoolP224T1
( module Data.Curve.Weierstrass
, Point(..)
, module Data.Curve.Weierstrass.BrainpoolP224T1
) where
import Protolude
import Data.Field.Galois
import GHC.Natural (Natural)
import Data.Curve.Weierstrass
data BrainpoolP224T1
type Fq = Prime Q
type Q = 0xd7c134aa264366862a18302575d1d787b09f075797da89f57ec8c0ff
type Fr = Prime R
type R = 0xd7c134aa264366862a18302575d0fb98d116bc4b6ddebca3a5a7939f
instance Curve 'Weierstrass c BrainpoolP224T1 Fq Fr => WCurve c BrainpoolP224T1 Fq Fr where
a_ = const _a
{-# INLINABLE a_ #-}
b_ = const _b
{-# INLINABLE b_ #-}
h_ = const _h
{-# INLINABLE h_ #-}
q_ = const _q
{-# INLINABLE q_ #-}
r_ = const _r
{-# INLINABLE r_ #-}
type PA = WAPoint BrainpoolP224T1 Fq Fr
instance WACurve BrainpoolP224T1 Fq Fr where
gA_ = gA
{-# INLINABLE gA_ #-}
type PJ = WJPoint BrainpoolP224T1 Fq Fr
instance WJCurve BrainpoolP224T1 Fq Fr where
gJ_ = gJ
{-# INLINABLE gJ_ #-}
type PP = WPPoint BrainpoolP224T1 Fq Fr
instance WPCurve BrainpoolP224T1 Fq Fr where
gP_ = gP
{-# INLINABLE gP_ #-}
_a :: Fq
_a = 0xd7c134aa264366862a18302575d1d787b09f075797da89f57ec8c0fc
{-# INLINABLE _a #-}
_b :: Fq
_b = 0x4b337d934104cd7bef271bf60ced1ed20da14c08b3bb64f18a60888d
{-# INLINABLE _b #-}
_h :: Natural
_h = 0x1
{-# INLINABLE _h #-}
_q :: Natural
_q = 0xd7c134aa264366862a18302575d1d787b09f075797da89f57ec8c0ff
{-# INLINABLE _q #-}
_r :: Natural
_r = 0xd7c134aa264366862a18302575d0fb98d116bc4b6ddebca3a5a7939f
{-# INLINABLE _r #-}
_x :: Fq
_x = 0x6ab1e344ce25ff3896424e7ffe14762ecb49f8928ac0c76029b4d580
{-# INLINABLE _x #-}
_y :: Fq
_y = 0x374e9f5143e568cd23f3f4d7c0d4b1e41c8cc0d1c6abd5f1a46db4c
{-# INLINABLE _y #-}
gA :: PA
gA = A _x _y
{-# INLINABLE gA #-}
gJ :: PJ
gJ = J _x _y 1
{-# INLINABLE gJ #-}
gP :: PP
gP = P _x _y 1
{-# INLINABLE gP #-}