forked from len0rd/rockbox
imxtools: Replace use of "byte" with its underlying uint8_t.
libtomcrypt uses a macro "byte" which conflicts with this type. Since the underlying type is uint8_t and there's no real benefit from using a custom type use the actual underlying type. Change-Id: I982c9b8bdcb657b99fa645a5235303af7afda25b
This commit is contained in:
parent
387a45923c
commit
815b289cb3
8 changed files with 69 additions and 70 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#define __MISC_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "crypto.h"
|
||||
|
||||
#define _STR(a) #a
|
||||
|
|
@ -53,8 +54,8 @@ void augment_array_ex(void **arr, size_t elem_sz, int *cnt, int *capacity,
|
|||
void *aug, int aug_cnt);
|
||||
void generate_random_data(void *buf, size_t sz);
|
||||
void *xmalloc(size_t s);
|
||||
int convxdigit(char digit, byte *val);
|
||||
void print_hex(void *user, misc_printf_t printf, byte *data, int len, bool newline);
|
||||
int convxdigit(char digit, uint8_t *val);
|
||||
void print_hex(void *user, misc_printf_t printf, uint8_t *data, int len, bool newline);
|
||||
void add_keys(key_array_t ka, int kac);
|
||||
bool parse_key(char **str, struct crypto_key_t *key);
|
||||
bool add_keys_from_file(const char *key_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue