Home
last modified time | relevance | path

Searched refs:hmac_ctx (Results 1 – 6 of 6) sorted by relevance

/third_party/mbedtls/library/
Dssl_cookie.c71 mbedtls_md_init( &ctx->hmac_ctx ); in mbedtls_ssl_cookie_init()
89 mbedtls_md_free( &ctx->hmac_ctx ); in mbedtls_ssl_cookie_free()
108 ret = mbedtls_md_setup( &ctx->hmac_ctx, mbedtls_md_info_from_type( COOKIE_MD ), 1 ); in mbedtls_ssl_cookie_setup()
112 ret = mbedtls_md_hmac_starts( &ctx->hmac_ctx, key, sizeof( key ) ); in mbedtls_ssl_cookie_setup()
124 static int ssl_cookie_hmac( mbedtls_md_context_t *hmac_ctx, in ssl_cookie_hmac() argument
133 if( mbedtls_md_hmac_reset( hmac_ctx ) != 0 || in ssl_cookie_hmac()
134 mbedtls_md_hmac_update( hmac_ctx, time, 4 ) != 0 || in ssl_cookie_hmac()
135 mbedtls_md_hmac_update( hmac_ctx, cli_id, cli_id_len ) != 0 || in ssl_cookie_hmac()
136 mbedtls_md_hmac_finish( hmac_ctx, hmac_out ) != 0 ) in ssl_cookie_hmac()
177 ret = ssl_cookie_hmac( &ctx->hmac_ctx, *p - 4, in mbedtls_ssl_cookie_write()
[all …]
Dmd.c286 if( ctx->hmac_ctx != NULL ) in mbedtls_md_free()
288 mbedtls_platform_zeroize( ctx->hmac_ctx, in mbedtls_md_free()
290 mbedtls_free( ctx->hmac_ctx ); in mbedtls_md_free()
366 ctx->hmac_ctx = NULL; in mbedtls_md_setup()
411 ctx->hmac_ctx = mbedtls_calloc( 2, md_info->block_size ); in mbedtls_md_setup()
412 if( ctx->hmac_ctx == NULL ) in mbedtls_md_setup()
632 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_starts()
648 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts()
649 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts()
674 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_update()
[all …]
Dconstant_time.c467 const unsigned char * const ikey = ctx->hmac_ctx; in mbedtls_ct_hmac()
/third_party/mbedtls/include/mbedtls/
Dssl_cookie.h56 mbedtls_md_context_t MBEDTLS_PRIVATE(hmac_ctx); /*!< context for the HMAC portion */
Dmd.h106 void *MBEDTLS_PRIVATE(hmac_ctx);
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h55614 struct hmac_ctx { struct