This commit is contained in:
parent
7fb061c9a3
commit
d9edfb0b71
|
|
@ -13,8 +13,6 @@ import (
|
|||
"voucher/internal/pkg/cmb/encrypt"
|
||||
)
|
||||
|
||||
const messageSeparator = byte(0x7C)
|
||||
|
||||
type Decrypts struct {
|
||||
EncryptBody string
|
||||
PrivateKey string
|
||||
|
|
@ -34,6 +32,7 @@ func EncryptBody(encrypts *Encrypts) (string, error) {
|
|||
if _, err := rand.Read(randomKey); err != nil {
|
||||
return "", fmt.Errorf("生成randomKey失败:%v", err)
|
||||
}
|
||||
|
||||
if _, err := rand.Read(randomIV); err != nil {
|
||||
return "", fmt.Errorf("生成randomIV失败: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue