Searched refs:src_len (Results 1 – 6 of 6) sorted by relevance
/crypto/ |
D | rsa-pkcs1pad.c | 239 if (req->src_len > ctx->key_size - 11) in pkcs1pad_encrypt() 247 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_encrypt() 252 ps_end = ctx->key_size - req->src_len - 2; in pkcs1pad_encrypt() 259 ctx->key_size - 1 - req->src_len, req->src); in pkcs1pad_encrypt() 352 if (!ctx->key_size || req->src_len != ctx->key_size) in pkcs1pad_decrypt() 368 req_ctx->out_sg, req->src_len, in pkcs1pad_decrypt() 395 if (req->src_len + digest_size > ctx->key_size - 11) in pkcs1pad_sign() 403 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_sign() 408 ps_end = ctx->key_size - digest_size - req->src_len - 2; in pkcs1pad_sign() 418 ctx->key_size - 1 - req->src_len, req->src); in pkcs1pad_sign() [all …]
|
D | ecrdsa.c | 98 req->dst_len * 2 != req->src_len || in ecrdsa_verify() 99 WARN_ON(req->src_len > sizeof(sig)) || in ecrdsa_verify() 103 sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, req->src_len), in ecrdsa_verify() 104 sig, req->src_len); in ecrdsa_verify() 107 req->src_len + req->dst_len), in ecrdsa_verify() 108 digest, req->dst_len, req->src_len); in ecrdsa_verify()
|
D | rsa.c | 71 m = mpi_read_raw_from_sgl(req->src, req->src_len); in rsa_enc() 110 c = mpi_read_raw_from_sgl(req->src, req->src_len); in rsa_dec()
|
D | ecdh.c | 92 if (public_key_sz != req->src_len) in ecdh_compute_value()
|
D | dh.c | 166 base = mpi_read_raw_from_sgl(req->src, req->src_len); in dh_compute_value()
|
D | algapi.c | 1107 void crypto_stats_akcipher_encrypt(unsigned int src_len, int ret, in crypto_stats_akcipher_encrypt() argument 1114 atomic64_add(src_len, &alg->stats.akcipher.encrypt_tlen); in crypto_stats_akcipher_encrypt() 1120 void crypto_stats_akcipher_decrypt(unsigned int src_len, int ret, in crypto_stats_akcipher_decrypt() argument 1127 atomic64_add(src_len, &alg->stats.akcipher.decrypt_tlen); in crypto_stats_akcipher_decrypt()
|