Lines Matching full:hash
24 uint32_t hash = 0; in pkcs2tee_proc_params_rsa_pss() local
30 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_proc_params_rsa_pss()
52 ctx->hash_alg = hash; in pkcs2tee_proc_params_rsa_pss()
95 * hLen is the length in bytes of the hash value. k* is the in pkcs2tee_validate_rsa_pss()
122 uint32_t hash = 0; in pkcs2tee_algo_rsa_pss() local
128 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_algo_rsa_pss()
144 if (hash == PKCS11_CKM_SHA_1 && mgf == PKCS11_CKG_MGF1_SHA1) { in pkcs2tee_algo_rsa_pss()
148 if (hash == PKCS11_CKM_SHA224 && in pkcs2tee_algo_rsa_pss()
153 if (hash == PKCS11_CKM_SHA256 && in pkcs2tee_algo_rsa_pss()
158 if (hash == PKCS11_CKM_SHA384 && in pkcs2tee_algo_rsa_pss()
163 if (hash == PKCS11_CKM_SHA512 && in pkcs2tee_algo_rsa_pss()
173 if (hash != PKCS11_CKM_SHA_1 || mgf != PKCS11_CKG_MGF1_SHA1) in pkcs2tee_algo_rsa_pss()
177 if (hash != PKCS11_CKM_SHA224 || mgf != PKCS11_CKG_MGF1_SHA224) in pkcs2tee_algo_rsa_pss()
181 if (hash != PKCS11_CKM_SHA256 || mgf != PKCS11_CKG_MGF1_SHA256) in pkcs2tee_algo_rsa_pss()
185 if (hash != PKCS11_CKM_SHA384 || mgf != PKCS11_CKG_MGF1_SHA384) in pkcs2tee_algo_rsa_pss()
189 if (hash != PKCS11_CKM_SHA512 || mgf != PKCS11_CKG_MGF1_SHA512) in pkcs2tee_algo_rsa_pss()
206 uint32_t hash = 0; in pkcs2tee_proc_params_rsa_oaep() local
214 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_proc_params_rsa_oaep()
245 ctx->hash_alg = hash; in pkcs2tee_proc_params_rsa_oaep()
262 uint32_t hash = 0; in pkcs2tee_proc_params_rsa_aes_wrap() local
274 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_proc_params_rsa_aes_wrap()
307 ctx->hash_alg = hash; in pkcs2tee_proc_params_rsa_aes_wrap()
319 * @tee_hash_id: output TEE hash algorithm identifier
328 uint32_t hash = 0; in pkcs2tee_algo_rsa_oaep() local
336 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_algo_rsa_oaep()
364 switch (hash) { in pkcs2tee_algo_rsa_oaep()
396 EMSG("Unexpected %#"PRIx32"/%s", hash, in pkcs2tee_algo_rsa_oaep()
397 id2str_proc(hash)); in pkcs2tee_algo_rsa_oaep()
419 uint32_t hash = 0; in pkcs2tee_algo_rsa_aes_wrap() local
431 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_algo_rsa_aes_wrap()
459 switch (hash) { in pkcs2tee_algo_rsa_aes_wrap()
491 EMSG("Unexpected %#"PRIx32"/%s", hash, in pkcs2tee_algo_rsa_aes_wrap()
492 id2str_proc(hash)); in pkcs2tee_algo_rsa_aes_wrap()