mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +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
|
||||
}
|
||||
|
||||
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
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user