mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-01 01:16:36 -04:00
Fix style in test_suite_md.function
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
f5e2331f8a
commit
cced3521cb
@ -133,7 +133,7 @@ void md_text(int md_type, char *text_src_string, data_t *hash)
|
|||||||
{
|
{
|
||||||
unsigned char *src = (unsigned char *) text_src_string;
|
unsigned char *src = (unsigned char *) text_src_string;
|
||||||
size_t src_len = strlen(text_src_string);
|
size_t src_len = strlen(text_src_string);
|
||||||
unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0};
|
unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
|
||||||
const mbedtls_md_info_t *md_info = NULL;
|
const mbedtls_md_info_t *md_info = NULL;
|
||||||
|
|
||||||
md_info = mbedtls_md_info_from_type(md_type);
|
md_info = mbedtls_md_info_from_type(md_type);
|
||||||
@ -150,7 +150,7 @@ void md_text(int md_type, char *text_src_string, data_t *hash)
|
|||||||
/* BEGIN_CASE */
|
/* BEGIN_CASE */
|
||||||
void md_hex(int md_type, data_t *src_str, data_t *hash)
|
void md_hex(int md_type, data_t *src_str, data_t *hash)
|
||||||
{
|
{
|
||||||
unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0};
|
unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
|
||||||
const mbedtls_md_info_t *md_info = NULL;
|
const mbedtls_md_info_t *md_info = NULL;
|
||||||
|
|
||||||
md_info = mbedtls_md_info_from_type(md_type);
|
md_info = mbedtls_md_info_from_type(md_type);
|
||||||
@ -171,7 +171,7 @@ void md_text_multi(int md_type, char *text_src_string,
|
|||||||
{
|
{
|
||||||
unsigned char *src = (unsigned char *) text_src_string;
|
unsigned char *src = (unsigned char *) text_src_string;
|
||||||
size_t src_len = strlen(text_src_string);
|
size_t src_len = strlen(text_src_string);
|
||||||
unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0};
|
unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
|
||||||
size_t halfway;
|
size_t halfway;
|
||||||
|
|
||||||
const mbedtls_md_info_t *md_info = NULL;
|
const mbedtls_md_info_t *md_info = NULL;
|
||||||
@ -218,7 +218,7 @@ exit:
|
|||||||
/* BEGIN_CASE */
|
/* BEGIN_CASE */
|
||||||
void md_hex_multi(int md_type, data_t *src_str, data_t *hash)
|
void md_hex_multi(int md_type, data_t *src_str, data_t *hash)
|
||||||
{
|
{
|
||||||
unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0};
|
unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
|
||||||
const mbedtls_md_info_t *md_info = NULL;
|
const mbedtls_md_info_t *md_info = NULL;
|
||||||
mbedtls_md_context_t ctx, ctx_copy;
|
mbedtls_md_context_t ctx, ctx_copy;
|
||||||
int halfway;
|
int halfway;
|
||||||
@ -266,7 +266,7 @@ void mbedtls_md_hmac(int md_type, int trunc_size,
|
|||||||
data_t *key_str, data_t *src_str,
|
data_t *key_str, data_t *src_str,
|
||||||
data_t *hash)
|
data_t *hash)
|
||||||
{
|
{
|
||||||
unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0};
|
unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
|
||||||
const mbedtls_md_info_t *md_info = NULL;
|
const mbedtls_md_info_t *md_info = NULL;
|
||||||
|
|
||||||
md_info = mbedtls_md_info_from_type(md_type);
|
md_info = mbedtls_md_info_from_type(md_type);
|
||||||
@ -285,7 +285,7 @@ void mbedtls_md_hmac(int md_type, int trunc_size,
|
|||||||
void md_hmac_multi(int md_type, int trunc_size, data_t *key_str,
|
void md_hmac_multi(int md_type, int trunc_size, data_t *key_str,
|
||||||
data_t *src_str, data_t *hash)
|
data_t *src_str, data_t *hash)
|
||||||
{
|
{
|
||||||
unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0};
|
unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
|
||||||
const mbedtls_md_info_t *md_info = NULL;
|
const mbedtls_md_info_t *md_info = NULL;
|
||||||
mbedtls_md_context_t ctx;
|
mbedtls_md_context_t ctx;
|
||||||
int halfway;
|
int halfway;
|
||||||
@ -328,7 +328,7 @@ exit:
|
|||||||
void mbedtls_md_file(int md_type, char *filename,
|
void mbedtls_md_file(int md_type, char *filename,
|
||||||
data_t *hash)
|
data_t *hash)
|
||||||
{
|
{
|
||||||
unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0};
|
unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
|
||||||
const mbedtls_md_info_t *md_info = NULL;
|
const mbedtls_md_info_t *md_info = NULL;
|
||||||
|
|
||||||
md_info = mbedtls_md_info_from_type(md_type);
|
md_info = mbedtls_md_info_from_type(md_type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user