Module org.snmp4j

Class DHGroups

java.lang.Object
org.snmp4j.security.dh.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.4.1
Author:
Frank Fock
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BigInteger
     
    static final BigInteger
    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 final BigInteger
    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 final BigInteger
    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 final BigInteger
    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 final BigInteger
    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 final BigInteger
    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
     
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • G

      public static final BigInteger G
    • 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 Details

    • DHGroups

      public DHGroups()