equal
deleted
inserted
replaced
60 */ |
60 */ |
61 HKDF(String hashAlg) throws NoSuchAlgorithmException { |
61 HKDF(String hashAlg) throws NoSuchAlgorithmException { |
62 Objects.requireNonNull(hashAlg, |
62 Objects.requireNonNull(hashAlg, |
63 "Must provide underlying HKDF Digest algorithm."); |
63 "Must provide underlying HKDF Digest algorithm."); |
64 hmacAlg = "Hmac" + hashAlg.replace("-", ""); |
64 hmacAlg = "Hmac" + hashAlg.replace("-", ""); |
65 hmacObj = Mac.getInstance(hmacAlg); |
65 hmacObj = JsseJce.getMac(hmacAlg); |
66 hmacLen = hmacObj.getMacLength(); |
66 hmacLen = hmacObj.getMacLength(); |
67 } |
67 } |
68 |
68 |
69 /** |
69 /** |
70 * Perform the HMAC-Extract derivation. |
70 * Perform the HMAC-Extract derivation. |