src/java.base/share/classes/sun/security/ssl/HKDF.java
branchJDK-8145252-TLS13-branch
changeset 56686 07dc566630ee
parent 56662 126e167bb2cb
equal deleted inserted replaced
56685:c7e7234828c0 56686:07dc566630ee
    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.