mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-05 13:40:18 +00:00
6977937: The SunJCE PBKDF2KeyImpl is requiring the MAC instance also be from SunJCE
Reviewed-by: xuelei, ascarpino, wetmore
This commit is contained in:
parent
b2c0ac7753
commit
5343687991
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -107,7 +107,7 @@ final class PBKDF2KeyImpl implements javax.crypto.interfaces.PBEKey {
|
||||
throw new InvalidKeySpecException("Key length is negative");
|
||||
}
|
||||
try {
|
||||
this.prf = Mac.getInstance(prfAlgo, SunJCE.getInstance());
|
||||
this.prf = Mac.getInstance(prfAlgo);
|
||||
} catch (NoSuchAlgorithmException nsae) {
|
||||
// not gonna happen; re-throw just in case
|
||||
InvalidKeySpecException ike = new InvalidKeySpecException();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user