mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-28 05:06:18 +08:00
typo
This commit is contained in:
parent
a7921d9513
commit
db223b3c7f
@ -369,7 +369,7 @@ func decrypt(priv *PrivateKey, ciphertext []byte, opts *DecrypterOpts) ([]byte,
|
|||||||
return msg, nil
|
return msg, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func AdjustCipherTextSplicingOrder(ciphertext []byte, from, to ciphertextSplicingOrder) ([]byte, error) {
|
func AdjustCiphertextSplicingOrder(ciphertext []byte, from, to ciphertextSplicingOrder) ([]byte, error) {
|
||||||
curve := P256()
|
curve := P256()
|
||||||
if from == to {
|
if from == to {
|
||||||
return ciphertext, nil
|
return ciphertext, nil
|
||||||
|
@ -61,7 +61,7 @@ func Test_SplicingOrder(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Adjust splicing order
|
//Adjust splicing order
|
||||||
ciphertext, err = AdjustCipherTextSplicingOrder(ciphertext, tt.from, tt.to)
|
ciphertext, err = AdjustCiphertextSplicingOrder(ciphertext, tt.from, tt.to)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("adjust splicing order failed %v", err)
|
t.Fatalf("adjust splicing order failed %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user