@Test public void testRawAes256SivTemplate() throws Exception { KeyTemplate template = AesSivKeyManager.rawAes256SivTemplate(); assertThat(template.getTypeUrl()).isEqualTo(new AesSivKeyManager().getKeyType()); assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.RAW); AesSivKeyFormat format = AesSivKeyFormat.parseFrom(template.getValue(), ExtensionRegistryLite.getEmptyRegistry()); assertThat(format.getKeySize()).isEqualTo(format.getKeySize()); }
public static final KeyTemplate rawAes256SivTemplate() { return createKeyTemplate(64, KeyTemplate.OutputPrefixType.RAW); }
AesSivKeyManager extends KeyTypeManager<AesSivKey> { public static final KeyTemplate rawAes256SivTemplate() { return createKeyTemplate(64, KeyTemplate.OutputPrefixType.RAW); } }
AesSivKeyManager extends KeyTypeManager<AesSivKey> { public static final KeyTemplate rawAes256SivTemplate() { return createKeyTemplate(64, KeyTemplate.OutputPrefixType.RAW); } AesSivKeyManager(); }
AesSivKeyManager extends KeyTypeManager<AesSivKey> { public static final KeyTemplate rawAes256SivTemplate() { return createKeyTemplate(64, KeyTemplate.OutputPrefixType.RAW); } AesSivKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesSivKey key); @Override AesSivKey parseKey(ByteString byteString); @Override KeyFactory<AesSivKeyFormat, AesSivKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate aes256SivTemplate(); static final KeyTemplate rawAes256SivTemplate(); }
AesSivKeyManager extends KeyTypeManager<AesSivKey> { public static final KeyTemplate rawAes256SivTemplate() { return createKeyTemplate(64, KeyTemplate.OutputPrefixType.RAW); } AesSivKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesSivKey key); @Override AesSivKey parseKey(ByteString byteString); @Override KeyFactory<AesSivKeyFormat, AesSivKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate aes256SivTemplate(); static final KeyTemplate rawAes256SivTemplate();  }