module Curve.Binary.SECT193R2
( module Curve.Binary
, module Curve.Binary.SECT193R2
, Point(..)
) where
import Protolude
import BinaryField
import PrimeField
import Curve.Binary
data SECT193R2
type F2m = BinaryField 0x2000000000000000000000000000000000000000000008001
type Fr = PrimeField 0x10000000000000000000000015aab561b005413ccd4ee99d5
instance Curve 'Binary c SECT193R2 F2m Fr => BCurve c SECT193R2 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_ #-}
x_ = const _x
{-# INLINABLE x_ #-}
y_ = const _y
{-# INLINABLE y_ #-}
type PA = BAPoint SECT193R2 F2m Fr
instance BACurve SECT193R2 F2m Fr where
gA_ = gA
{-# INLINABLE gA_ #-}
type PP = BPPoint SECT193R2 F2m Fr
instance BPCurve SECT193R2 F2m Fr where
gP_ = gP
{-# INLINABLE gP_ #-}
_a :: F2m
_a = 0x163f35a5137c2ce3ea6ed8667190b0bc43ecd69977702709b
{-# INLINABLE _a #-}
_b :: F2m
_b = 0xc9bb9e8927d4d64c377e2ab2856a5b16e3efb7f61d4316ae
{-# INLINABLE _b #-}
_h :: Integer
_h = 0x2
{-# INLINABLE _h #-}
_p :: Integer
_p = 0x2000000000000000000000000000000000000000000008001
{-# INLINABLE _p #-}
_r :: Integer
_r = 0x10000000000000000000000015aab561b005413ccd4ee99d5
{-# INLINABLE _r #-}
_x :: F2m
_x = 0xd9b67d192e0367c803f39e1a7e82ca14a651350aae617e8f
{-# INLINABLE _x #-}
_y :: F2m
_y = 0x1ce94335607c304ac29e7defbd9ca01f596f927224cdecf6c
{-# INLINABLE _y #-}
gA :: PA
gA = A _x _y
{-# INLINABLE gA #-}
gP :: PP
gP = P _x _y 1
{-# INLINABLE gP #-}