mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8146293: Add support for RSASSA-PSS Signature algorithm
Add RSASSA-PSS key and signature support to SunRsaSign provider Reviewed-by: wetmore
This commit is contained in:
parent
6216182dd1
commit
9e8d9fe1ee
79 changed files with 5489 additions and 627 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2018, 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
|
||||
|
@ -26,9 +26,12 @@
|
|||
package java.security.interfaces;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.security.spec.AlgorithmParameterSpec;
|
||||
|
||||
/**
|
||||
* The interface to an RSA public or private key.
|
||||
* The interface to a public or private key in
|
||||
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
|
||||
* such as those for RSA, or RSASSA-PSS algorithms.
|
||||
*
|
||||
* @author Jan Luehe
|
||||
*
|
||||
|
@ -46,4 +49,20 @@ public interface RSAKey {
|
|||
* @return the modulus
|
||||
*/
|
||||
public BigInteger getModulus();
|
||||
|
||||
/**
|
||||
* Returns the parameters associated with this key.
|
||||
* The parameters are optional and may be either
|
||||
* explicitly specified or implicitly created during
|
||||
* key pair generation.
|
||||
*
|
||||
* @implSpec
|
||||
* The default implementation returns {@code null}.
|
||||
*
|
||||
* @return the associated parameters, may be null
|
||||
* @since 11
|
||||
*/
|
||||
default AlgorithmParameterSpec getParams() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2018, 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,8 +30,8 @@ import java.security.spec.RSAOtherPrimeInfo;
|
|||
|
||||
/**
|
||||
* The interface to an RSA multi-prime private key, as defined in the
|
||||
* PKCS#1 v2.1, using the <i>Chinese Remainder Theorem</i>
|
||||
* (CRT) information values.
|
||||
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
|
||||
* using the <i>Chinese Remainder Theorem</i> (CRT) information values.
|
||||
*
|
||||
* @author Valerie Peng
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2018, 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
|
||||
|
@ -28,7 +28,8 @@ package java.security.interfaces;
|
|||
import java.math.BigInteger;
|
||||
|
||||
/**
|
||||
* The interface to an RSA private key, as defined in the PKCS#1 standard,
|
||||
* The interface to an RSA private key, as defined in the
|
||||
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
|
||||
* using the <i>Chinese Remainder Theorem</i> (CRT) information values.
|
||||
*
|
||||
* @author Jan Luehe
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2018, 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
|
||||
|
@ -51,7 +51,7 @@
|
|||
* <h2>Package Specification</h2>
|
||||
*
|
||||
* <ul>
|
||||
* <li>PKCS #1: RSA Encryption Standard, Version 1.5, November 1993 </li>
|
||||
* <li>PKCS #1: RSA Cryptography Specifications, Version 2.2 (RFC 8017)</li>
|
||||
* <li>Federal Information Processing Standards Publication (FIPS PUB) 186:
|
||||
* Digital Signature Standard (DSS) </li>
|
||||
* </ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue