mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-08 21:03:05 +00:00
internal/age: add some docs and polish API
This commit is contained in:
@@ -106,7 +106,7 @@ func (r *Reader) readChunk() (last bool, err error) {
|
||||
out, err = r.a.Open(outBuf, r.nonce[:], in, nil)
|
||||
}
|
||||
if err != nil {
|
||||
return false, err
|
||||
return false, errors.New("failed to decrypt and authenticate payload chunk")
|
||||
}
|
||||
|
||||
incNonce(&r.nonce)
|
||||
|
||||
Reference in New Issue
Block a user