Lines Matching refs:digest
84 unsigned char digest[MBEDTLS_MD_MAX_SIZE]; in main() local
277 mbedtls_md_finish( &md_ctx, digest ); in main()
279 memcpy( IV, digest, 16 ); in main()
294 memset( digest, 0, 32 ); in main()
295 memcpy( digest, IV, 16 ); in main()
300 mbedtls_md_update( &md_ctx, digest, 32 ); in main()
302 mbedtls_md_finish( &md_ctx, digest ); in main()
308 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main()
325 mbedtls_md_hmac_starts( &md_ctx, digest, 32 ); in main()
372 mbedtls_md_hmac_finish( &md_ctx, digest ); in main()
374 … if( fwrite( digest, 1, mbedtls_md_get_size( md_info ), fout ) != mbedtls_md_get_size( md_info ) ) in main()
436 memset( digest, 0, 32 ); in main()
437 memcpy( digest, IV, 16 ); in main()
442 mbedtls_md_update( &md_ctx, digest, 32 ); in main()
444 mbedtls_md_finish( &md_ctx, digest ); in main()
449 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main()
468 mbedtls_md_hmac_starts( &md_ctx, digest, 32 ); in main()
503 mbedtls_md_hmac_finish( &md_ctx, digest ); in main()
514 diff |= digest[i] ^ buffer[i]; in main()
544 memset( digest, 0, sizeof( digest ) ); in main()