# Packages
No description provided by the author
# Functions
No description provided by the author
DEfaultCipherDecrypter returns a NOOP decrypter.
DefaultCipherEncrypter returns a NOOP encrypter.
FromViper produces an Options from a (possibly nil) Viper instance.
GeneratePrivateKey will create a private key with the size given size must be greater than 64 or else it will default to 64.
GetHash finds a matching Hash for the string given.
GetPrivateKey uses a keyloader to load a private key.
GetPublicKey uses a keyloader to load a public key.
NewBoxDecrypter returns a new box decrypter.
NewBoxEncrypter returns a new box encrypter.
NewRSADecrypter returns an RSA decrypter.
NewRSAEncrypter returns an RSA encrypter.
ParseAlgorithmType takes a string and returns an enum if one matches, otherwise returns the None AlgorithmType enum.
PopulateCiphers takes options and a logger and creates ciphers from them.
# Constants
No description provided by the author
CipherKey is the Viper subkey under which logging should be stored.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
BasicHashLoader implements HashLoader.
BoxLoader loads the box encryption/decryption.
BytesLoader implements the KeyLoader.
Ciphers provide all of the possibly algorithms that can be used to encrypt or decrypt.
Config used load the Encrypt or Decrypt.
FileLoader loads a key from a file.
LocalCerts specify where locally to find the certs for a hash.
NOOP will just return the message.
RSALoader loads the encrypter/decrypter for the RSA algorithm.
# Interfaces
Decrypt represents the ability to decrypt messages.
DecryptLoader loads a decrypter.
Encrypt represents the ability to encrypt messages.
EncryptLoader loads an encrypter.
HashLoader can get a hash.
No description provided by the author
KeyLoader gets the bytes for a key.
# Type aliases
AlgorithmType is an enum used to specify which algorithm is being used.
KeyType is an enum for how the key can be used.
Options is the list of configurations used to load ciphers.