AesCtrHmacStreamingKeyManager extends KeyTypeManager<AesCtrHmacStreamingKey> { @Override public int getVersion() { return 0; } AesCtrHmacStreamingKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesCtrHmacStreamingKey key); @Override AesCtrHmacStreamingKey parseKey(ByteString byteString); @Override KeyFactory<AesCtrHmacStreamingKeyFormat, AesCtrHmacStreamingKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate aes128CtrHmacSha2564KBTemplate(); static final KeyTemplate aes128CtrHmacSha2561MBTemplate(); static final KeyTemplate aes256CtrHmacSha2564KBTemplate(); static final KeyTemplate aes256CtrHmacSha2561MBTemplate();  }
@Test public void createKey_values() throws Exception { AesCtrHmacStreamingKeyFormat format = createKeyFormat().build(); AesCtrHmacStreamingKey key = factory.createKey(format); assertThat(key.getVersion()).isEqualTo(0); assertThat(key.getKeyValue()).hasSize(format.getKeySize()); assertThat(key.getParams()).isEqualTo(format.getParams()); }