mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Refactor MessageEncrypter interface to use PublicKey and PrivateKey
This commit is contained in:
@@ -27,6 +27,8 @@ public interface CryptoComponent {
|
||||
|
||||
KeyParser getSignatureKeyParser();
|
||||
|
||||
KeyParser getMessageKeyParser();
|
||||
|
||||
/** Generates a random invitation code. */
|
||||
int generateBTInvitationCode();
|
||||
|
||||
@@ -161,5 +163,5 @@ public interface CryptoComponent {
|
||||
/**
|
||||
* Encrypts the given plaintext to the given public key.
|
||||
*/
|
||||
String encryptToKey(byte[] publicKey, byte[] plaintext);
|
||||
String encryptToKey(PublicKey publicKey, byte[] plaintext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user