package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Oct 24, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AES128KeySize returns the AES-128 key size in bytes.
AES256KeySize returns the AES-256 key size in bytes.
AESBlockSize returns the AES block size in bytes.
type Cipher interface {
BlockSize() int
Encrypt(dst, src []byte)
Decrypt(dst, src []byte)
}
Cipher represents a raw block cipher with fixed-size blocks.
NewAES128 returns an AES-128 block cipher implementing Cipher.
NewAES256 returns an AES-256 block cipher implementing Cipher.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.