src/java.base/share/classes/java/security/spec/RSAOtherPrimeInfo.java
branchJDK-8145252-TLS13-branch
changeset 56542 56aaa6cb3693
parent 47216 71c04702a3d5
child 58242 94bb65cb37d3
equal deleted inserted replaced
56541:92cbbfc996f3 56542:56aaa6cb3693
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    27 
    27 
    28 import java.math.BigInteger;
    28 import java.math.BigInteger;
    29 
    29 
    30 /**
    30 /**
    31  * This class represents the triplet (prime, exponent, and coefficient)
    31  * This class represents the triplet (prime, exponent, and coefficient)
    32  * inside RSA's OtherPrimeInfo structure, as defined in the PKCS#1 v2.1.
    32  * inside RSA's OtherPrimeInfo structure, as defined in the
       
    33  * <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard.
    33  * The ASN.1 syntax of RSA's OtherPrimeInfo is as follows:
    34  * The ASN.1 syntax of RSA's OtherPrimeInfo is as follows:
    34  *
    35  *
    35  * <pre>
    36  * <pre>
    36  * OtherPrimeInfo ::= SEQUENCE {
    37  * OtherPrimeInfo ::= SEQUENCE {
    37  *   prime INTEGER,
    38  *   prime        INTEGER,
    38  *   exponent INTEGER,
    39  *   exponent     INTEGER,
    39  *   coefficient INTEGER
    40  *   coefficient  INTEGER
    40  *   }
    41  * }
    41  *
    42  *
    42  * </pre>
    43  * </pre>
    43  *
    44  *
    44  * @author Valerie Peng
    45  * @author Valerie Peng
    45  *
    46  *