mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8172366: Support SHA-3 based signatures
Enhance default JDK providers including SUN, SunRsaSign, and SunEC, with signatures using SHA-3 family of digests. Reviewed-by: xuelei
This commit is contained in:
parent
46598c8644
commit
40206822f4
20 changed files with 673 additions and 95 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2020, 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
|
||||
|
@ -108,6 +108,34 @@ public class MGF1ParameterSpec implements AlgorithmParameterSpec {
|
|||
public static final MGF1ParameterSpec SHA512_256 =
|
||||
new MGF1ParameterSpec("SHA-512/256");
|
||||
|
||||
/**
|
||||
* The MGF1ParameterSpec which uses SHA3-224 message digest
|
||||
* @since 16
|
||||
*/
|
||||
public static final MGF1ParameterSpec SHA3_224 =
|
||||
new MGF1ParameterSpec("SHA3-224");
|
||||
|
||||
/**
|
||||
* The MGF1ParameterSpec which uses SHA3-256 message digest
|
||||
* @since 16
|
||||
*/
|
||||
public static final MGF1ParameterSpec SHA3_256 =
|
||||
new MGF1ParameterSpec("SHA3-256");
|
||||
|
||||
/**
|
||||
* The MGF1ParameterSpec which uses SHA3-384 message digest
|
||||
* @since 16
|
||||
*/
|
||||
public static final MGF1ParameterSpec SHA3_384 =
|
||||
new MGF1ParameterSpec("SHA3-384");
|
||||
|
||||
/**
|
||||
* The MGF1ParameterSpec which uses SHA3-512 message digest
|
||||
* @since 16
|
||||
*/
|
||||
public static final MGF1ParameterSpec SHA3_512 =
|
||||
new MGF1ParameterSpec("SHA3-512");
|
||||
|
||||
private String mdName;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue