This class specifies an RSA multi-prime private key, as defined in the PKCS#1 v2.1, using the Chinese Remainder Theorem (CRT) information values for efficiency.
This class specifies an RSA multi-prime private key, as defined in the PKCS#1 v2.1, using the Chinese Remainder Theorem (CRT) information values for efficiency.
(->rsa-multi-prime-private-crt-key-spec modulus
public-exponent
private-exponent
prime-p
prime-q
prime-exponent-p
prime-exponent-q
crt-coefficient
other-prime-info)
Constructor.
Creates a new RSAMultiPrimePrivateCrtKeySpec given the modulus, publicExponent, privateExponent, primeP, primeQ, primeExponentP, primeExponentQ, crtCoefficient, and otherPrimeInfo as defined in PKCS#1 v2.1.
Note that the contents of otherPrimeInfo are copied to protect against subsequent modification when constructing this object.
modulus - the modulus n. - java.math.BigInteger
public-exponent - the public exponent e. - java.math.BigInteger
private-exponent - the private exponent d. - java.math.BigInteger
prime-p - the prime factor p of n. - java.math.BigInteger
prime-q - the prime factor q of n. - java.math.BigInteger
prime-exponent-p - this is d mod (p-1). - java.math.BigInteger
prime-exponent-q - this is d mod (q-1). - java.math.BigInteger
crt-coefficient - the Chinese Remainder Theorem coefficient q-1 mod p. - java.math.BigInteger
other-prime-info - triplets of the rest of primes, null can be specified if there are only two prime factors (p and q). - java.security.spec.RSAOtherPrimeInfo[]
throws: java.lang.NullPointerException - if any of the parameters, i.e. modulus, publicExponent, privateExponent, primeP, primeQ, primeExponentP, primeExponentQ, crtCoefficient, is null.
Constructor. Creates a new RSAMultiPrimePrivateCrtKeySpec given the modulus, publicExponent, privateExponent, primeP, primeQ, primeExponentP, primeExponentQ, crtCoefficient, and otherPrimeInfo as defined in PKCS#1 v2.1. Note that the contents of otherPrimeInfo are copied to protect against subsequent modification when constructing this object. modulus - the modulus n. - `java.math.BigInteger` public-exponent - the public exponent e. - `java.math.BigInteger` private-exponent - the private exponent d. - `java.math.BigInteger` prime-p - the prime factor p of n. - `java.math.BigInteger` prime-q - the prime factor q of n. - `java.math.BigInteger` prime-exponent-p - this is d mod (p-1). - `java.math.BigInteger` prime-exponent-q - this is d mod (q-1). - `java.math.BigInteger` crt-coefficient - the Chinese Remainder Theorem coefficient q-1 mod p. - `java.math.BigInteger` other-prime-info - triplets of the rest of primes, null can be specified if there are only two prime factors (p and q). - `java.security.spec.RSAOtherPrimeInfo[]` throws: java.lang.NullPointerException - if any of the parameters, i.e. modulus, publicExponent, privateExponent, primeP, primeQ, primeExponentP, primeExponentQ, crtCoefficient, is null.
(get-crt-coefficient this)
Returns the crtCoefficient.
returns: the crtCoefficient. - java.math.BigInteger
Returns the crtCoefficient. returns: the crtCoefficient. - `java.math.BigInteger`
(get-other-prime-info this)
Returns a copy of the otherPrimeInfo or null if there are only two prime factors (p and q).
returns: the otherPrimeInfo. Returns a new array each
time this method is called. - java.security.spec.RSAOtherPrimeInfo[]
Returns a copy of the otherPrimeInfo or null if there are only two prime factors (p and q). returns: the otherPrimeInfo. Returns a new array each time this method is called. - `java.security.spec.RSAOtherPrimeInfo[]`
(get-prime-exponent-p this)
Returns the primeExponentP.
returns: the primeExponentP. - java.math.BigInteger
Returns the primeExponentP. returns: the primeExponentP. - `java.math.BigInteger`
(get-prime-exponent-q this)
Returns the primeExponentQ.
returns: the primeExponentQ. - java.math.BigInteger
Returns the primeExponentQ. returns: the primeExponentQ. - `java.math.BigInteger`
(get-prime-p this)
Returns the primeP.
returns: the primeP. - java.math.BigInteger
Returns the primeP. returns: the primeP. - `java.math.BigInteger`
(get-prime-q this)
Returns the primeQ.
returns: the primeQ. - java.math.BigInteger
Returns the primeQ. returns: the primeQ. - `java.math.BigInteger`
(get-public-exponent this)
Returns the public exponent.
returns: the public exponent. - java.math.BigInteger
Returns the public exponent. returns: the public exponent. - `java.math.BigInteger`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close