Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
sign :: forall ctx msgLen. RSA ctx msgLen => ByteString msgLen ctx -> PrivateKey ctx -> Signature ctx Source #
verify :: forall ctx msgLen. RSA ctx msgLen => ByteString msgLen ctx -> Signature ctx -> PublicKey ctx -> Bool ctx Source #
type RSA ctx msgLen = (SHA2 "SHA256" ctx msgLen, KnownRegisters ctx KeyLength 'Auto, KnownRegisters ctx (2 * KeyLength) 'Auto, KnownNat (Ceil (GetRegisterSize (BaseField ctx) (2 * KeyLength) 'Auto) OrdWord), NFData (ctx (Vector KeyLength)), NFData (ctx (Vector (NumberOfRegisters (BaseField ctx) KeyLength 'Auto))), NFData (ctx (Vector (NumberOfRegisters (BaseField ctx) (2 * KeyLength) 'Auto)))) Source #
Instances
data PrivateKey ctx Source #
Instances
type Signature ctx = ByteString KeyLength ctx Source #