@Test public void getPublicKey_values() throws Exception { EciesAeadHkdfPrivateKey key = createValidKey(); EciesAeadHkdfPublicKey publicKey = manager.getPublicKey(key); assertThat(publicKey).isEqualTo(key.getPublicKey()); }
@Override public EciesAeadHkdfPublicKey getPublicKey(EciesAeadHkdfPrivateKey key) throws GeneralSecurityException { return key.getPublicKey(); }
EciesAeadHkdfPrivateKeyManager extends PrivateKeyTypeManager<EciesAeadHkdfPrivateKey, EciesAeadHkdfPublicKey> { @Override public EciesAeadHkdfPublicKey getPublicKey(EciesAeadHkdfPrivateKey key) throws GeneralSecurityException { return key.getPublicKey(); } }
EciesAeadHkdfPrivateKeyManager extends PrivateKeyTypeManager<EciesAeadHkdfPrivateKey, EciesAeadHkdfPublicKey> { @Override public EciesAeadHkdfPublicKey getPublicKey(EciesAeadHkdfPrivateKey key) throws GeneralSecurityException { return key.getPublicKey(); } EciesAeadHkdfPrivateKeyManager(); }
EciesAeadHkdfPrivateKeyManager extends PrivateKeyTypeManager<EciesAeadHkdfPrivateKey, EciesAeadHkdfPublicKey> { @Override public EciesAeadHkdfPublicKey getPublicKey(EciesAeadHkdfPrivateKey key) throws GeneralSecurityException { return key.getPublicKey(); } EciesAeadHkdfPrivateKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override EciesAeadHkdfPublicKey getPublicKey(EciesAeadHkdfPrivateKey key); @Override KeyMaterialType keyMaterialType(); @Override EciesAeadHkdfPrivateKey parseKey(ByteString byteString); @Override void validateKey(EciesAeadHkdfPrivateKey keyProto); @Override KeyFactory<EciesAeadHkdfKeyFormat, EciesAeadHkdfPrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate eciesP256HkdfHmacSha256Aes128GcmTemplate(); static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate(); static final KeyTemplate eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template(); static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate(); }
EciesAeadHkdfPrivateKeyManager extends PrivateKeyTypeManager<EciesAeadHkdfPrivateKey, EciesAeadHkdfPublicKey> { @Override public EciesAeadHkdfPublicKey getPublicKey(EciesAeadHkdfPrivateKey key) throws GeneralSecurityException { return key.getPublicKey(); } EciesAeadHkdfPrivateKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override EciesAeadHkdfPublicKey getPublicKey(EciesAeadHkdfPrivateKey key); @Override KeyMaterialType keyMaterialType(); @Override EciesAeadHkdfPrivateKey parseKey(ByteString byteString); @Override void validateKey(EciesAeadHkdfPrivateKey keyProto); @Override KeyFactory<EciesAeadHkdfKeyFormat, EciesAeadHkdfPrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate eciesP256HkdfHmacSha256Aes128GcmTemplate(); static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate(); static final KeyTemplate eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template(); static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate();  }