Lines Matching refs:n_sz

64 	dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE);  in rsa_pub_unmap()
76 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in rsa_priv_f1_unmap()
259 if (req->src_len > key->n_sz) { in rsa_edesc_alloc()
265 key->n_sz, sg_flags); in rsa_edesc_alloc()
277 diff_size = key->n_sz - req->src_len; in rsa_edesc_alloc()
408 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
417 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
437 pdb->sgf |= (key->e_sz << RSA_PDB_E_SHIFT) | key->n_sz; in set_rsa_pub_pdb()
453 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_priv_f1_pdb()
462 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in set_rsa_priv_f1_pdb()
485 pdb->sgf |= (key->d_sz << RSA_PDB_D_SHIFT) | key->n_sz; in set_rsa_priv_f1_pdb()
550 pdb->sgf |= (key->d_sz << RSA_PDB_D_SHIFT) | key->n_sz; in set_rsa_priv_f2_pdb()
639 pdb->sgf |= key->n_sz; in set_rsa_priv_f3_pdb()
719 if (req->dst_len < key->n_sz) { in caam_rsa_enc()
720 req->dst_len = key->n_sz; in caam_rsa_enc()
843 if (req->dst_len < key->n_sz) { in caam_rsa_dec()
844 req->dst_len = key->n_sz; in caam_rsa_dec()
962 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key()
966 if (caam_rsa_check_key_length(raw_key.n_sz << 3)) { in caam_rsa_set_pub_key()
972 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_pub_key()
1068 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_priv_key()
1072 if (caam_rsa_check_key_length(raw_key.n_sz << 3)) { in caam_rsa_set_priv_key()
1079 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_priv_key()
1094 return ctx->key.n_sz; in caam_rsa_max_size()