[uboot] create uboot from github:
repo: https://github.com/u-boot/u-boot commit: d80bb749fab53da72c4a0e09b8c2d2aaa3103c91 Change-Id: Ie6434426e1ec15bc08bb1832798e371f3fd5fb29
This commit is contained in:
46
u-boot-2021.10/include/u-boot/aes.h
Normal file
46
u-boot-2021.10/include/u-boot/aes.h
Normal file
@ -0,0 +1,46 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Copyright (c) 2019, Softathome
|
||||
*/
|
||||
|
||||
#ifndef _AES_H
|
||||
#define _AES_H
|
||||
|
||||
#include <errno.h>
|
||||
#include <image.h>
|
||||
|
||||
#if IMAGE_ENABLE_ENCRYPT
|
||||
int image_aes_encrypt(struct image_cipher_info *info,
|
||||
const unsigned char *data, int size,
|
||||
unsigned char **cipher, int *cipher_len);
|
||||
int image_aes_add_cipher_data(struct image_cipher_info *info, void *keydest,
|
||||
void *fit, int node_noffset);
|
||||
#else
|
||||
int image_aes_encrypt(struct image_cipher_info *info,
|
||||
const unsigned char *data, int size,
|
||||
unsigned char **cipher, int *cipher_len)
|
||||
{
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
int image_aes_add_cipher_data(struct image_cipher_info *info, void *keydest,
|
||||
void *fit, int node_noffset)
|
||||
{
|
||||
return -ENXIO;
|
||||
}
|
||||
#endif /* IMAGE_ENABLE_ENCRYPT */
|
||||
|
||||
#if IMAGE_ENABLE_DECRYPT
|
||||
int image_aes_decrypt(struct image_cipher_info *info,
|
||||
const void *cipher, size_t cipher_len,
|
||||
void **data, size_t *size);
|
||||
#else
|
||||
int image_aes_decrypt(struct image_cipher_info *info,
|
||||
const void *cipher, size_t cipher_len,
|
||||
void **data, size_t *size)
|
||||
{
|
||||
return -ENXIO;
|
||||
}
|
||||
#endif /* IMAGE_ENABLE_DECRYPT */
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user