@Test public void getPublicKey_correctValues() throws Exception { if (TestUtil.isTsan()) { return; } RsaSsaPkcs1KeyFormat format = createKeyFormat(HashType.SHA256, 3072, RSAKeyGenParameterSpec.F4); RsaSsaPkcs1PrivateKey key = factory.createKey(format); assertThat(manager.getPublicKey(key)).isEqualTo(key.getPublicKey()); }
@Override public RsaSsaPkcs1PublicKey getPublicKey(RsaSsaPkcs1PrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); }
RsaSsaPkcs1SignKeyManager extends PrivateKeyTypeManager<RsaSsaPkcs1PrivateKey, RsaSsaPkcs1PublicKey> { @Override public RsaSsaPkcs1PublicKey getPublicKey(RsaSsaPkcs1PrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } }
RsaSsaPkcs1SignKeyManager extends PrivateKeyTypeManager<RsaSsaPkcs1PrivateKey, RsaSsaPkcs1PublicKey> { @Override public RsaSsaPkcs1PublicKey getPublicKey(RsaSsaPkcs1PrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } RsaSsaPkcs1SignKeyManager(); }
RsaSsaPkcs1SignKeyManager extends PrivateKeyTypeManager<RsaSsaPkcs1PrivateKey, RsaSsaPkcs1PublicKey> { @Override public RsaSsaPkcs1PublicKey getPublicKey(RsaSsaPkcs1PrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } RsaSsaPkcs1SignKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override RsaSsaPkcs1PublicKey getPublicKey(RsaSsaPkcs1PrivateKey privKeyProto); @Override KeyMaterialType keyMaterialType(); @Override RsaSsaPkcs1PrivateKey parseKey(ByteString byteString); @Override void validateKey(RsaSsaPkcs1PrivateKey privKey); @Override KeyFactory<RsaSsaPkcs1KeyFormat, RsaSsaPkcs1PrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate rsa3072SsaPkcs1Sha256F4Template(); static final KeyTemplate rawRsa3072SsaPkcs1Sha256F4Template(); static final KeyTemplate rsa4096SsaPkcs1Sha512F4Template(); static final KeyTemplate rawRsa4096SsaPkcs1Sha512F4Template(); }
RsaSsaPkcs1SignKeyManager extends PrivateKeyTypeManager<RsaSsaPkcs1PrivateKey, RsaSsaPkcs1PublicKey> { @Override public RsaSsaPkcs1PublicKey getPublicKey(RsaSsaPkcs1PrivateKey privKeyProto) throws GeneralSecurityException { return privKeyProto.getPublicKey(); } RsaSsaPkcs1SignKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override RsaSsaPkcs1PublicKey getPublicKey(RsaSsaPkcs1PrivateKey privKeyProto); @Override KeyMaterialType keyMaterialType(); @Override RsaSsaPkcs1PrivateKey parseKey(ByteString byteString); @Override void validateKey(RsaSsaPkcs1PrivateKey privKey); @Override KeyFactory<RsaSsaPkcs1KeyFormat, RsaSsaPkcs1PrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate rsa3072SsaPkcs1Sha256F4Template(); static final KeyTemplate rawRsa3072SsaPkcs1Sha256F4Template(); static final KeyTemplate rsa4096SsaPkcs1Sha512F4Template(); static final KeyTemplate rawRsa4096SsaPkcs1Sha512F4Template();  }