module Data.Curve.Binary.SECT131R2
( module Data.Curve.Binary
, Point(..)
, module Data.Curve.Binary.SECT131R2
) where
import Protolude
import Data.Field.Galois
import GHC.Natural (Natural)
import Data.Curve.Binary
data SECT131R2
type F2m = Binary P
type P = 0x80000000000000000000000000000010d
type Fr = Prime R
type R = 0x400000000000000016954a233049ba98f
instance Curve 'Binary c SECT131R2 F2m Fr => BCurve c SECT131R2 F2m Fr where
a_ = const _a
{-# INLINABLE a_ #-}
b_ = const _b
{-# INLINABLE b_ #-}
h_ = const _h
{-# INLINABLE h_ #-}
p_ = const _p
{-# INLINABLE p_ #-}
r_ = const _r
{-# INLINABLE r_ #-}
type PA = BAPoint SECT131R2 F2m Fr
instance BACurve SECT131R2 F2m Fr where
gA_ = gA
{-# INLINABLE gA_ #-}
type PP = BPPoint SECT131R2 F2m Fr
instance BPCurve SECT131R2 F2m Fr where
gP_ = gP
{-# INLINABLE gP_ #-}
_a :: F2m
_a = 0x3e5a88919d7cafcbf415f07c2176573b2
{-# INLINABLE _a #-}
_b :: F2m
_b = 0x4b8266a46c55657ac734ce38f018f2192
{-# INLINABLE _b #-}
_h :: Natural
_h = 0x2
{-# INLINABLE _h #-}
_p :: Natural
_p = 0x80000000000000000000000000000010d
{-# INLINABLE _p #-}
_r :: Natural
_r = 0x400000000000000016954a233049ba98f
{-# INLINABLE _r #-}
_x :: F2m
_x = 0x356dcd8f2f95031ad652d23951bb366a8
{-# INLINABLE _x #-}
_y :: F2m
_y = 0x648f06d867940a5366d9e265de9eb240f
{-# INLINABLE _y #-}
gA :: PA
gA = A _x _y
{-# INLINABLE gA #-}
gP :: PP
gP = P _x _y 1
{-# INLINABLE gP #-}