ssh-0.3.1: A pure-Haskell SSH server library.

Safe HaskellNone
LanguageHaskell98

SSH.Crypto

Synopsis

Documentation

data Cipher Source

Constructors

Cipher 

data CipherType Source

Constructors

AES 

data CipherMode Source

Constructors

CBC 

data HMAC Source

Constructors

HMAC 

parseKeyPair :: String -> KeyPair Source

Parse an key pair from OpenSSH private key file format.

printKeyPair :: KeyPair -> String Source

Turn an key pair into OpenSSH private key file format.

actualSignatureLength :: PublicKey -> Int Source

The length of the actual signature for a given key The actual signature data is always found at the end of a complete signature, so can be extracted by just grabbing this many bytes at the end.