Lines Matching full:crt
55 * mapping for the cca private CRT key 'token'
152 * Set up private key fields of a type6 CRT message.
159 static inline int zcrypt_type6_crt_key(struct ica_rsa_modexpo_crt *crt, void *p) in zcrypt_type6_crt_key() argument
182 if (WARN_ON_ONCE(crt->inputdatalength > 512)) in zcrypt_type6_crt_key()
187 short_len = (crt->inputdatalength + 1) / 2; in zcrypt_type6_crt_key()
190 key_len = 3 * long_len + 2 * short_len + pad_len + crt->inputdatalength; in zcrypt_type6_crt_key()
208 key->pvt.mod_len = crt->inputdatalength; in zcrypt_type6_crt_key()
212 if (copy_from_user(key->key_parts, crt->np_prime, long_len) || in zcrypt_type6_crt_key()
214 crt->nq_prime, short_len) || in zcrypt_type6_crt_key()
216 crt->bp_key, long_len) || in zcrypt_type6_crt_key()
218 crt->bq_key, short_len) || in zcrypt_type6_crt_key()
220 crt->u_mult_inv, long_len)) in zcrypt_type6_crt_key()
223 0xff, crt->inputdatalength); in zcrypt_type6_crt_key()
226 pub->modulus_bit_len = 8 * crt->inputdatalength; in zcrypt_type6_crt_key()