Class DHGroups


  • public class DHGroups
    extends Object
    The DHOakleyGroups class defines the prime values for use with the Diffie Hellman key exchange as defined in RFC 2409 section 6.1 and 6.2.
    Since:
    3.0
    Author:
    Frank Fock
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static BigInteger G  
      static BigInteger P1
      ID 1: 768-bits Oakley Group (https://tools.ietf.org/html/rfc2409) Prime: 2^768 - 2 ^704 - 1 + 2^64 * { [2^638 pi] + 149686 }
      static BigInteger P14
      ID 14: 2048-bits Oakley Group (https://tools.ietf.org/html/rfc3526#section-3) Prime: 2^2048 - 2^1984 - 1 + 2^64 * { [2^1918 pi] + 124476 }
      static BigInteger P15
      ID 15: 3072-bit MODP Group - P15 (https://tools.ietf.org/html/rfc3526#section-4) Prime: 2^3072 - 2^3008 - 1 + 2^64 * { [2^2942 pi] + 1690314 }
      static BigInteger P16
      ID 16: 4096-bit MODP Group - P16 (https://tools.ietf.org/html/rfc3526#section-5) Prime: 2^4096 - 2^4032 - 1 + 2^64 * { [2^3966 pi] + 240904 }
      static BigInteger P17
      ID 17: 6144-bit MODP Group - P17 (https://tools.ietf.org/html/rfc3526#section-6) Prime: 2^6144 - 2^6080 - 1 + 2^64 * { [2^6014 pi] + 929484 }
      static BigInteger P18
      ID 18: 8192-bit MODP Group - P18 (https://tools.ietf.org/html/rfc3526#section-7) prime: 2^8192 - 2^8128 - 1 + 2^64 * { [2^8062 pi] + 4743158 }
    • Constructor Summary

      Constructors 
      Constructor Description
      DHGroups()  
    • Field Detail

      • P1

        public static final BigInteger P1
        ID 1: 768-bits Oakley Group (https://tools.ietf.org/html/rfc2409) Prime: 2^768 - 2 ^704 - 1 + 2^64 * { [2^638 pi] + 149686 }
      • P14

        public static final BigInteger P14
        ID 14: 2048-bits Oakley Group (https://tools.ietf.org/html/rfc3526#section-3) Prime: 2^2048 - 2^1984 - 1 + 2^64 * { [2^1918 pi] + 124476 }
      • P15

        public static final BigInteger P15
        ID 15: 3072-bit MODP Group - P15 (https://tools.ietf.org/html/rfc3526#section-4) Prime: 2^3072 - 2^3008 - 1 + 2^64 * { [2^2942 pi] + 1690314 }
      • P16

        public static final BigInteger P16
        ID 16: 4096-bit MODP Group - P16 (https://tools.ietf.org/html/rfc3526#section-5) Prime: 2^4096 - 2^4032 - 1 + 2^64 * { [2^3966 pi] + 240904 }
      • P17

        public static final BigInteger P17
        ID 17: 6144-bit MODP Group - P17 (https://tools.ietf.org/html/rfc3526#section-6) Prime: 2^6144 - 2^6080 - 1 + 2^64 * { [2^6014 pi] + 929484 }
      • P18

        public static final BigInteger P18
        ID 18: 8192-bit MODP Group - P18 (https://tools.ietf.org/html/rfc3526#section-7) prime: 2^8192 - 2^8128 - 1 + 2^64 * { [2^8062 pi] + 4743158 }
    • Constructor Detail

      • DHGroups

        public DHGroups()