private Mac createMac()

in sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/internal/Hkdf.java [254:266]


  private Mac createMac() {
    try {
      Mac mac = Mac.getInstance(algorithm, provider);
      mac.init(prk);
      return mac;
    } catch (NoSuchAlgorithmException ex) {
      // We've already validated that this algorithm is correct.
      throw new RuntimeException(ex);
    } catch (InvalidKeyException ex) {
      // We've already validated that this key is correct.
      throw new RuntimeException(ex);
    }
  }