mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-28 05:06:18 +08:00
sm9: remove duplicated code
This commit is contained in:
parent
d7e853277a
commit
63668bb045
@ -473,9 +473,6 @@ func DecryptASN1(priv *EncryptPrivateKey, uid, ciphertext []byte) ([]byte, error
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
hash := sm3.New()
|
hash := sm3.New()
|
||||||
hash.Write(c2Bytes)
|
hash.Write(c2Bytes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user