mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8248981: Specify list of standard message digest and mgf algorithms for RSASSA-PSS signature
Reviewed-by: valeriep
This commit is contained in:
parent
baafa662a2
commit
75a2afacc8
3 changed files with 24 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
|
@ -45,9 +45,9 @@ public class ECGenParameterSpec extends NamedParameterSpec {
|
|||
* of the provider whose implementation will be used.
|
||||
*
|
||||
* @param stdName the standard name of the to-be-generated EC
|
||||
* domain parameters. See the ParameterSpec Names section in the
|
||||
* domain parameters. See the ECGenParameterSpec section in the
|
||||
* <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
|
||||
* "{@docRoot}/../specs/security/standard-names.html#ecgenparameterspec">
|
||||
* Java Security Standard Algorithm Names Specification</a> for
|
||||
* information about standard names.
|
||||
* @throws NullPointerException if {@code stdName} is null.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2024, 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
|
||||
|
@ -30,10 +30,10 @@ import java.util.Objects;
|
|||
* This class is used to specify any algorithm parameters that are determined
|
||||
* by a standard name. This class also holds constants for standard parameter
|
||||
* set names. The names of these constants exactly match the corresponding
|
||||
* parameter set name. For example, NamedParameterSpec.X25519 represents the
|
||||
* parameter set identified by the string "X25519". These strings are defined
|
||||
* in the <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
|
||||
* parameter set name. For example, {@code NamedParameterSpec.X25519}
|
||||
* represents the parameter set identified by the string "X25519". These
|
||||
* strings are defined in the <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#namedparameterspec">
|
||||
* Java Security Standard Algorithm Names Specification</a>.
|
||||
*
|
||||
* @since 11
|
||||
|
@ -77,9 +77,9 @@ public class NamedParameterSpec implements AlgorithmParameterSpec {
|
|||
* of the provider whose implementation will be used.
|
||||
*
|
||||
* @param stdName the standard name of the algorithm parameters. See the
|
||||
* ParameterSpec Names section in the
|
||||
* NamedParameterSpec section in the
|
||||
* <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
|
||||
* "{@docRoot}/../specs/security/standard-names.html#namedparameterspec">
|
||||
* Java Security Standard Algorithm Names Specification</a> for
|
||||
* information about standard names.
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, 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
|
||||
|
@ -118,8 +118,19 @@ public class PSSParameterSpec implements AlgorithmParameterSpec {
|
|||
* mask generation function, parameters for mask generation
|
||||
* function, salt length, and trailer field values.
|
||||
*
|
||||
* @param mdName the algorithm name of the hash function
|
||||
* @param mgfName the algorithm name of the mask generation function
|
||||
* @param mdName the algorithm name of the hash function. See the
|
||||
* PSSParameterSpec section of the
|
||||
* <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#pssparameterspec">
|
||||
* Java Security Standard Algorithm Names Specification</a>
|
||||
* for information about standard names for the hash function.
|
||||
* @param mgfName the algorithm name of the mask generation function.
|
||||
* See the PSSParameterSpec section of the
|
||||
* <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#pssparameterspec">
|
||||
* Java Security Standard Algorithm Names Specification</a>
|
||||
* for information about standard names for the mask generation
|
||||
* function.
|
||||
* @param mgfSpec the parameters for the mask generation function.
|
||||
* If null is specified, null will be returned by
|
||||
* getMGFParameters().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue