Searched refs:hmac_ctx (Results 1 – 4 of 4) sorted by relevance
/AliOS-Things-master/components/mbedtls/library/ |
A D | ssl_cookie.c | 76 mbedtls_md_init( &ctx->hmac_ctx ); in mbedtls_ssl_cookie_init() 94 mbedtls_md_free( &ctx->hmac_ctx ); in mbedtls_ssl_cookie_free() 113 ret = mbedtls_md_setup( &ctx->hmac_ctx, mbedtls_md_info_from_type( COOKIE_MD ), 1 ); in mbedtls_ssl_cookie_setup() 117 ret = mbedtls_md_hmac_starts( &ctx->hmac_ctx, key, sizeof( key ) ); in mbedtls_ssl_cookie_setup() 129 static int ssl_cookie_hmac( mbedtls_md_context_t *hmac_ctx, in ssl_cookie_hmac() argument 139 if( mbedtls_md_hmac_reset( hmac_ctx ) != 0 || in ssl_cookie_hmac() 140 mbedtls_md_hmac_update( hmac_ctx, time, 4 ) != 0 || in ssl_cookie_hmac() 141 mbedtls_md_hmac_update( hmac_ctx, cli_id, cli_id_len ) != 0 || in ssl_cookie_hmac() 142 mbedtls_md_hmac_finish( hmac_ctx, hmac_out ) != 0 ) in ssl_cookie_hmac() 187 ret = ssl_cookie_hmac( &ctx->hmac_ctx, *p - 4, in mbedtls_ssl_cookie_write() [all …]
|
A D | md.c | 190 if( ctx->hmac_ctx != NULL ) in mbedtls_md_free() 192 mbedtls_platform_zeroize( ctx->hmac_ctx, in mbedtls_md_free() 194 mbedtls_free( ctx->hmac_ctx ); in mbedtls_md_free() 232 ctx->hmac_ctx = mbedtls_calloc( 2, md_info->block_size ); in mbedtls_md_setup() 233 if( ctx->hmac_ctx == NULL ) in mbedtls_md_setup() 326 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_starts() 342 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts() 343 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts() 368 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_update() 380 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_finish() [all …]
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | ssl_cookie.h | 55 mbedtls_md_context_t hmac_ctx; /*!< context for the HMAC portion */ member
|
A D | md.h | 94 void *hmac_ctx; member
|
Completed in 6 milliseconds