Lines Matching refs:memcpy

81 		memcpy(kb->keybuf + sizeof(*h), key, keylen);  in _key_to_kb()
94 memcpy(kb->key, key, keylen); in _key_to_kb()
153 memcpy(&ctx->pk, &pkey, sizeof(pkey)); in __paes_convert_key()
226 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
240 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
341 memcpy(param.iv, walk.iv, AES_BLOCK_SIZE); in cbc_paes_crypt()
343 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
352 memcpy(walk.iv, param.iv, AES_BLOCK_SIZE); in cbc_paes_crypt()
359 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
422 memcpy(&ctx->pk[0], &pkey0, sizeof(pkey0)); in __xts_paes_convert_key()
423 memcpy(&ctx->pk[1], &pkey1, sizeof(pkey1)); in __xts_paes_convert_key()
483 memcpy(ckey, ctx->pk[0].protkey, ckey_len); in xts_paes_set_key()
484 memcpy(ckey + ckey_len, ctx->pk[1].protkey, ckey_len); in xts_paes_set_key()
515 memcpy(pcc_param.tweak, walk.iv, sizeof(pcc_param.tweak)); in xts_paes_crypt()
517 memcpy(pcc_param.key + offset, ctx->pk[1].protkey, keylen); in xts_paes_crypt()
518 memcpy(xts_param.key + offset, ctx->pk[0].protkey, keylen); in xts_paes_crypt()
521 memcpy(xts_param.init, pcc_param.xts, 16); in xts_paes_crypt()
534 memcpy(xts_param.key + offset, in xts_paes_crypt()
628 memcpy(ctrptr, iv, AES_BLOCK_SIZE); in __ctrblk_init()
631 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init()
655 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ctr_paes_crypt()
669 memcpy(walk.iv, ctrptr + k - AES_BLOCK_SIZE, in ctr_paes_crypt()
681 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ctr_paes_crypt()
699 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ctr_paes_crypt()
702 memcpy(walk.dst.virt.addr, buf, nbytes); in ctr_paes_crypt()