Searched refs:seed_len (Results 1 – 1 of 1) sorted by relevance
121 static int rsa_gen_mask_mgf_v1(uint8_t *seed, uint32_t seed_len, in rsa_gen_mask_mgf_v1() argument143 pc = (uint8_t *)hvb_malloc(seed_len + sizeof(uint32_t)); in rsa_gen_mask_mgf_v1()155 hvb_memcpy(pc, seed, seed_len); in rsa_gen_mask_mgf_v1()157 hvb_memset(pc + seed_len, 0, sizeof(uint32_t)); in rsa_gen_mask_mgf_v1()163 pc[seed_len + sizeof(uint32_t) - sizeof(uint8_t)] = cnt; in rsa_gen_mask_mgf_v1()166 if (hash_sha256_single(pc, seed_len + sizeof(uint32_t), p_tmp, hash_len) != HASH_OK) { in rsa_gen_mask_mgf_v1()