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:
makejian 2023-08-17 10:26:15 +08:00 committed by Xiang Xiao
parent 024a7eeec3
commit c25f5e1955
2 changed files with 63 additions and 59 deletions

View File

@ -32,7 +32,8 @@
int mbedtls_hardware_poll(FAR void *data, int mbedtls_hardware_poll(FAR void *data,
FAR unsigned char *output, FAR unsigned char *output,
size_t len, size_t *olen) size_t len,
FAR size_t *olen)
{ {
int fd; int fd;
size_t read_len; size_t read_len;

View File

@ -43,7 +43,8 @@ typedef struct tb
{ {
FAR char *data; FAR char *data;
int datalen; int datalen;
}tb; }
tb;
tb md5_testcase[] = tb md5_testcase[] =
{ {
@ -281,7 +282,9 @@ static int match(const unsigned char *a, const unsigned char *b, size_t len)
int i; int i;
if (memcmp(a, b, len) == 0) if (memcmp(a, b, len) == 0)
return (0); {
return 0;
}
warnx("hash mismatch"); warnx("hash mismatch");