Lines Matching refs:digest
123 unsigned char digest[MBEDTLS_MD_MAX_SIZE]; in main() local
314 mbedtls_md_finish( &md_ctx, digest ); in main()
316 memcpy( IV, digest, 16 ); in main()
331 memset( digest, 0, 32 ); in main()
332 memcpy( digest, IV, 16 ); in main()
337 mbedtls_md_update( &md_ctx, digest, 32 ); in main()
339 mbedtls_md_finish( &md_ctx, digest ); in main()
343 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main()
360 mbedtls_md_hmac_starts( &md_ctx, digest, 32 ); in main()
407 mbedtls_md_hmac_finish( &md_ctx, digest ); in main()
409 … if( fwrite( digest, 1, mbedtls_md_get_size( md_info ), fout ) != mbedtls_md_get_size( md_info ) ) in main()
471 memset( digest, 0, 32 ); in main()
472 memcpy( digest, IV, 16 ); in main()
477 mbedtls_md_update( &md_ctx, digest, 32 ); in main()
479 mbedtls_md_finish( &md_ctx, digest ); in main()
482 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main()
501 mbedtls_md_hmac_starts( &md_ctx, digest, 32 ); in main()
536 mbedtls_md_hmac_finish( &md_ctx, digest ); in main()
547 diff |= digest[i] ^ buffer[i]; in main()
586 mbedtls_platform_zeroize( digest, sizeof( digest ) ); in main()