change key exchange to ED25519
This commit is contained in:
parent
6afc26e601
commit
9e5ca9dd95
1 changed files with 0 additions and 12 deletions
|
@ -41,18 +41,6 @@ public class EncryptUtil {
|
|||
|
||||
private static final long CRC24_INIT = 0xB704CEL;
|
||||
private static final long CRC24_POLY = 0x1864CFBL;
|
||||
|
||||
// private static byte[] deriveKey(byte[] secret) {
|
||||
// try {
|
||||
// KeySpec spec = new PBEKeySpec
|
||||
// SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256");
|
||||
// return factory.generateSecret(spec).getEncoded();
|
||||
// }
|
||||
// catch(NoSuchAlgorithmException | InvalidKeySpecException e) {
|
||||
// Log.SYSTEM.error(e, "Konnte Passwort-Prüfwert nicht berechnen");
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
|
||||
public static SecretKey makeKeyAgreement(PrivateKey key, PublicKey pubkey) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue