Stay organized with collections
Save and categorize content based on your preferences.
RSAOtherPrimeInfo
open class RSAOtherPrimeInfo
This class represents the triplet (prime, exponent, and coefficient) inside RSA's OtherPrimeInfo structure, as defined in the PKCS#1 v2.2 standard. The ASN.1 syntax of RSA's OtherPrimeInfo is as follows:
OtherPrimeInfo ::= SEQUENCE {
prime INTEGER,
exponent INTEGER,
coefficient INTEGER
}
Summary
Public constructors |
Creates a new RSAOtherPrimeInfo given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.
|
Public constructors
RSAOtherPrimeInfo
RSAOtherPrimeInfo(
prime: BigInteger!,
primeExponent: BigInteger!,
crtCoefficient: BigInteger!)
Creates a new RSAOtherPrimeInfo
given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.
Parameters |
prime |
BigInteger!: the prime factor of n. |
primeExponent |
BigInteger!: the exponent. |
crtCoefficient |
BigInteger!: the Chinese Remainder Theorem coefficient. |
Exceptions |
java.lang.NullPointerException |
if any of the parameters, i.e. prime , primeExponent , crtCoefficient , is null. |
Public methods
getCrtCoefficient
fun getCrtCoefficient(): BigInteger!
Returns the prime's crtCoefficient.
getExponent
fun getExponent(): BigInteger!
Returns the prime's exponent.
getPrime
fun getPrime(): BigInteger!
Returns the prime.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# RSAOtherPrimeInfo\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRSAOtherPrimeInfo\n=================\n\n```\nopen class RSAOtherPrimeInfo\n```\n\n|---|-------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.RSAOtherPrimeInfo](#) |\n\nThis class represents the triplet (prime, exponent, and coefficient) inside RSA's OtherPrimeInfo structure, as defined in the [PKCS#1 v2.2](https://tools.ietf.org/rfc/rfc8017.txt) standard. The ASN.1 syntax of RSA's OtherPrimeInfo is as follows: \n\n```kotlin\nOtherPrimeInfo ::= SEQUENCE {\n prime INTEGER,\n exponent INTEGER,\n coefficient INTEGER\n }\n \n \n```\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [RSAOtherPrimeInfo](#RSAOtherPrimeInfo(java.math.BigInteger,%20java.math.BigInteger,%20java.math.BigInteger))`(`prime:` `[BigInteger](../../math/BigInteger.html#)!`, `primeExponent:` `[BigInteger](../../math/BigInteger.html#)!`, `crtCoefficient:` `[BigInteger](../../math/BigInteger.html#)!`)` Creates a new `RSAOtherPrimeInfo` given the prime, primeExponent, and crtCoefficient as defined in PKCS#1. |\n\n| Public methods ||\n|--------------------------------------------|-----------------------------------------------------------------------------------|\n| [BigInteger](../../math/BigInteger.html#)! | [getCrtCoefficient](#getCrtCoefficient())`()` Returns the prime's crtCoefficient. |\n| [BigInteger](../../math/BigInteger.html#)! | [getExponent](#getExponent())`()` Returns the prime's exponent. |\n| [BigInteger](../../math/BigInteger.html#)! | [getPrime](#getPrime())`()` Returns the prime. |\n\nPublic constructors\n-------------------\n\n### RSAOtherPrimeInfo\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nRSAOtherPrimeInfo(\n prime: BigInteger!, \n primeExponent: BigInteger!, \n crtCoefficient: BigInteger!)\n```\n\nCreates a new `RSAOtherPrimeInfo` given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.\n\n| Parameters ||\n|------------------|----------------------------------------------------------------------------------------|\n| `prime` | [BigInteger](../../math/BigInteger.html#)!: the prime factor of n. |\n| `primeExponent` | [BigInteger](../../math/BigInteger.html#)!: the exponent. |\n| `crtCoefficient` | [BigInteger](../../math/BigInteger.html#)!: the Chinese Remainder Theorem coefficient. |\n\n| Exceptions ||\n|----------------------------------|-------------------------------------------------------------------------------------|\n| `java.lang.NullPointerException` | if any of the parameters, i.e. `prime`, `primeExponent`, `crtCoefficient`, is null. |\n\nPublic methods\n--------------\n\n### getCrtCoefficient\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getCrtCoefficient(): BigInteger!\n```\n\nReturns the prime's crtCoefficient.\n\n| Return ||\n|--------------------------------------------|---------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the crtCoefficient. |\n\n### getExponent\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getExponent(): BigInteger!\n```\n\nReturns the prime's exponent.\n\n| Return ||\n|--------------------------------------------|--------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the primeExponent. |\n\n### getPrime\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPrime(): BigInteger!\n```\n\nReturns the prime.\n\n| Return ||\n|--------------------------------------------|------------|\n| [BigInteger](../../math/BigInteger.html#)! | the prime. |"]]