Commit Graph

9 Commits

Author SHA1 Message Date
alexmullins 246ebb4124 Add tests to check for AE-1 CRC and Auth failures. 2015-11-26 18:20:29 -06:00
alexmullins 28a48eb706 Tidy up code 2015-11-26 15:22:28 -06:00
alexmullins 9b6aff4be2 Change documentation 2015-11-26 14:38:53 -06:00
alexmullins 8ac7f2d858 Check error return from mac.Write 2015-11-06 01:44:41 -06:00
alexmullins 42f3489e0b Switch newDecryptionReader return to io.Reader 2015-11-06 01:01:44 -06:00
alexmullins 119f51e65c Fix proper number of bytes returned from streaming 2015-11-06 00:54:33 -06:00
alexmullins 8d81f262c6 Setup ground work for streaming/buffered reading.
Buffered reading is recommended as it will fully
authenticate the ciphertext before sending any data
to be decrypted. Streaming authentication is only
recommended if: 1. you buffer the data yourself
and wait for authentication before streaming to another
source such as the network, or 2. you just don't
care about authenticating unknown ciphertext before use :).
2015-11-06 00:50:54 -06:00
alexmullins cf103a6528 defer authentication/buffering to Read not Open 2015-11-05 23:12:14 -06:00
alexmullins 37ce86c83e move crypto stuff to crypto.go and change README 2015-11-04 21:37:46 -06:00