Lines Matching refs:kcv
2863 void *kcv) in compute_check_value_with_sha1() argument
2871 assert(key && kcv); in compute_check_value_with_sha1()
2889 TEE_MemMove(kcv, buf, PKCS11_CKA_CHECK_VALUE_SIZE); in compute_check_value_with_sha1()
2905 void *kcv) in compute_check_value_with_ecb() argument
2915 assert(key && kcv); in compute_check_value_with_ecb()
2947 TEE_MemMove(kcv, buf, PKCS11_CKA_CHECK_VALUE_SIZE); in compute_check_value_with_ecb()
2962 uint8_t kcv[PKCS11_CKA_CHECK_VALUE_SIZE] = { }; in set_check_value_attr() local
3004 rc = compute_check_value_with_ecb(val, val_len, kcv); in set_check_value_attr()
3013 rc = compute_check_value_with_sha1(val, val_len, kcv); in set_check_value_attr()
3020 rc = compute_check_value_with_sha1(val, val_len, kcv); in set_check_value_attr()
3032 if (TEE_MemCompare(kcv2, kcv, PKCS11_CKA_CHECK_VALUE_SIZE)) in set_check_value_attr()
3035 rc = add_attribute(head, PKCS11_CKA_CHECK_VALUE, kcv, in set_check_value_attr()