This commit is contained in:
Emman 2021-12-02 13:13:43 +08:00
parent a7921d9513
commit db223b3c7f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)
} }