Skip to content
Snippets Groups Projects
Commit 5a449bcf authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Fix Ed25519CryptoServiceTest.packAndOpenBox

parent 5af5c0ad
No related branches found
No related tags found
No related merge requests found
Pipeline #10270 passed
...@@ -70,8 +70,6 @@ public interface CryptoService extends Bean { ...@@ -70,8 +70,6 @@ public interface CryptoService extends Bean {
String box(String message, String nonce, String recipientSignPk, String senderSignSk); 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); String box(String message, byte[] nonce, byte[] recipientSignPk, byte[] senderSignSk);
byte[] getBoxRandomNonce(); byte[] getBoxRandomNonce();
......
...@@ -161,14 +161,6 @@ public class Ed25519CryptoServiceImpl implements CryptoService { ...@@ -161,14 +161,6 @@ public class Ed25519CryptoServiceImpl implements CryptoService {
CryptoUtils.decodeBase58(senderSignSk)); 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 @Override
public String box(String message, byte[] nonce, byte[] recipientSignPk, byte[] senderSignSk) { public String box(String message, byte[] nonce, byte[] recipientSignPk, byte[] senderSignSk) {
checkLength(nonce, CRYPTO_BOX_CURVE25519XSALSA20POLY1305_NONCEBYTES); checkLength(nonce, CRYPTO_BOX_CURVE25519XSALSA20POLY1305_NONCEBYTES);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment