1 /* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.internal.net.ipsec.ike; 18 19 /** IkeDhParams contains Diffie-Hellman constants for IKEv2 supported DH Groups */ 20 public class IkeDhParams { 21 22 public static final int BASE_GENERATOR_MODP = 2; 23 24 public static final String PRIME_1024_BIT_MODP = 25 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" 26 + "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" 27 + "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" 28 + "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" 29 + "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE65381" 30 + "FFFFFFFFFFFFFFFF"; 31 public static final String PRIME_2048_BIT_MODP = 32 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" 33 + "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" 34 + "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" 35 + "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" 36 + "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" 37 + "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" 38 + "83655D23DCA3AD961C62F356208552BB9ED529077096966D" 39 + "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" 40 + "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" 41 + "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" 42 + "15728E5A8AACAA68FFFFFFFFFFFFFFFF"; 43 public static final String PRIME_3072_BIT_MODP = 44 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" 45 + "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" 46 + "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" 47 + "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" 48 + "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" 49 + "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" 50 + "83655D23DCA3AD961C62F356208552BB9ED529077096966D" 51 + "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" 52 + "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" 53 + "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" 54 + "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" 55 + "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" 56 + "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" 57 + "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" 58 + "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" 59 + "43DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF"; 60 public static final String PRIME_4096_BIT_MODP = 61 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" 62 + "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" 63 + "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" 64 + "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" 65 + "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" 66 + "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" 67 + "83655D23DCA3AD961C62F356208552BB9ED529077096966D" 68 + "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" 69 + "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" 70 + "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" 71 + "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" 72 + "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" 73 + "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" 74 + "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" 75 + "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" 76 + "43DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D7" 77 + "88719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA" 78 + "2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6" 79 + "287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED" 80 + "1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA9" 81 + "93B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199" 82 + "FFFFFFFFFFFFFFFF"; 83 } 84