@Test public void testAes256GcmSivTemplate() throws Exception { KeyTemplate template = AesGcmSivKeyManager.aes256GcmSivTemplate(); assertEquals(new AesGcmSivKeyManager().getKeyType(), template.getTypeUrl()); assertEquals(KeyTemplate.OutputPrefixType.TINK, template.getOutputPrefixType()); AesGcmSivKeyFormat format = AesGcmSivKeyFormat.parseFrom( ByteString.copyFrom(template.getValue()), ExtensionRegistryLite.getEmptyRegistry()); assertEquals(32, format.getKeySize()); }
public static final KeyTemplate aes256GcmSivTemplate() { return createKeyTemplate(32, KeyTemplate.OutputPrefixType.TINK); }
AesGcmSivKeyManager extends KeyTypeManager<AesGcmSivKey> { public static final KeyTemplate aes256GcmSivTemplate() { return createKeyTemplate(32, KeyTemplate.OutputPrefixType.TINK); } }
AesGcmSivKeyManager extends KeyTypeManager<AesGcmSivKey> { public static final KeyTemplate aes256GcmSivTemplate() { return createKeyTemplate(32, KeyTemplate.OutputPrefixType.TINK); } AesGcmSivKeyManager(); }
AesGcmSivKeyManager extends KeyTypeManager<AesGcmSivKey> { public static final KeyTemplate aes256GcmSivTemplate() { return createKeyTemplate(32, KeyTemplate.OutputPrefixType.TINK); } AesGcmSivKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesGcmSivKey key); @Override AesGcmSivKey parseKey(ByteString byteString); @Override KeyFactory<AesGcmSivKeyFormat, AesGcmSivKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate aes128GcmSivTemplate(); static final KeyTemplate rawAes128GcmSivTemplate(); static final KeyTemplate aes256GcmSivTemplate(); static final KeyTemplate rawAes256GcmSivTemplate(); }
AesGcmSivKeyManager extends KeyTypeManager<AesGcmSivKey> { public static final KeyTemplate aes256GcmSivTemplate() { return createKeyTemplate(32, KeyTemplate.OutputPrefixType.TINK); } AesGcmSivKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesGcmSivKey key); @Override AesGcmSivKey parseKey(ByteString byteString); @Override KeyFactory<AesGcmSivKeyFormat, AesGcmSivKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate aes128GcmSivTemplate(); static final KeyTemplate rawAes128GcmSivTemplate(); static final KeyTemplate aes256GcmSivTemplate(); static final KeyTemplate rawAes256GcmSivTemplate();  }