@Test public void createKey_checkValues() throws Exception { AesGcmHkdfStreamingKeyFormat format = createKeyFormat(32, 32, HashType.SHA256, 1024); AesGcmHkdfStreamingKey key = factory.createKey(format); assertThat(key.getParams()).isEqualTo(format.getParams()); assertThat(key.getVersion()).isEqualTo(0); assertThat(key.getKeyValue()).hasSize(format.getKeySize()); }
@Override public int getVersion() { return 0; }
AesGcmHkdfStreamingKeyManager extends KeyTypeManager<AesGcmHkdfStreamingKey> { @Override public int getVersion() { return 0; } }
AesGcmHkdfStreamingKeyManager extends KeyTypeManager<AesGcmHkdfStreamingKey> { @Override public int getVersion() { return 0; } AesGcmHkdfStreamingKeyManager(); }
AesGcmHkdfStreamingKeyManager extends KeyTypeManager<AesGcmHkdfStreamingKey> { @Override public int getVersion() { return 0; } AesGcmHkdfStreamingKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesGcmHkdfStreamingKey key); @Override AesGcmHkdfStreamingKey parseKey(ByteString byteString); @Override KeyFactory<AesGcmHkdfStreamingKeyFormat, AesGcmHkdfStreamingKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate aes128GcmHkdf4KBTemplate(); static final KeyTemplate aes128GcmHkdf1MBTemplate(); static final KeyTemplate aes256GcmHkdf4KBTemplate(); static final KeyTemplate aes256GcmHkdf1MBTemplate(); }
AesGcmHkdfStreamingKeyManager extends KeyTypeManager<AesGcmHkdfStreamingKey> { @Override public int getVersion() { return 0; } AesGcmHkdfStreamingKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesGcmHkdfStreamingKey key); @Override AesGcmHkdfStreamingKey parseKey(ByteString byteString); @Override KeyFactory<AesGcmHkdfStreamingKeyFormat, AesGcmHkdfStreamingKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate aes128GcmHkdf4KBTemplate(); static final KeyTemplate aes128GcmHkdf1MBTemplate(); static final KeyTemplate aes256GcmHkdf4KBTemplate(); static final KeyTemplate aes256GcmHkdf1MBTemplate();  }