Lines Matching refs:crt
171 static inline int zcrypt_type6_crt_key(struct ica_rsa_modexpo_crt *crt, void *p) in zcrypt_type6_crt_key() argument
194 if (WARN_ON_ONCE(crt->inputdatalength > 512)) in zcrypt_type6_crt_key()
199 short_len = (crt->inputdatalength + 1) / 2; in zcrypt_type6_crt_key()
202 key_len = 3*long_len + 2*short_len + pad_len + crt->inputdatalength; in zcrypt_type6_crt_key()
220 key->pvt.mod_len = crt->inputdatalength; in zcrypt_type6_crt_key()
224 if (copy_from_user(key->key_parts, crt->np_prime, long_len) || in zcrypt_type6_crt_key()
226 crt->nq_prime, short_len) || in zcrypt_type6_crt_key()
228 crt->bp_key, long_len) || in zcrypt_type6_crt_key()
230 crt->bq_key, short_len) || in zcrypt_type6_crt_key()
232 crt->u_mult_inv, long_len)) in zcrypt_type6_crt_key()
235 0xff, crt->inputdatalength); in zcrypt_type6_crt_key()
238 pub->modulus_bit_len = 8 * crt->inputdatalength; in zcrypt_type6_crt_key()