HV: Remove some comments for crypto library

The code in comments was removed from md_wrap.c, so modify comments
to avoid confusion

Tracked-On: #1966
Signed-off-by: Chen Gang G <gang.g.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Chen Gang G 2018-12-04 10:55:11 +08:00 committed by wenlingz
parent d7232ebb57
commit f0d3f1c984
1 changed files with 3 additions and 8 deletions

View File

@ -61,17 +61,12 @@ typedef struct {
/** Information about the associated message digest. */
const mbedtls_md_info_t *md_info;
/** The digest-specific context. Use array here to avoid dynamic memory
* allocation. The size of the array size is determined by this line
* in md_wrap.c
* void *ctx = mbedtls_calloc(1, sizeof( mbedtls_sha256_context ));
*/
/** The digest-specific context. */
unsigned char md_ctx[sizeof( mbedtls_sha256_context )];
/** The HMAC part of the context. Use array here to avoid dynamic memory
* allocation. The hardcode value 128 is determined by 2 parts:
* 1. In md.c ctx->hmac_ctx=mbedtls_calloc(2, md_info->block_size);
* 2. block_size is 64 in md_wrap.c
* allocation. The hardcode value 128 is 2 times of block_size which
* is 64 in md_wrap.c
*/
unsigned char hmac_ctx[128];
} mbedtls_md_context_t;