mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +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);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package org.briarproject.api.reporting;
|
||||
|
||||
import org.briarproject.api.crypto.PublicKey;
|
||||
|
||||
public interface DevConfig {
|
||||
|
||||
byte[] getDevPublicKey();
|
||||
PublicKey getDevPublicKey();
|
||||
|
||||
String getDevOnionAddress();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user