draft
This commit is contained in:
13
backend/internal/channel/heepay/cbc.go
Normal file
13
backend/internal/channel/heepay/cbc.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package heepay
|
||||
|
||||
import "crypto/cipher"
|
||||
|
||||
// newCBCEncrypter 创建 CBC 加密器(封装 cipher.NewCBCEncrypter)
|
||||
func newCBCEncrypter(block cipher.Block, iv []byte) cipher.BlockMode {
|
||||
return cipher.NewCBCEncrypter(block, iv)
|
||||
}
|
||||
|
||||
// newCBCDecrypter 创建 CBC 解密器
|
||||
func newCBCDecrypter(block cipher.Block, iv []byte) cipher.BlockMode {
|
||||
return cipher.NewCBCDecrypter(block, iv)
|
||||
}
|
||||
Reference in New Issue
Block a user