Searched refs:hmac_ctx (Results 1 – 6 of 6) sorted by relevance
/mbedtls-3.6.0/library/ |
D | ssl_cookie.c | 66 mbedtls_md_init(&ctx->hmac_ctx); in mbedtls_ssl_cookie_init() 90 mbedtls_md_free(&ctx->hmac_ctx); in mbedtls_ssl_cookie_free() 138 ret = mbedtls_md_setup(&ctx->hmac_ctx, mbedtls_md_info_from_type(COOKIE_MD), 1); in mbedtls_ssl_cookie_setup() 143 ret = mbedtls_md_hmac_starts(&ctx->hmac_ctx, key, sizeof(key)); in mbedtls_ssl_cookie_setup() 159 static int ssl_cookie_hmac(mbedtls_md_context_t *hmac_ctx, in ssl_cookie_hmac() argument 168 if (mbedtls_md_hmac_reset(hmac_ctx) != 0 || in ssl_cookie_hmac() 169 mbedtls_md_hmac_update(hmac_ctx, time, 4) != 0 || in ssl_cookie_hmac() 170 mbedtls_md_hmac_update(hmac_ctx, cli_id, cli_id_len) != 0 || in ssl_cookie_hmac() 171 mbedtls_md_hmac_finish(hmac_ctx, hmac_out) != 0) { in ssl_cookie_hmac() 250 ret = ssl_cookie_hmac(&ctx->hmac_ctx, *p - 4, in mbedtls_ssl_cookie_write() [all …]
|
D | md.c | 325 if (ctx->hmac_ctx != NULL) { in mbedtls_md_free() 326 mbedtls_zeroize_and_free(ctx->hmac_ctx, in mbedtls_md_free() 432 ctx->hmac_ctx = NULL; in mbedtls_md_setup() 498 ctx->hmac_ctx = mbedtls_calloc(2, md_info->block_size); in mbedtls_md_setup() 499 if (ctx->hmac_ctx == NULL) { in mbedtls_md_setup() 975 if (ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL) { in mbedtls_md_hmac_starts() 994 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts() 995 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts() 1019 if (ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL) { in mbedtls_md_hmac_update() 1032 if (ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL) { in mbedtls_md_hmac_finish() [all …]
|
D | ssl_msg.c | 212 const unsigned char * const ikey = ctx->hmac_ctx; in mbedtls_ct_hmac()
|
/mbedtls-3.6.0/include/mbedtls/ |
D | ssl_cookie.h | 49 mbedtls_md_context_t MBEDTLS_PRIVATE(hmac_ctx); /*!< context for the HMAC portion */
|
D | md.h | 250 void *MBEDTLS_PRIVATE(hmac_ctx);
|
/mbedtls-3.6.0/docs/architecture/psa-migration/ |
D | md-cipher-dispatch.md | 349 void *hmac_ctx;
|