crypto: fix formatting issues in commit #1932
(1) add 'FAR' in mbedtls_hardware_poll (2) fix indentation issues in hash testcase Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
024a7eeec3
commit
c25f5e1955
@ -32,7 +32,8 @@
|
||||
|
||||
int mbedtls_hardware_poll(FAR void *data,
|
||||
FAR unsigned char *output,
|
||||
size_t len, size_t *olen)
|
||||
size_t len,
|
||||
FAR size_t *olen)
|
||||
{
|
||||
int fd;
|
||||
size_t read_len;
|
||||
|
@ -43,7 +43,8 @@ typedef struct tb
|
||||
{
|
||||
FAR char *data;
|
||||
int datalen;
|
||||
}tb;
|
||||
}
|
||||
tb;
|
||||
|
||||
tb md5_testcase[] =
|
||||
{
|
||||
@ -281,7 +282,9 @@ static int match(const unsigned char *a, const unsigned char *b, size_t len)
|
||||
int i;
|
||||
|
||||
if (memcmp(a, b, len) == 0)
|
||||
return (0);
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
warnx("hash mismatch");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user