@Test public void getPublicKey_correctValues() throws Exception { if (TestUtil.isTsan()) { return; } RsaSsaPssKeyFormat format = createKeyFormat(HashType.SHA512, HashType.SHA512, 64, 4096, RSAKeyGenParameterSpec.F4); RsaSsaPssPrivateKey key = factory.createKey(format); assertThat(manager.getPublicKey(key)).isEqualTo(key.getPublicKey()); }
@Override public RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); }
RsaSsaPssSignKeyManager extends PrivateKeyTypeManager<RsaSsaPssPrivateKey, RsaSsaPssPublicKey> { @Override public RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } }
RsaSsaPssSignKeyManager extends PrivateKeyTypeManager<RsaSsaPssPrivateKey, RsaSsaPssPublicKey> { @Override public RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } RsaSsaPssSignKeyManager(); }
RsaSsaPssSignKeyManager extends PrivateKeyTypeManager<RsaSsaPssPrivateKey, RsaSsaPssPublicKey> { @Override public RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } RsaSsaPssSignKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto); @Override KeyMaterialType keyMaterialType(); @Override RsaSsaPssPrivateKey parseKey(ByteString byteString); @Override void validateKey(RsaSsaPssPrivateKey keyProto); @Override KeyFactory<RsaSsaPssKeyFormat, RsaSsaPssPrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate rsa3072PssSha256F4Template(); static final KeyTemplate rawRsa3072PssSha256F4Template(); static final KeyTemplate rsa4096PssSha512F4Template(); static final KeyTemplate rawRsa4096PssSha512F4Template(); }
RsaSsaPssSignKeyManager extends PrivateKeyTypeManager<RsaSsaPssPrivateKey, RsaSsaPssPublicKey> { @Override public RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } RsaSsaPssSignKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto); @Override KeyMaterialType keyMaterialType(); @Override RsaSsaPssPrivateKey parseKey(ByteString byteString); @Override void validateKey(RsaSsaPssPrivateKey keyProto); @Override KeyFactory<RsaSsaPssKeyFormat, RsaSsaPssPrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate rsa3072PssSha256F4Template(); static final KeyTemplate rawRsa3072PssSha256F4Template(); static final KeyTemplate rsa4096PssSha512F4Template(); static final KeyTemplate rawRsa4096PssSha512F4Template();  }