1 /* 2 * Copyright (C) 2023 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.server; 18 19 import com.android.net.module.util.HexDump; 20 21 public class IpSecXfrmControllerTestHex { 22 private static final String XFRM_NEW_SA_HEX_STRING = 23 "2003000010000000000000003FE1D4B6" 24 + "00000000000000000000000000000000" 25 + "00000000000000000000000000000000" 26 + "00000000000000000A00000000000000" 27 + "000000000000000020010DB800000000" 28 + "0000000000000111AABBCCDD32000000" 29 + "20010DB8000000000000000000000222" 30 + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" 31 + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" 32 + "00000000000000000000000000000000" 33 + "00000000000000000000000000000000" 34 + "00000000000000000000000000000000" 35 + "FD464C65000000000000000000000000" 36 + "00000000000000000000000000000000" 37 + "024000000A0000000000000000000000" 38 + "5C000100686D61632873686131290000" 39 + "00000000000000000000000000000000" 40 + "00000000000000000000000000000000" 41 + "00000000000000000000000000000000" 42 + "00000000A000000055F01AC07E15E437" 43 + "115DDE0AEDD18A822BA9F81E60001400" 44 + "686D6163287368613129000000000000" 45 + "00000000000000000000000000000000" 46 + "00000000000000000000000000000000" 47 + "00000000000000000000000000000000" 48 + "A00000006000000055F01AC07E15E437" 49 + "115DDE0AEDD18A822BA9F81E58000200" 50 + "63626328616573290000000000000000" 51 + "00000000000000000000000000000000" 52 + "00000000000000000000000000000000" 53 + "00000000000000000000000000000000" 54 + "800000006AED4975ADF006D65C76F639" 55 + "23A6265B1C0117004000000000000000" 56 + "00000000000000000000000000080000" 57 + "00000000000000000000000000000000" 58 + "00000000000000000000000000000000" 59 + "00000000000000000000000000000000" 60 + "00000000000000000000000000000000" 61 + "00000000000000000000000000000000" 62 + "00000000000000000000000000000000" 63 + "00000000000000000000000000000000" 64 + "00000000000000000000000000000000" 65 + "00000000000000000000000000000000" 66 + "00000000000000000000000000000000" 67 + "00000000000000000000000000000000" 68 + "00000000000000000000000000000000" 69 + "00000000000000000000000000000000" 70 + "00000000000000000000000000000000" 71 + "00000000000000000000000000000000" 72 + "00000000000000000000000000000000" 73 + "00000000000000000000000000000000"; 74 public static final byte[] XFRM_NEW_SA_HEX = 75 HexDump.hexStringToByteArray(XFRM_NEW_SA_HEX_STRING); 76 77 private static final String XFRM_ESRCH_HEX_STRING = 78 "3C0000000200000000000000A5060000" 79 + "FDFFFFFF280000001200010000000000" 80 + "0000000020010DB80000000000000000" 81 + "00000111AABBCCDD0A003200"; 82 public static final byte[] XFRM_ESRCH_HEX = HexDump.hexStringToByteArray(XFRM_ESRCH_HEX_STRING); 83 } 84