ExtractNonce returns the nonce from the ciphertext where it was prepended
()
| 73 | |
| 74 | // ExtractNonce returns the nonce from the ciphertext where it was prepended |
| 75 | func (e EncryptedBytes) ExtractNonce() []byte { |
| 76 | return e.Ciphertext[:len(e.Nonce)] |
| 77 | } |
| 78 | |
| 79 | // CiphertextWithoutNonce returns the ciphertext without the prepended nonce |
| 80 | func (e EncryptedBytes) CiphertextWithoutNonce() []byte { |