Encryptor performs encryption and decryption of contents of data.
| 19 | |
| 20 | // Encryptor performs encryption and decryption of contents of data. |
| 21 | type Encryptor interface { |
| 22 | // Encrypt appends the encrypted bytes corresponding to the given plaintext to a given slice. |
| 23 | // Must not clobber the input slice and return ciphertext with additional padding and checksum. |
| 24 | Encrypt(plainText gather.Bytes, contentID []byte, output *gather.WriteBuffer) error |
| 25 | |
| 26 | // Decrypt appends the unencrypted bytes corresponding to the given ciphertext to a given slice. |
| 27 | // Must not clobber the input slice. If IsAuthenticated() == true, Decrypt will perform |
| 28 | // authenticity check before decrypting. |
| 29 | Decrypt(cipherText gather.Bytes, contentID []byte, output *gather.WriteBuffer) error |
| 30 | |
| 31 | // Overhead is the number of bytes of overhead added by Encrypt() |
| 32 | Overhead() int |
| 33 | } |
| 34 | |
| 35 | // Parameters encapsulates all encryption parameters. |
| 36 | type Parameters interface { |
no outgoing calls
no test coverage detected