1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, v.1, (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://opensource.org/licenses/CDDL-1.0. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2014-2017 Cavium, Inc. 24 * The contents of this file are subject to the terms of the Common Development 25 * and Distribution License, v.1, (the "License"). 26 27 * You may not use this file except in compliance with the License. 28 29 * You can obtain a copy of the License at available 30 * at http://opensource.org/licenses/CDDL-1.0 31 32 * See the License for the specific language governing permissions and 33 * limitations under the License. 34 */ 35 36 /**************************************************************************** 37 * Name: mfw_sig_meta.h 38 * 39 ****************************************************************************/ 40 41 #ifndef MFW_SIG_META_H 42 #define MFW_SIG_META_H 43 44 #define SIGNATURE_MAX_DER_SIZE 128 45 #define SIG_ID_LIM (0) 46 #define SIG_ID_TIM (1) 47 #define SIG_ID_MIM (2) 48 #define SIG_ID_MAX (3) 49 #define SIG_ID_NONE (SIG_ID_MAX) 50 51 #define MFW_DIGEST_SIZE (32) 52 #define SIG_META_VERSION (1) 53 struct sig_meta_group { 54 uint32_t signature_offset; 55 uint8_t digest[MFW_DIGEST_SIZE]; 56 57 }; 58 59 struct mfw_sig_meta { 60 uint32_t version; 61 struct sig_meta_group group[SIG_ID_MAX]; 62 }; 63 64 #endif /*MFW_SIG_META_H */ 65