Lines Matching refs:n_sz

70 	dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE);  in rsa_pub_unmap()
82 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in rsa_priv_f1_unmap()
267 if (req->src_len > key->n_sz) { in rsa_edesc_alloc()
273 key->n_sz, sg_flags); in rsa_edesc_alloc()
285 diff_size = key->n_sz - req->src_len; in rsa_edesc_alloc()
415 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
424 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
444 pdb->sgf |= (key->e_sz << RSA_PDB_E_SHIFT) | key->n_sz; in set_rsa_pub_pdb()
460 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_priv_f1_pdb()
469 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in set_rsa_priv_f1_pdb()
492 pdb->sgf |= (key->d_sz << RSA_PDB_D_SHIFT) | key->n_sz; in set_rsa_priv_f1_pdb()
557 pdb->sgf |= (key->d_sz << RSA_PDB_D_SHIFT) | key->n_sz; in set_rsa_priv_f2_pdb()
646 pdb->sgf |= key->n_sz; in set_rsa_priv_f3_pdb()
726 if (req->dst_len < key->n_sz) { in caam_rsa_enc()
727 req->dst_len = key->n_sz; in caam_rsa_enc()
850 if (req->dst_len < key->n_sz) { in caam_rsa_dec()
851 req->dst_len = key->n_sz; in caam_rsa_dec()
969 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key()
973 if (caam_rsa_check_key_length(raw_key.n_sz << 3)) { in caam_rsa_set_pub_key()
979 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_pub_key()
1078 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_priv_key()
1082 if (caam_rsa_check_key_length(raw_key.n_sz << 3)) { in caam_rsa_set_priv_key()
1089 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_priv_key()
1104 return ctx->key.n_sz; in caam_rsa_max_size()