mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8343622: AesDkCrypto.stringToKey should not return null
Reviewed-by: valeriep
This commit is contained in:
parent
e46d822aeb
commit
ca46c3a5ba
6 changed files with 59 additions and 16 deletions
|
@ -72,13 +72,8 @@ public final class MD4 extends DigestBase {
|
|||
md4Provider.put("MessageDigest.MD4", "sun.security.provider.MD4");
|
||||
}
|
||||
|
||||
public static MessageDigest getInstance() {
|
||||
try {
|
||||
return MessageDigest.getInstance("MD4", md4Provider);
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
// should never occur
|
||||
throw new ProviderException(e);
|
||||
}
|
||||
public static MessageDigest getInstance() throws NoSuchAlgorithmException {
|
||||
return MessageDigest.getInstance("MD4", md4Provider);
|
||||
}
|
||||
|
||||
// Standard constructor, creates a new MD4 instance.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue