[uboot] create uboot from github:
repo: https://github.com/u-boot/u-boot commit: d80bb749fab53da72c4a0e09b8c2d2aaa3103c91 Change-Id: Ie6434426e1ec15bc08bb1832798e371f3fd5fb29
This commit is contained in:
27
u-boot-2021.10/include/u-boot/fdt-libcrypto.h
Normal file
27
u-boot-2021.10/include/u-boot/fdt-libcrypto.h
Normal file
@ -0,0 +1,27 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Copyright (c) 2020, Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
||||
* Copyright (c) 2013, Google Inc.
|
||||
*/
|
||||
|
||||
#ifndef _FDT_LIBCRYPTO_H
|
||||
#define _FDT_LIBCRYPTO_H
|
||||
|
||||
#include <openssl/bn.h>
|
||||
|
||||
/**
|
||||
* fdt_add_bignum() - Write a libcrypto BIGNUM as an FDT property
|
||||
*
|
||||
* Convert a libcrypto BIGNUM * into a big endian array of integers.
|
||||
*
|
||||
* @blob: FDT blob to modify
|
||||
* @noffset: Offset of the FDT node
|
||||
* @prop_name: What to call the property in the FDT
|
||||
* @num: pointer to a libcrypto big number
|
||||
* @num_bits: How big is 'num' in bits?
|
||||
* @return 0 if all good all working, -ve on horror
|
||||
*/
|
||||
int fdt_add_bignum(void *blob, int noffset, const char *prop_name,
|
||||
BIGNUM *num, int num_bits);
|
||||
|
||||
#endif /* _FDT_LIBCRYPTO_H */
|
||||
Reference in New Issue
Block a user