test_class.declarator: KEY_SIZE = 32
test_class.modifier: private static final
test_class.original_string: private static final int KEY_SIZE = 32;
test_class.type: int
test_class.var_name: KEY_SIZE
test_class.file: java_src/src/test/java/com/google/crypto/tink/prf/PrfSetWrapperTest.java
test_class.identifier: PrfSetWrapperTest
test_case.body: @Test
    public void testSmallPlaintextWithRawKey() throws Exception {
      byte[] keyValue = Random.randBytes(KEY_SIZE);
      Keyset.Key primary =
          TestUtil.createKey(
              TestUtil.createPrfKeyData(keyValue),
              /* keyId= */ 5,
              KeyStatusType.ENABLED,
              OutputPrefixType.RAW);
      KeysetHandle keysetHandle = TestUtil.createKeysetHandle(TestUtil.createKeyset(primary));
      byte[] plaintext = "blah".getBytes(UTF_8);
  
      PrfSet prfSet = new PrfSetWrapper().wrap(Registry.getPrimitives(keysetHandle, PrfSet.class));
      byte[] prs = prfSet.computePrimary(plaintext, 12);
      byte[] prs2 = prfSet.getPrfs().get(5).compute(plaintext, 12);
  
      assertEquals(5, prfSet.getPrimaryId());
      assertThat(prfSet.getPrfs()).hasSize(1);
      assertThat(prs).hasLength(12);
      assertArrayEquals(prs2, prs);
    }
test_case.class_method_signature: PrfSetWrapperTest.testSmallPlaintextWithRawKey()
test_case.full_signature: @Test public void testSmallPlaintextWithRawKey()
test_case.identifier: testSmallPlaintextWithRawKey
test_case.invocations: randBytes createKey createPrfKeyData createKeysetHandle createKeyset getBytes wrap getPrimitives computePrimary compute get getPrfs assertEquals getPrimaryId hasSize assertThat getPrfs hasLength assertThat assertArrayEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSmallPlaintextWithRawKey()
focal_class.file: java_src/src/main/java/com/google/crypto/tink/prf/PrfSetWrapper.java
focal_class.identifier: PrfSetWrapper
focal_class.interfaces: implements PrimitiveWrapper<PrfSet, PrfSet>
focal_class.class_method_signature: PrfSetWrapper.wrap(PrimitiveSet<PrfSet> set)
focal_class.full_signature: @Override public PrfSet wrap(PrimitiveSet<PrfSet> set)
focal_class.identifier: wrap
focal_class.modifiers: @Override public
focal_class.parameters: (PrimitiveSet<PrfSet> set)
focal_class.return: PrfSet
focal_class.signature: PrfSet wrap(PrimitiveSet<PrfSet> set)
focal_class.class_method_signature: PrfSetWrapper.getPrimitiveClass()
focal_class.full_signature: @Override public Class<PrfSet> getPrimitiveClass()
focal_class.identifier: getPrimitiveClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<PrfSet>
focal_class.signature: Class<PrfSet> getPrimitiveClass()
focal_class.class_method_signature: PrfSetWrapper.getInputPrimitiveClass()
focal_class.full_signature: @Override public Class<PrfSet> getInputPrimitiveClass()
focal_class.identifier: getInputPrimitiveClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<PrfSet>
focal_class.signature: Class<PrfSet> getInputPrimitiveClass()
focal_class.class_method_signature: PrfSetWrapper.register()
focal_class.full_signature: public static void register()
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void register()
focal_method.body: @Override
    public PrfSet wrap(PrimitiveSet<PrfSet> set) throws GeneralSecurityException {
      return new WrappedPrfSet(set);
    }
focal_method.class_method_signature: PrfSetWrapper.wrap(PrimitiveSet<PrfSet> set)
focal_method.full_signature: @Override public PrfSet wrap(PrimitiveSet<PrfSet> set)
focal_method.identifier: wrap
focal_method.modifiers: @Override public
focal_method.parameters: (PrimitiveSet<PrfSet> set)
focal_method.return: PrfSet
focal_method.signature: PrfSet wrap(PrimitiveSet<PrfSet> set)