1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: Header file 15 */ 16 17 #ifndef MSG_REKEY_OFFLOAD_ROM_H 18 #define MSG_REKEY_OFFLOAD_ROM_H 19 #include "osal_types.h" 20 21 #define MAC_REKEY_OFFLOAD_KCK_LEN 16 22 #define MAC_REKEY_OFFLOAD_KEK_LEN 16 23 #define MAC_REKEY_OFFLOAD_REPLAY_LEN 8 24 25 typedef struct rekey_offload { 26 osal_u8 kck[MAC_REKEY_OFFLOAD_KCK_LEN]; 27 osal_u8 kek[MAC_REKEY_OFFLOAD_KEK_LEN]; 28 osal_u8 replay_ctr[MAC_REKEY_OFFLOAD_REPLAY_LEN]; 29 } mac_rekey_offload_stru; 30 31 typedef struct { 32 mac_rekey_offload_stru rekey_offload; 33 osal_u8 rekey_info_exist; 34 } mac_rekey_offload_param_sync; 35 #endif 36