Documentation ¶
Index ¶
- func EncryptChunk(chunkIdx uint64, reqSeqNo uint64, sessionKey, in []byte) ([]byte, error)
- func EncryptCipherBlock(plaintext []byte, key []byte, iv []byte, counter uint32) ([]byte, error)
- func KeyedPRF(prfInput []byte, requestSeqNo uint32, key []byte) ([]byte, error)
- func Uint32ToLE(x uint32) []byte
- func Uint64ToLE(x uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptChunk ¶
Also decrypts chunk, since we're using AES in the CTR mode.
func EncryptCipherBlock ¶
EncryptCipherBlock encrypts a single plaintext block using AES in the CTR mode. Unusually, it lets the caller specify the counter's value; the counter is added to the IV.
func Uint32ToLE ¶
func Uint64ToLE ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.