Documentation ¶
Overview ¶
Package ascon80pq implements the system described at https://ascon.iaik.tugraz.at. This lightweight AuthenticatedEncryptionAssociatedData cipher uses a 20 byte key and 16 byte nonce, producing ciphertext of the same length as the plaintext plus a 16 byte authentication tag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BadVerify = errors.New("ASCON decrypt verify failed! Do not use any partial results.")
Functions ¶
func Decrypt ¶
Function Decrypt reads nonce and ciphertext from the input stream, decrypts using key and ad, and writes plaintext to the output stream. If verification at the end fails, error will be non-nil and caller should ignore the plaintext, including wiping any partial results already sent to disk. (It would be better to do that here, but is infeasible in one pass. For sample use, see command paxz. See also imperialviolet.org 2014/06/27.)
Types ¶
This section is empty.