diff --git a/sm2/sm2.go b/sm2/sm2.go index 4d1fb9c..86c61b7 100644 --- a/sm2/sm2.go +++ b/sm2/sm2.go @@ -369,7 +369,7 @@ func decrypt(priv *PrivateKey, ciphertext []byte, opts *DecrypterOpts) ([]byte, return msg, nil } -func AdjustCipherTextSplicingOrder(ciphertext []byte, from, to ciphertextSplicingOrder) ([]byte, error) { +func AdjustCiphertextSplicingOrder(ciphertext []byte, from, to ciphertextSplicingOrder) ([]byte, error) { curve := P256() if from == to { return ciphertext, nil diff --git a/sm2/sm2_test.go b/sm2/sm2_test.go index 354b9a5..438eece 100644 --- a/sm2/sm2_test.go +++ b/sm2/sm2_test.go @@ -61,7 +61,7 @@ func Test_SplicingOrder(t *testing.T) { } //Adjust splicing order - ciphertext, err = AdjustCipherTextSplicingOrder(ciphertext, tt.from, tt.to) + ciphertext, err = AdjustCiphertextSplicingOrder(ciphertext, tt.from, tt.to) if err != nil { t.Fatalf("adjust splicing order failed %v", err) }