encryptBytes encrypts bytes with a random nonce
(data []byte, key *[keySize]byte)
| 452 | |
| 453 | // encryptBytes encrypts bytes with a random nonce |
| 454 | func encryptBytes(data []byte, key *[keySize]byte) []byte { |
| 455 | nonce := randomNonce() |
| 456 | return encrypt(data, nonce, key) |
| 457 | } |
| 458 | |
| 459 | // encryptDeterministic encrypts bytes using AES-SIV |
| 460 | func encryptDeterministic(data []byte, key *[keySize]byte, additionalData []byte) []byte { |