@Test public void deriveECDHwithPublicKeysTest() { ECKey alicePublicKey = ECKey.fromPublicOnly(aliceKey.getPubKey()); ECKey bobPublicKey = ECKey.fromPublicOnly(bobKey.getPubKey()); try { KeyCrypterECDH bobKeyExchangeCrypter = new KeyCrypterECDH(); bobKeyExchangeCrypter.deriveKey(bobPublicKey, alicePublicKey); fail(); } catch (IllegalArgumentException x) { } catch (Exception x) { fail(); } }
@Override public KeyParameter deriveKey(CharSequence password) throws KeyCrypterException { throw new UnsupportedOperationException("use deriveKey(ECKey, ECKey) instead"); }
KeyCrypterECDH extends KeyCrypterAESCBC { @Override public KeyParameter deriveKey(CharSequence password) throws KeyCrypterException { throw new UnsupportedOperationException("use deriveKey(ECKey, ECKey) instead"); } }
KeyCrypterECDH extends KeyCrypterAESCBC { @Override public KeyParameter deriveKey(CharSequence password) throws KeyCrypterException { throw new UnsupportedOperationException("use deriveKey(ECKey, ECKey) instead"); }  }
KeyCrypterECDH extends KeyCrypterAESCBC { @Override public KeyParameter deriveKey(CharSequence password) throws KeyCrypterException { throw new UnsupportedOperationException("use deriveKey(ECKey, ECKey) instead"); }  @Override KeyParameter deriveKey(CharSequence password); KeyParameter deriveKey(ECKey secretKey, ECKey publicKey); @Override EncryptionType getUnderstoodEncryptionType(); @Override String toString(); }
KeyCrypterECDH extends KeyCrypterAESCBC { @Override public KeyParameter deriveKey(CharSequence password) throws KeyCrypterException { throw new UnsupportedOperationException("use deriveKey(ECKey, ECKey) instead"); }  @Override KeyParameter deriveKey(CharSequence password); KeyParameter deriveKey(ECKey secretKey, ECKey publicKey); @Override EncryptionType getUnderstoodEncryptionType(); @Override String toString();  }