Class RSACore.BlindingParameters

  • Enclosing class:
    RSACore

    private static final class RSACore.BlindingParameters
    extends java.lang.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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.math.BigInteger BIG_TWO  
      private java.math.BigInteger d  
      private java.math.BigInteger e
      Exponente RSA.
      private java.math.BigInteger u  
      private java.math.BigInteger v  
    • Constructor Summary

      Constructors 
      Constructor Description
      BlindingParameters​(java.math.BigInteger exponent, java.math.BigInteger privateExponent, java.math.BigInteger modulus)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) RSACore.BlindingRandomPair getBlindingRandomPair​(java.math.BigInteger exponent, java.math.BigInteger privateRsaExponentHash, java.math.BigInteger n)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BIG_TWO

        private static final java.math.BigInteger BIG_TWO
      • e

        private final java.math.BigInteger e
        Exponente RSA.
      • d

        private final java.math.BigInteger d
      • u

        private java.math.BigInteger u
      • v

        private java.math.BigInteger v
    • Constructor Detail

      • BlindingParameters

        BlindingParameters​(java.math.BigInteger exponent,
                           java.math.BigInteger privateExponent,
                           java.math.BigInteger modulus)
    • Method Detail

      • getBlindingRandomPair

        RSACore.BlindingRandomPair getBlindingRandomPair​(java.math.BigInteger exponent,
                                                         java.math.BigInteger privateRsaExponentHash,
                                                         java.math.BigInteger n)