hv: fix violations in md.c md.h and md_internal.h for crypto lib

-remove goto
-remove multiple return
-Modify assignment operator in boolean expression
-Modify/fix code style violations
-fix attempt to change parameters passed by value
-fix value need U suffix
-fix use of mixed arithmetic
-fix assigment in expression
-other fixes

Tracked-On: #861
Signed-off-by: Chen Gang G <gang.g.chen@intel.com>
Reviewed-by: Bing Zhu <bing.zhu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Chen Gang G
2018-12-27 15:47:13 +08:00
committed by wenlingz
parent c230a1a6c8
commit ddf1c923ce
3 changed files with 146 additions and 336 deletions

View File

@@ -47,7 +47,7 @@ struct mbedtls_md_info_t
int32_t size;
/** Block length of the digest function in bytes */
int32_t block_size;
size_t block_size;
/** Digest initialisation function */
int32_t (*starts_func)( void *ctx );