mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-22 02:06:18 +08:00
15 lines
305 B
Go
15 lines
305 B
Go
package cipher
|
|
|
|
import "crypto/cipher"
|
|
|
|
// blockSize is the block size that the underlying cipher must have.
|
|
const blockSize = 16
|
|
|
|
type concurrentBlocks interface {
|
|
Concurrency() int
|
|
EncryptBlocks(dst, src []byte)
|
|
DecryptBlocks(dst, src []byte)
|
|
}
|
|
|
|
type CipherCreator func([]byte) (cipher.Block, error)
|