Lines Matching refs:allocated_buff
669 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()
958 if(allocated_buff != NULL){ in sign_bin_file()
959 free(allocated_buff); in sign_bin_file()
1035 u8 *allocated_buff = NULL; in verify_bin_file() local
1308 allocated_buff = (u8*)malloc(1); in verify_bin_file()
1331 allocated_buff = (u8*)realloc(allocated_buff, offset + read); in verify_bin_file()
1332 if(allocated_buff == NULL){ in verify_bin_file()
1337 memcpy(allocated_buff + offset, buf, read); in verify_bin_file()
1346 …ret = ec_verify(sig, siglen, &pub_key, allocated_buff, (u32)offset, sig_type, hash_type, (const u8… in verify_bin_file()
1372 if(allocated_buff != NULL){ in verify_bin_file()
1373 free(allocated_buff); in verify_bin_file()