(*CTR) XORKeyStream(dst, src []byte) XORKeyStreamAt behaves like XORKeyStream but keeps no state, and instead
seeks into the keystream by the given bytes offset from the start (ignoring
any XORKetStream calls). This allows for random access into the keystream, up
to 16 EiB from the start.
*CTR : crypto/cipher.Stream
func NewCTR(b *Block, iv []byte) *CTR
func RoundToBlock(c *CTR)
EncryptBlockInternal applies the AES encryption function to one block.
It is an internal function meant only for the gcm package.
EncryptionKeySchedule is used from the GCM implementation to access the
precomputed AES key schedule, to pass to the assembly implementation.
New creates and returns a new [cipher.Block] implementation.
The key argument should be the AES key, either 16, 24, or 32 bytes to select
AES-128, AES-192, or AES-256.
NewCBCDecrypter returns a [cipher.BlockMode] which decrypts in cipher block
chaining mode, using the given Block.
NewCBCEncrypter returns a [cipher.BlockMode] which encrypts in cipher block
chaining mode, using the given Block.
RoundToBlock is used by CTR_DRBG, which discards the rightmost unused bits at
each request. It rounds the offset up to the next block boundary.
Package-Level Constants (only one)
BlockSize is the AES block size in bytes.
The pages are generated with Goldsv0.8.3-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.