8248981: Specify list of standard message digest and mgf algorithms for RSASSA-PSS signature

Reviewed-by: valeriep
This commit is contained in:
Sean Mullan 2024-06-25 12:21:46 +00:00
parent baafa662a2
commit 75a2afacc8
3 changed files with 24 additions and 13 deletions

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * of the provider whose implementation will be used.
* *
* @param stdName the standard name of the to-be-generated EC * @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= * <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 * Java Security Standard Algorithm Names Specification</a> for
* information about standard names. * information about standard names.
* @throws NullPointerException if {@code stdName} is null. * @throws NullPointerException if {@code stdName} is null.

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * This class is used to specify any algorithm parameters that are determined
* by a standard name. This class also holds constants for standard parameter * by a standard name. This class also holds constants for standard parameter
* set names. The names of these constants exactly match the corresponding * set names. The names of these constants exactly match the corresponding
* parameter set name. For example, NamedParameterSpec.X25519 represents the * parameter set name. For example, {@code NamedParameterSpec.X25519}
* parameter set identified by the string "X25519". These strings are defined * represents the parameter set identified by the string "X25519". These
* in the <a href= * strings are defined 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>. * Java Security Standard Algorithm Names Specification</a>.
* *
* @since 11 * @since 11
@ -77,9 +77,9 @@ public class NamedParameterSpec implements AlgorithmParameterSpec {
* of the provider whose implementation will be used. * of the provider whose implementation will be used.
* *
* @param stdName the standard name of the algorithm parameters. See the * @param stdName the standard name of the algorithm parameters. See the
* ParameterSpec Names section in the * NamedParameterSpec section in the
* <a href= * <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 * Java Security Standard Algorithm Names Specification</a> for
* information about standard names. * information about standard names.
* *

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * mask generation function, parameters for mask generation
* function, salt length, and trailer field values. * function, salt length, and trailer field values.
* *
* @param mdName the algorithm name of the hash function * @param mdName the algorithm name of the hash function. See the
* @param mgfName the algorithm name of the mask generation function * 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. * @param mgfSpec the parameters for the mask generation function.
* If null is specified, null will be returned by * If null is specified, null will be returned by
* getMGFParameters(). * getMGFParameters().