/* SPDX-License-Identifier: GPL-2.0-only */


#ifndef _KEYS_ENCRYPTED_TYPE_H
#define _KEYS_ENCRYPTED_TYPE_H

#include <linux/key.h>
#include <linux/rcupdate.h>

struct encrypted_key_payload {
	struct rcu_head rcu;
	char *format;		
	char *master_desc;	
	char *datalen;		
	u8 *iv;			
	u8 *encrypted_data;	
	unsigned short datablob_len;	
	unsigned short decrypted_datalen;	
	unsigned short payload_datalen;		
	unsigned short encrypted_key_format;	
	u8 *decrypted_data;	
	u8 payload_data[];	
};

extern struct key_type key_type_encrypted;

#endif 
