Home
last modified time | relevance | path

Searched refs:allocated_buff (Results 1 – 1 of 1) sorted by relevance

/freebsd/crypto/libecc/src/tests/
H A Dec_utils.c669 u8 *allocated_buff = NULL; in sign_bin_file() local
835 allocated_buff = (u8*)malloc(1); in sign_bin_file()
836 if(allocated_buff == NULL){ in sign_bin_file()
842 allocated_buff = (u8*)realloc(allocated_buff, sizeof(hdr)); in sign_bin_file()
843 if(allocated_buff == NULL){ in sign_bin_file()
848 memcpy(allocated_buff, &hdr, sizeof(hdr)); in sign_bin_file()
881 allocated_buff = (u8*)realloc(allocated_buff, offset + read); in sign_bin_file()
882 if(allocated_buff == NULL){ in sign_bin_file()
887 memcpy(allocated_buff + offset, buf, read); in sign_bin_file()
898 …ret = ec_sign(sig, siglen, &key_pair, allocated_buff, (u32)offset, sig_type, hash_type, (const u8*… in sign_bin_file()
[all …]