Commit 5a449bcf authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Fix Ed25519CryptoServiceTest.packAndOpenBox

parent 5af5c0ad
Pipeline #10270 passed with stage
in 17 seconds
......@@ -70,8 +70,6 @@ public interface CryptoService extends Bean {
String box(String message, String nonce, String recipientSignPk, String senderSignSk);
String box(String message, byte[] nonce, String recipientSignPk, String senderSignSk);
String box(String message, byte[] nonce, byte[] recipientSignPk, byte[] senderSignSk);
byte[] getBoxRandomNonce();
......
......@@ -161,14 +161,6 @@ public class Ed25519CryptoServiceImpl implements CryptoService {
CryptoUtils.decodeBase58(senderSignSk));
}
@Override
public String box(String message, byte[] nonce, String recipientSignPk, String senderSignSk) {
return box(message, nonce,
CryptoUtils.decodeBase58(recipientSignPk),
CryptoUtils.decodeBase58(senderSignSk));
}
@Override
public String box(String message, byte[] nonce, byte[] recipientSignPk, byte[] senderSignSk) {
checkLength(nonce, CRYPTO_BOX_CURVE25519XSALSA20POLY1305_NONCEBYTES);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment