go_sshkeys/cipher/aes/aes128/cbc/types.go

19 lines
341 B
Go
Raw Normal View History

2022-04-28 05:18:25 -04:00
package cbc
import (
`crypto/cipher`
)
// Cipher is an AES128-CBC cipher.Cipher.
type Cipher struct {
// key contains the encryption key.
key []byte
// iv contains the IV, or initialization vector.
iv []byte
/*
cryptBlock contains the block encryptor.
CBC is a block (all at once) encryption mode.
*/
cryptBlock cipher.Block
}