Class HomekitSRP6Routines


  • public class HomekitSRP6Routines
    extends Object
    This class is modified from the nimbus SRP library to provide methods that are compatible with some pecularities of HomeKit. Namely, the need for a 3072 bit private value
    Author:
    Vladimir Dzhuvinov
    • Constructor Detail

      • HomekitSRP6Routines

        public HomekitSRP6Routines()
    • Method Detail

      • createRandomBigIntegerInRange

        protected static BigInteger createRandomBigIntegerInRange​(BigInteger min,
                                                                  BigInteger max,
                                                                  SecureRandom random)
        Returns a random big integer in the specified range [min, max].
        Parameters:
        min - The least value that may be generated. Must not be null.
        max - The greatest value that may be generated. Must not be null.
        random - Source of randomness. Must not be null.
        Returns:
        A random big integer in the range [min, max].