@Test public void testKeyTemplateAndManagerCompatibility() throws Exception { HkdfPrfKeyManager manager = new HkdfPrfKeyManager(); testKeyTemplateCompatible(manager, HkdfPrfKeyManager.hkdfSha256Template()); }
public static final KeyTemplate hkdfSha256Template() { HkdfPrfKeyFormat format = HkdfPrfKeyFormat.newBuilder() .setKeySize(32) .setParams(HkdfPrfParams.newBuilder().setHash(HashType.SHA256)) .build(); return KeyTemplate.create( HkdfPrfKeyManager.staticKeyType(), format.toByteArray(), KeyTemplate.OutputPrefixType.RAW); }
HkdfPrfKeyManager extends KeyTypeManager<HkdfPrfKey> { public static final KeyTemplate hkdfSha256Template() { HkdfPrfKeyFormat format = HkdfPrfKeyFormat.newBuilder() .setKeySize(32) .setParams(HkdfPrfParams.newBuilder().setHash(HashType.SHA256)) .build(); return KeyTemplate.create( HkdfPrfKeyManager.staticKeyType(), format.toByteArray(), KeyTemplate.OutputPrefixType.RAW); } }
HkdfPrfKeyManager extends KeyTypeManager<HkdfPrfKey> { public static final KeyTemplate hkdfSha256Template() { HkdfPrfKeyFormat format = HkdfPrfKeyFormat.newBuilder() .setKeySize(32) .setParams(HkdfPrfParams.newBuilder().setHash(HashType.SHA256)) .build(); return KeyTemplate.create( HkdfPrfKeyManager.staticKeyType(), format.toByteArray(), KeyTemplate.OutputPrefixType.RAW); } HkdfPrfKeyManager(); }
HkdfPrfKeyManager extends KeyTypeManager<HkdfPrfKey> { public static final KeyTemplate hkdfSha256Template() { HkdfPrfKeyFormat format = HkdfPrfKeyFormat.newBuilder() .setKeySize(32) .setParams(HkdfPrfParams.newBuilder().setHash(HashType.SHA256)) .build(); return KeyTemplate.create( HkdfPrfKeyManager.staticKeyType(), format.toByteArray(), KeyTemplate.OutputPrefixType.RAW); } HkdfPrfKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(HkdfPrfKey key); @Override HkdfPrfKey parseKey(ByteString byteString); @Override KeyFactory<HkdfPrfKeyFormat, HkdfPrfKey> keyFactory(); static void register(boolean newKeyAllowed); static String staticKeyType(); static final KeyTemplate hkdfSha256Template(); }
HkdfPrfKeyManager extends KeyTypeManager<HkdfPrfKey> { public static final KeyTemplate hkdfSha256Template() { HkdfPrfKeyFormat format = HkdfPrfKeyFormat.newBuilder() .setKeySize(32) .setParams(HkdfPrfParams.newBuilder().setHash(HashType.SHA256)) .build(); return KeyTemplate.create( HkdfPrfKeyManager.staticKeyType(), format.toByteArray(), KeyTemplate.OutputPrefixType.RAW); } HkdfPrfKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(HkdfPrfKey key); @Override HkdfPrfKey parseKey(ByteString byteString); @Override KeyFactory<HkdfPrfKeyFormat, HkdfPrfKey> keyFactory(); static void register(boolean newKeyAllowed); static String staticKeyType(); static final KeyTemplate hkdfSha256Template();  }