age-0.0.1.0: Actually Good Encryption
Safe HaskellNone
LanguageHaskell2010

Crypto.Age.Recipient

Description

age file recipients.

Synopsis

Recipients

data Recipients Source #

Collection of age file recipients.

Constructors

RecipientsScrypt !ScryptRecipient

scrypt recipient.

As noted in the age specification, no other stanzas can be specified in the header when there is an scrypt stanza. This is to uphold an expectation of authentication that is implicit in password-based encryption.

As a result, only one scrypt recipient can be specified.

RecipientsX25519 !(NonEmpty X25519Recipient)

X25519 recipients.

Instances

Instances details
Show Recipients Source # 
Instance details

Defined in Crypto.Age.Recipient

Eq Recipients Source # 
Instance details

Defined in Crypto.Age.Recipient

scrypt

data ScryptRecipient Source #

Constructors

ScryptRecipient 

Fields

X25519

newtype X25519Recipient Source #

Constructors

X25519Recipient 

Fields

bytesToX25519Recipient :: ByteString -> Maybe X25519Recipient Source #

Construct an X25519Recipient from the raw bytes of a Curve25519 public key.

If the provided byte string does not have a length of 32 (256 bits), Nothing is returned.

x25519RecipientToBytes :: X25519Recipient -> ByteString Source #

Get the raw Curve25519 public key bytes associated with an X25519Recipient.