Lines Matching refs:len_hash
62 int i, big_indian_i, len_hash;
71 len_hash = EVP_MD_size(digest);
72 N = length / len_hash;
73 hash = (BYTE *)malloc( len_hash);
75 LogError("malloc of %d bytes failed", len_hash);
82 EVP_DigestFinal_ex(&mdctx, &result[ i * len_hash], NULL);
90 // copy the rest: base_nameLength % len_hash bytes
91 memcpy( &result[ i * len_hash], hash, length - N * len_hash);
432 int length_ch, len_hash, bits;
758 len_hash = EVP_MD_size( DAA_PARAM_get_message_digest());
759 hash = (BYTE *)malloc( len_hash);// allocation
761 LogError("malloc of %d bytes failed", len_hash);
770 len_hash = EVP_MD_size( DAA_PARAM_get_message_digest());
772 hash = (BYTE *)malloc( len_hash);// allocation
774 LogError("malloc of %d bytes failed", len_hash);
780 if( signature->challenge_length != len_hash ||
781 memcmp( signature->challenge, hash, len_hash) != 0) {
787 len_hash,
788 dump_byte_array( len_hash, hash));