Documentation ¶
Overview ¶
Package ctrutil contains various utilities used by ctrsigcheck.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeUTF16 ¶
DecodeUTF16 string from the given bytes using the given ByteOrder.
func NewCipherReader ¶
NewCipherReader wraps the given Reader to add on-the-fly encryption or decryption using the given BlockMode.
The input must be aligned to the cipher block size: ErrUnexpectedEOF is returned if EOF is reached in the middle of a block.
This Reader limits buffering and copies to the minimum: lookahead can only happen if the last requested block is incomplete. In that case, it is guaranteed that the wrapped Reader is never read beyond the end of the incomplete block. In particular, it is safe to stop reading from this Reader at a block boundary and then start using the wrapped Reader for something else.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader wraps another Reader to add some capabilities.