Lines Matching refs:digest
84 unsigned char digest[32]; in main() local
128 memset(digest, 0, sizeof(digest)); in main()
238 mbedtls_md_finish( &sha_ctx, digest ); in main()
240 memcpy( IV, digest, 16 ); in main()
264 memset( digest, 0, 32 ); in main()
265 memcpy( digest, IV, 16 ); in main()
270 mbedtls_md_update( &sha_ctx, digest, 32 ); in main()
272 mbedtls_md_finish( &sha_ctx, digest ); in main()
276 mbedtls_aes_setkey_enc( &aes_ctx, digest, 256 ); in main()
277 mbedtls_md_hmac_starts( &sha_ctx, digest, 32 ); in main()
311 mbedtls_md_hmac_finish( &sha_ctx, digest ); in main()
313 if( fwrite( digest, 1, 32, fout ) != 32 ) in main()
366 memset( digest, 0, 32 ); in main()
367 memcpy( digest, IV, 16 ); in main()
372 mbedtls_md_update( &sha_ctx, digest, 32 ); in main()
374 mbedtls_md_finish( &sha_ctx, digest ); in main()
378 mbedtls_aes_setkey_dec( &aes_ctx, digest, 256 ); in main()
379 mbedtls_md_hmac_starts( &sha_ctx, digest, 32 ); in main()
415 mbedtls_md_hmac_finish( &sha_ctx, digest ); in main()
426 diff |= digest[i] ^ buffer[i]; in main()
445 memset( digest, 0, sizeof( digest ) ); in main()