Class RSACore.BlindingParameters
java.lang.Object
es.gob.jmulticard.jse.provider.rsacipher.RSACore.BlindingParameters
- Enclosing class:
RSACore
Set of blinding parameters for a given RSA key.
The RSA modulus is usually unique, so we index by modulus in
BLINDING_CACHE
. However, to protect against the unlikely
case of two keys sharing the same modulus, we also store the public
or the private exponent. This means we cannot cache blinding
parameters for multiple keys that share the same modulus, but
since sharing moduli is fundamentally broken and insecure, this
does not matter.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BigInteger
private final BigInteger
private final BigInteger
Exponente RSA.private BigInteger
private BigInteger
-
Constructor Summary
ConstructorsConstructorDescriptionBlindingParameters
(BigInteger exponent, BigInteger privateExponent, BigInteger modulus) -
Method Summary
Modifier and TypeMethodDescription(package private) RSACore.BlindingRandomPair
getBlindingRandomPair
(BigInteger exponent, BigInteger privateRsaExponentHash, BigInteger n)
-
Field Details
-
BIG_TWO
-
e
Exponente RSA. -
d
-
u
-
v
-
-
Constructor Details
-
BlindingParameters
BlindingParameters(BigInteger exponent, BigInteger privateExponent, BigInteger modulus)
-
-
Method Details
-
getBlindingRandomPair
RSACore.BlindingRandomPair getBlindingRandomPair(BigInteger exponent, BigInteger privateRsaExponentHash, BigInteger n)
-