Documentation ¶
Overview ¶
Package crypto contains commen and general useful cryptographic functions and types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthenticationError ¶
type AuthenticationError struct{}
A AuthenticationError indicates, that an authentication process failed. E.g. the message authentication of a AEAD cipher.
func (AuthenticationError) Error ¶
func (a AuthenticationError) Error() string
type KeySizeError ¶
type KeySizeError int
A KeySizeError indicates, that the size of a given key does not match the expected size.
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
type NonceSizeError ¶
type NonceSizeError int
A NonceSizeError indicates, that the size of a given nonce does not match the expected size.
func (NonceSizeError) Error ¶
func (n NonceSizeError) Error() string
Directories ¶
Path | Synopsis |
---|---|
Package blake2 implements the both hash functions BLAKE2b and BLAKE2s described in RFC 7693.
|
Package blake2 implements the both hash functions BLAKE2b and BLAKE2s described in RFC 7693. |
blake2b
Package blake2b implements the BLAKE2b hash function.
|
Package blake2b implements the BLAKE2b hash function. |
blake2s
Package blake2s implements the BLAKE2s hash function.
|
Package blake2s implements the BLAKE2s hash function. |
Package camellia implements the camellia block cipher.
|
Package camellia implements the camellia block cipher. |
Package chacha20 implements the ChaCha stream cipher and the ChaCha20Poly1305 AEAD construction described in RFC 7539.
|
Package chacha20 implements the ChaCha stream cipher and the ChaCha20Poly1305 AEAD construction described in RFC 7539. |
chacha
Package chacha implements some low level functions of the ChaCha cipher family.
|
Package chacha implements some low level functions of the ChaCha cipher family. |
Package cipher implements additional block cipher modes that can be wrapped around low-level block cipher implementations.
|
Package cipher implements additional block cipher modes that can be wrapped around low-level block cipher implementations. |
Package cmac implements the fast CMac MAC based on a block cipher.
|
Package cmac implements the fast CMac MAC based on a block cipher. |
Package dh implements the Diffie-Hellman key exchange over multiplicative groups of integers modulo a prime.
|
Package dh implements the Diffie-Hellman key exchange over multiplicative groups of integers modulo a prime. |
ecdh
Package ecdh implements the Diffie-Hellman key exchange with elliptic curves.
|
Package ecdh implements the Diffie-Hellman key exchange with elliptic curves. |
Package hc128 implements the stream cipher HC-128 from the eSTREAM portfolio (software) designed by Hongjun Wu.
|
Package hc128 implements the stream cipher HC-128 from the eSTREAM portfolio (software) designed by Hongjun Wu. |
Package hc256 implements the stream cipher HC-256 designed by Hongjun Wu.
|
Package hc256 implements the stream cipher HC-256 designed by Hongjun Wu. |
Package pad implements some padding schemes for block ciphers.
|
Package pad implements some padding schemes for block ciphers. |
Package poly1305 implements Poly1305 one-time message authentication code as specified in http://cr.yp.to/mac/poly1305-20050329.pdf.
|
Package poly1305 implements Poly1305 one-time message authentication code as specified in http://cr.yp.to/mac/poly1305-20050329.pdf. |
Package serpent implements the Serpent block cipher submitted to the AES challenge.
|
Package serpent implements the Serpent block cipher submitted to the AES challenge. |
Package siphash implements a hash / MAC function developed Jean-Philippe Aumasson and Daniel J Bernstein in 2012.
|
Package siphash implements a hash / MAC function developed Jean-Philippe Aumasson and Daniel J Bernstein in 2012. |
Package skein implements the Skein512 hash function based on the Threefish tweakable block cipher.
|
Package skein implements the Skein512 hash function based on the Threefish tweakable block cipher. |
skein1024
Package skein1024 implements the Skein1024 hash function based on the Threefish1024 tweakable block cipher.
|
Package skein1024 implements the Skein1024 hash function based on the Threefish1024 tweakable block cipher. |
skein256
Package skein256 implements the Skein256 hash function based on the Threefish256 tweakable block cipher.
|
Package skein256 implements the Skein256 hash function based on the Threefish256 tweakable block cipher. |
threefish
Package threefish implements the Threefish tweakable block cipher.
|
Package threefish implements the Threefish tweakable block cipher. |
Click to show internal directories.
Click to hide internal directories.