Home
last modified time | relevance | path

Searched refs:crt (Results 1 – 10 of 10) sorted by relevance

/linux-4.19.296/drivers/s390/crypto/
Dzcrypt_cca_key.h173 static inline int zcrypt_type6_crt_key(struct ica_rsa_modexpo_crt *crt, void *p) in zcrypt_type6_crt_key() argument
196 if (WARN_ON_ONCE(crt->inputdatalength > 512)) in zcrypt_type6_crt_key()
201 short_len = (crt->inputdatalength + 1) / 2; in zcrypt_type6_crt_key()
204 key_len = 3*long_len + 2*short_len + pad_len + crt->inputdatalength; in zcrypt_type6_crt_key()
222 key->pvt.mod_len = crt->inputdatalength; in zcrypt_type6_crt_key()
226 if (copy_from_user(key->key_parts, crt->np_prime, long_len) || in zcrypt_type6_crt_key()
228 crt->nq_prime, short_len) || in zcrypt_type6_crt_key()
230 crt->bp_key, long_len) || in zcrypt_type6_crt_key()
232 crt->bq_key, short_len) || in zcrypt_type6_crt_key()
234 crt->u_mult_inv, long_len)) in zcrypt_type6_crt_key()
[all …]
Dzcrypt_msgtype50.c177 unsigned int get_rsa_crt_fc(struct ica_rsa_modexpo_crt *crt, int *fcode) in get_rsa_crt_fc() argument
180 if (!crt->inputdatalength) in get_rsa_crt_fc()
183 if (crt->inputdatalength <= 128) /* 1024 bit */ in get_rsa_crt_fc()
185 else if (crt->inputdatalength <= 256) /* 2048 bit */ in get_rsa_crt_fc()
265 struct ica_rsa_modexpo_crt *crt) in ICACRT_msg_to_type50CRT_msg() argument
270 mod_len = crt->inputdatalength; in ICACRT_msg_to_type50CRT_msg()
329 if (copy_from_user(p, crt->np_prime + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
330 copy_from_user(q, crt->nq_prime, short_len) || in ICACRT_msg_to_type50CRT_msg()
331 copy_from_user(dp, crt->bp_key + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
332 copy_from_user(dq, crt->bq_key, short_len) || in ICACRT_msg_to_type50CRT_msg()
[all …]
Dzcrypt_api.c291 static long zcrypt_rsa_crt(struct ica_rsa_modexpo_crt *crt) in zcrypt_rsa_crt() argument
299 trace_s390_zcrypt_req(crt, TP_ICARSACRT); in zcrypt_rsa_crt()
301 if (crt->outputdatalength < crt->inputdatalength) { in zcrypt_rsa_crt()
312 crt->outputdatalength = crt->inputdatalength; in zcrypt_rsa_crt()
314 rc = get_rsa_crt_fc(crt, &func_code); in zcrypt_rsa_crt()
326 if (zc->min_mod_size > crt->inputdatalength || in zcrypt_rsa_crt()
327 zc->max_mod_size < crt->inputdatalength) in zcrypt_rsa_crt()
354 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt); in zcrypt_rsa_crt()
361 trace_s390_zcrypt_rep(crt, func_code, rc, in zcrypt_rsa_crt()
822 struct ica_rsa_modexpo_crt crt; in zcrypt_unlocked_ioctl() local
[all …]
Dzcrypt_msgtype6.c322 struct ica_rsa_modexpo_crt *crt) in ICACRT_msg_to_type6CRT_msgX() argument
350 if (WARN_ON_ONCE(crt->inputdatalength > PAGE_SIZE)) in ICACRT_msg_to_type6CRT_msgX()
354 msg->length = crt->inputdatalength + 2; in ICACRT_msg_to_type6CRT_msgX()
355 if (copy_from_user(msg->text, crt->inputdata, crt->inputdatalength)) in ICACRT_msg_to_type6CRT_msgX()
359 size = zcrypt_type6_crt_key(crt, msg->text + crt->inputdatalength); in ICACRT_msg_to_type6CRT_msgX()
362 size += sizeof(*msg) + crt->inputdatalength; /* total size of msg */ in ICACRT_msg_to_type6CRT_msgX()
1076 struct ica_rsa_modexpo_crt *crt) in zcrypt_msgtype6_modexpo_crt() argument
1092 rc = ICACRT_msg_to_type6CRT_msgX(zq, &ap_msg, crt); in zcrypt_msgtype6_modexpo_crt()
1102 crt->outputdata, in zcrypt_msgtype6_modexpo_crt()
1103 crt->outputdatalength); in zcrypt_msgtype6_modexpo_crt()
/linux-4.19.296/crypto/
Dablkcipher.c349 struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; in crypto_init_ablkcipher_ops() local
354 crt->setkey = setkey; in crypto_init_ablkcipher_ops()
355 crt->encrypt = alg->encrypt; in crypto_init_ablkcipher_ops()
356 crt->decrypt = alg->decrypt; in crypto_init_ablkcipher_ops()
357 crt->base = __crypto_ablkcipher_cast(tfm); in crypto_init_ablkcipher_ops()
358 crt->ivsize = alg->ivsize; in crypto_init_ablkcipher_ops()
423 struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; in crypto_init_givcipher_ops() local
428 crt->setkey = tfm->__crt_alg->cra_flags & CRYPTO_ALG_GENIV ? in crypto_init_givcipher_ops()
430 crt->encrypt = alg->encrypt; in crypto_init_givcipher_ops()
431 crt->decrypt = alg->decrypt; in crypto_init_givcipher_ops()
[all …]
Dshash.c371 struct crypto_ahash *crt = __crypto_ahash_cast(tfm); in crypto_init_shash_ops_async() local
387 crt->init = shash_async_init; in crypto_init_shash_ops_async()
388 crt->update = shash_async_update; in crypto_init_shash_ops_async()
389 crt->final = shash_async_final; in crypto_init_shash_ops_async()
390 crt->finup = shash_async_finup; in crypto_init_shash_ops_async()
391 crt->digest = shash_async_digest; in crypto_init_shash_ops_async()
393 crt->setkey = shash_async_setkey; in crypto_init_shash_ops_async()
395 crypto_ahash_set_flags(crt, crypto_shash_get_flags(shash) & in crypto_init_shash_ops_async()
399 crt->export = shash_async_export; in crypto_init_shash_ops_async()
401 crt->import = shash_async_import; in crypto_init_shash_ops_async()
[all …]
Dblkcipher.c461 struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; in crypto_init_blkcipher_ops_async() local
464 crt->setkey = async_setkey; in crypto_init_blkcipher_ops_async()
465 crt->encrypt = async_encrypt; in crypto_init_blkcipher_ops_async()
466 crt->decrypt = async_decrypt; in crypto_init_blkcipher_ops_async()
467 crt->base = __crypto_ablkcipher_cast(tfm); in crypto_init_blkcipher_ops_async()
468 crt->ivsize = alg->ivsize; in crypto_init_blkcipher_ops_async()
475 struct blkcipher_tfm *crt = &tfm->crt_blkcipher; in crypto_init_blkcipher_ops_sync() local
480 crt->setkey = setkey; in crypto_init_blkcipher_ops_sync()
481 crt->encrypt = alg->encrypt; in crypto_init_blkcipher_ops_sync()
482 crt->decrypt = alg->decrypt; in crypto_init_blkcipher_ops_sync()
[all …]
Dscompress.c212 struct crypto_acomp *crt = __crypto_acomp_tfm(tfm); in crypto_init_scomp_ops_async() local
228 crt->compress = scomp_acomp_compress; in crypto_init_scomp_ops_async()
229 crt->decompress = scomp_acomp_decompress; in crypto_init_scomp_ops_async()
230 crt->dst_free = sgl_free; in crypto_init_scomp_ops_async()
231 crt->reqsize = sizeof(void *); in crypto_init_scomp_ops_async()
/linux-4.19.296/include/linux/
Dcrypto.h890 struct ablkcipher_tfm *crt = crypto_ablkcipher_crt(tfm); in crypto_ablkcipher_setkey() local
892 return crt->setkey(crt->base, key, keylen); in crypto_ablkcipher_setkey()
923 struct ablkcipher_tfm *crt = in crypto_ablkcipher_encrypt() local
925 return crt->encrypt(req); in crypto_ablkcipher_encrypt()
941 struct ablkcipher_tfm *crt = in crypto_ablkcipher_decrypt() local
943 return crt->decrypt(req); in crypto_ablkcipher_decrypt()
/linux-4.19.296/include/video/
Dtdfx.h159 unsigned char crt[25]; member