@Test
public void createKey_valuesAreOk() throws Exception {

  HkdfPrfKeyFormat format =
      HkdfPrfKeyFormat.newBuilder()
          .setKeySize(77)
          .setParams(
              HkdfPrfParams.newBuilder()
                  .setSalt(ByteString.copyFrom(Random.randBytes(5)))
                  .setHash(HashType.SHA256))
          .build();
  HkdfPrfKey key = factory.createKey(format);
  assertThat(key.getVersion()).isEqualTo(0);
  assertThat(key.getKeyValue()).hasSize(77);
  assertThat(key.getParams()).isEqualTo(format.getParams());
}