Class RSACore.BlindingParameters

java.lang.Object
es.gob.jmulticard.jse.provider.rsacipher.RSACore.BlindingParameters
Enclosing class:
RSACore

private static final class RSACore.BlindingParameters extends Object
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.