mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Use the BouncyCastle provider so we can be sure we won't get
NoSuchAlgorithmExceptions. Key generation is *slow* - I guess that's a good sign. ;-)
This commit is contained in:
17
api/net/sf/briar/api/crypto/CryptoComponent.java
Normal file
17
api/net/sf/briar/api/crypto/CryptoComponent.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
|
||||
import java.security.KeyPair;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.Signature;
|
||||
|
||||
|
||||
public interface CryptoComponent {
|
||||
|
||||
KeyPair generateKeyPair();
|
||||
|
||||
KeyParser getKeyParser();
|
||||
|
||||
MessageDigest getMessageDigest();
|
||||
|
||||
Signature getSignature();
|
||||
}
|
||||
Reference in New Issue
Block a user