Searched refs:hmac_ctx (Results 1 – 14 of 14) sorted by relevance
/optee_os/core/drivers/crypto/caam/hash/ |
A D | caam_hash_mac.c | 129 struct hashctx *hmac_ctx = mac->ctx; in do_hmac_init() local 180 hmac_ctx->key.length)); in do_hmac_init() 186 hmac_ctx->key.length); in do_hmac_init() 193 hmac_ctx->key.length); in do_hmac_init() 291 struct hashctx *hmac_ctx = NULL; in caam_hmac_allocate() local 307 hmac_ctx = caam_calloc(sizeof(*hmac_ctx)); in caam_hmac_allocate() 308 if (!hmac_ctx) { in caam_hmac_allocate() 313 hmac_ctx->alg = alg; in caam_hmac_allocate() 315 mac->ctx = hmac_ctx; in caam_hmac_allocate() 330 if (hmac_ctx) in caam_hmac_allocate() [all …]
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | ssl_cookie.c | 71 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() 180 ret = ssl_cookie_hmac( &ctx->hmac_ctx, *p - 4, in mbedtls_ssl_cookie_write() [all …]
|
A D | md.c | 325 if( ctx->hmac_ctx != NULL ) in mbedtls_md_free() 327 mbedtls_platform_zeroize( ctx->hmac_ctx, in mbedtls_md_free() 329 mbedtls_free( ctx->hmac_ctx ); in mbedtls_md_free() 390 if( dst->hmac_ctx != NULL && src->hmac_ctx != NULL ) in mbedtls_md_clone() 391 memcpy( dst->hmac_ctx, src->hmac_ctx, 2 * src->md_info->block_size ); in mbedtls_md_clone() 419 ctx->hmac_ctx = NULL; in mbedtls_md_setup() 468 ctx->hmac_ctx = mbedtls_calloc( 2, md_info->block_size ); in mbedtls_md_setup() 469 if( ctx->hmac_ctx == NULL ) in mbedtls_md_setup() 709 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_starts() 725 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts() [all …]
|
A D | ssl_msg.c | 1206 const unsigned char * const ikey = ctx->hmac_ctx; in mbedtls_ssl_cf_hmac()
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | ssl_cookie.h | 59 mbedtls_md_context_t hmac_ctx; /*!< context for the HMAC portion */ member
|
A D | md.h | 98 void *hmac_ctx; member
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | ssl_cookie.h | 59 mbedtls_md_context_t hmac_ctx; /*!< context for the HMAC portion */ member
|
A D | md.h | 98 void *hmac_ctx; member
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ssl_cookie.h | 59 mbedtls_md_context_t hmac_ctx; /*!< context for the HMAC portion */ member
|
A D | md.h | 98 void *hmac_ctx; member
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | ssl_cookie.h | 59 mbedtls_md_context_t hmac_ctx; /*!< context for the HMAC portion */ member
|
A D | md.h | 98 void *hmac_ctx; member
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | ssl_cookie.h | 59 mbedtls_md_context_t hmac_ctx; /*!< context for the HMAC portion */ member
|
A D | md.h | 98 void *hmac_ctx; member
|
Completed in 23 milliseconds