github.com/magical/go-acorn (go): Package acorn implements the ACORN-128 authenticated encryption algorithm designed by Hongjun Wu, as specified in  ACORN was one of the six winners of the CAESAR competition: It is the second choice for use case 1 (lightwight applications in resource-constrained evironments). If you are not operating in a resource-constrained environment, AES-GCM is probably a better choice.  ACORN is claimed to be secure provided that the following conditions are met:  The key should be generated in a secure and random way  A key, nonce pair should not be used to protect more than one message  If verification fails, the decrypted plaintext and wrong authentication tag should not be given as output  Please note that repeating a nonce may allow an attacker to trivially forge arbitrary messages. Nonces should either be chosen at random (such as with RandomNonce) or assigned sequentially in a manner guaranteed never to repeat.
Keywords: cryptography