/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-xts.c | 88 struct ccp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 93 memcpy(req->info, rctx->iv, AES_BLOCK_SIZE); 124 struct ccp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 154 memcpy(rctx->iv, req->info, AES_BLOCK_SIZE); 155 sg_init_one(&rctx->iv_sg, rctx->iv, AES_BLOCK_SIZE); 157 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); 158 INIT_LIST_HEAD(&rctx->cmd.entry); 159 rctx [all...] |
H A D | ccp-crypto-aes-cmac.c | 32 struct ccp_aes_cmac_req_ctx *rctx = ahash_request_ctx(req); local 38 if (rctx->hash_rem) { 40 unsigned int offset = rctx->nbytes - rctx->hash_rem; 41 scatterwalk_map_and_copy(rctx->buf, rctx->src, 42 offset, rctx->hash_rem, 0); 43 rctx->buf_count = rctx->hash_rem; 45 rctx 62 struct ccp_aes_cmac_req_ctx *rctx = ahash_request_ctx(req); local 169 struct ccp_aes_cmac_req_ctx *rctx = ahash_request_ctx(req); local [all...] |
H A D | ccp-crypto-aes.c | 30 struct ccp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 36 memcpy(req->info, rctx->iv, AES_BLOCK_SIZE); 74 struct ccp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 92 memcpy(rctx->iv, req->info, AES_BLOCK_SIZE); 93 iv_sg = &rctx->iv_sg; 95 sg_init_one(iv_sg, rctx->iv, iv_len); 98 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); 99 INIT_LIST_HEAD(&rctx->cmd.entry); 100 rctx 148 struct ccp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 173 struct ccp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local [all...] |
H A D | ccp-crypto-sha.c | 31 struct ccp_sha_req_ctx *rctx = ahash_request_ctx(req); local 37 if (rctx->hash_rem) { 39 unsigned int offset = rctx->nbytes - rctx->hash_rem; 40 scatterwalk_map_and_copy(rctx->buf, rctx->src, 41 offset, rctx->hash_rem, 0); 42 rctx->buf_count = rctx->hash_rem; 44 rctx 61 struct ccp_sha_req_ctx *rctx = ahash_request_ctx(req); local 150 struct ccp_sha_req_ctx *rctx = ahash_request_ctx(req); local [all...] |
/drivers/crypto/qce/ |
H A D | ablkcipher.c | 29 struct qce_cipher_reqctx *rctx = ablkcipher_request_ctx(req); local 47 qce_unmapsg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src, 48 rctx->dst_chained); 49 qce_unmapsg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst, 50 rctx->dst_chained); 52 sg_free_table(&rctx->dst_tbl); 65 struct qce_cipher_reqctx *rctx = ablkcipher_request_ctx(req); local 75 rctx 208 struct qce_cipher_reqctx *rctx = ablkcipher_request_ctx(req); local [all...] |
H A D | common.c | 235 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 246 if (!rctx->last_blk && req->nbytes % blocksize) 251 if (IS_CMAC(rctx->flags)) { 259 auth_cfg = qce_auth_cfg(rctx->flags, rctx->authklen); 262 if (IS_SHA_HMAC(rctx->flags) || IS_CMAC(rctx->flags)) { 263 u32 authkey_words = rctx->authklen / sizeof(u32); 265 qce_cpu_to_be32p_array(mackey, rctx->authkey, rctx 319 struct qce_cipher_reqctx *rctx = ablkcipher_request_ctx(req); local [all...] |
H A D | sha.c | 42 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 54 qce_unmapsg(qce->dev, req->src, rctx->src_nents, DMA_TO_DEVICE, 55 rctx->src_chained); 56 qce_unmapsg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE, 0); 58 memcpy(rctx->digest, result->auth_iv, digestsize); 62 rctx->byte_count[0] = cpu_to_be32(result->auth_byte_count[0]); 63 rctx->byte_count[1] = cpu_to_be32(result->auth_byte_count[1]); 69 req->src = rctx->src_orig; 70 req->nbytes = rctx->nbytes_orig; 71 rctx 80 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 133 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 149 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 180 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 213 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 236 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 311 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local 334 struct qce_sha_reqctx *rctx = ahash_request_ctx(req); local [all...] |
/drivers/crypto/ |
H A D | atmel-tdes.c | 589 struct atmel_tdes_reqctx *rctx; local 622 rctx = ablkcipher_request_ctx(req); 624 rctx->mode &= TDES_FLAGS_MODE_MASK; 625 dd->flags = (dd->flags & ~TDES_FLAGS_MODE_MASK) | rctx->mode; 671 struct atmel_tdes_reqctx *rctx = ablkcipher_request_ctx(req); local 699 rctx->mode = mode;
|
H A D | mxs-dcp.c | 201 struct dcp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 220 if (rctx->enc) 227 if (rctx->ecb) 255 struct dcp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 280 if (!rctx->ecb) { 400 struct dcp_aes_req_ctx *rctx = ablkcipher_request_ctx(req); local 406 rctx->enc = enc; 407 rctx->ecb = ecb; 516 struct dcp_sha_req_ctx *rctx = ahash_request_ctx(req); local 529 if (rctx 566 struct dcp_sha_req_ctx *rctx = ahash_request_ctx(req); local 643 struct dcp_sha_req_ctx *rctx; local 707 struct dcp_sha_req_ctx *rctx = ahash_request_ctx(req); local [all...] |
H A D | atmel-aes.c | 555 struct atmel_aes_reqctx *rctx; local 588 rctx = ablkcipher_request_ctx(req); 590 rctx->mode &= AES_FLAGS_MODE_MASK; 591 dd->flags = (dd->flags & ~AES_FLAGS_MODE_MASK) | rctx->mode; 698 struct atmel_aes_reqctx *rctx = ablkcipher_request_ctx(req); local 737 rctx->mode = mode;
|
H A D | omap-aes.c | 604 struct omap_aes_reqctx *rctx; local 649 rctx = ablkcipher_request_ctx(req); 651 rctx->mode &= FLAGS_MODE_MASK; 652 dd->flags = (dd->flags & ~FLAGS_MODE_MASK) | rctx->mode; 714 struct omap_aes_reqctx *rctx = ablkcipher_request_ctx(req); local 730 rctx->mode = mode;
|
H A D | omap-des.c | 597 struct omap_des_reqctx *rctx; local 642 rctx = ablkcipher_request_ctx(req); 644 rctx->mode &= FLAGS_MODE_MASK; 645 dd->flags = (dd->flags & ~FLAGS_MODE_MASK) | rctx->mode; 707 struct omap_des_reqctx *rctx = ablkcipher_request_ctx(req); local 723 rctx->mode = mode;
|
H A D | sahara.c | 537 struct sahara_aes_reqctx *rctx; local 567 rctx = ablkcipher_request_ctx(req); 569 rctx->mode &= FLAGS_MODE_MASK; 570 dev->flags = (dev->flags & ~FLAGS_MODE_MASK) | rctx->mode; 629 struct sahara_aes_reqctx *rctx = ablkcipher_request_ctx(req); local 645 rctx->mode = mode;
|
H A D | n2_core.c | 305 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 309 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); 310 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; 312 return crypto_ahash_init(&rctx->fallback_req); 317 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 321 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); 322 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; 323 rctx->fallback_req.nbytes = req->nbytes; 324 rctx->fallback_req.src = req->src; 326 return crypto_ahash_update(&rctx 331 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 344 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 523 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 598 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 616 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 624 struct n2_hash_req_ctx *rctx = ahash_request_ctx(req); local 875 struct n2_request_context *rctx = ablkcipher_request_ctx(req); local 956 struct n2_request_context *rctx = ablkcipher_request_ctx(req); local 973 struct n2_request_context *rctx = ablkcipher_request_ctx(req); local 1025 struct n2_request_context *rctx = ablkcipher_request_ctx(req); local [all...] |
H A D | hifn_795x.c | 1166 struct hifn_context *ctx, struct hifn_request_context *rctx, 1178 switch (rctx->op) { 1195 if (rctx->op == ACRYPTO_OP_ENCRYPT || rctx->op == ACRYPTO_OP_DECRYPT) { 1200 if (rctx->iv && rctx->mode != ACRYPTO_MODE_ECB) 1203 switch (rctx->mode) { 1220 switch (rctx->type) { 1255 rctx->iv, rctx 1165 hifn_setup_cmd_desc(struct hifn_device *dev, struct hifn_context *ctx, struct hifn_request_context *rctx, void *priv, unsigned int nbytes) argument 1370 hifn_setup_dma(struct hifn_device *dev, struct hifn_context *ctx, struct hifn_request_context *rctx, struct scatterlist *src, struct scatterlist *dst, unsigned int nbytes, void *priv) argument 1578 struct hifn_request_context *rctx = ablkcipher_request_ctx(req); local 1650 struct hifn_request_context rctx; local 1772 struct hifn_request_context *rctx = ablkcipher_request_ctx(req); local 2101 struct hifn_request_context *rctx = ablkcipher_request_ctx(req); local [all...] |