Fully functional encrypt/decrypt

This commit is contained in:
Dan Flack 2024-09-20 21:00:05 +02:00
parent 54cfb17145
commit 857d3b6d17
2 changed files with 31 additions and 13 deletions

View file

@ -56,7 +56,8 @@ class SM2Decrypt extends Operation {
var sm2 = new SM2(curveName, inputFormat);
sm2.setPrivateKey(privateKey);
var result = sm2.decrypt(new Uint8Array(input))
var result = sm2.decrypt(input);
return result
}