mirror of
				https://github.com/projectacrn/acrn-hypervisor.git
				synced 2025-10-31 09:23:34 +00:00 
			
		
		
		
	Many of the license and Intel copyright headers include the "All rights reserved" string. It is not relevant in the context of the BSD-3-Clause license that the code is released under. This patch removes those strings throughout the code (hypervisor, devicemodel and misc). Tracked-On: #7254 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
		
			
				
	
	
		
			39 lines
		
	
	
		
			855 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			855 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2019 Intel Corporation.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-3-Clause
 | |
|  */
 | |
| 
 | |
| #ifndef SEED_H_
 | |
| #define SEED_H_
 | |
| 
 | |
| #define BOOTLOADER_SEED_MAX_ENTRIES     10U
 | |
| #define BUP_MKHI_BOOTLOADER_SEED_LEN    64U
 | |
| #define MAX_SEED_ARG_SIZE		1024U
 | |
| 
 | |
| /* Structure of seed info */
 | |
| struct seed_info {
 | |
| 	uint8_t cse_svn;
 | |
| 	uint8_t bios_svn;
 | |
| 	uint8_t padding[2];
 | |
| 	uint8_t seed[BUP_MKHI_BOOTLOADER_SEED_LEN];
 | |
| };
 | |
| 
 | |
| /* Structure of physical seed */
 | |
| struct physical_seed {
 | |
| 	struct seed_info seed_list[BOOTLOADER_SEED_MAX_ENTRIES];
 | |
| 	uint32_t num_seeds;
 | |
| 	uint32_t pad;
 | |
| };
 | |
| 
 | |
| void init_seed(void);
 | |
| 
 | |
| void fill_seed_arg(char *cmd_dst, size_t cmd_sz);
 | |
| 
 | |
| bool derive_virtual_seed(struct seed_info *seed_list, uint32_t *num_seeds,
 | |
| 			 const uint8_t *salt, size_t salt_len, const uint8_t *info, size_t info_len);
 | |
| 
 | |
| bool derive_attkb_enc_key(uint8_t *out_key);
 | |
| 
 | |
| #endif /* SEED_H_ */
 |