HsOpenSSL-0.11.4.8: Partial OpenSSL binding for Haskell

Safe HaskellNone
LanguageHaskell2010

OpenSSL.EVP.PKey

Contents

Description

An interface to asymmetric cipher keypair.

Synopsis

Documentation

class PublicKey a => KeyPair a where Source #

Instances of this class has both of public and private portions of a keypair.

Methods

fromKeyPair :: a -> SomeKeyPair Source #

Wrap an arbitrary keypair into polymorphic type SomeKeyPair.

toKeyPair :: SomeKeyPair -> Maybe a Source #

Cast from the polymorphic type SomeKeyPair to the concrete type. Return Nothing if failed.

Orphan instances