Lines Matching refs:encrypt
63 struct cword encrypt; member
134 ctx->cword.encrypt.rounds = 10 + (key_len - 16) / 4; in aes_set_key()
135 ctx->cword.decrypt.rounds = ctx->cword.encrypt.rounds; in aes_set_key()
136 ctx->cword.encrypt.ksize = (key_len - 16) / 8; in aes_set_key()
137 ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize; in aes_set_key()
144 ctx->cword.encrypt.keygen = 1; in aes_set_key()
157 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) || in aes_set_key()
303 padlock_reset_key(&ctx->cword.encrypt); in aes_encrypt()
305 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in aes_encrypt()
307 padlock_store_cword(&ctx->cword.encrypt); in aes_encrypt()
315 padlock_reset_key(&ctx->cword.encrypt); in aes_decrypt()
319 padlock_store_cword(&ctx->cword.encrypt); in aes_decrypt()
351 padlock_reset_key(&ctx->cword.encrypt); in ecb_aes_encrypt()
359 ctx->E, &ctx->cword.encrypt, in ecb_aes_encrypt()
366 padlock_store_cword(&ctx->cword.encrypt); in ecb_aes_encrypt()
395 padlock_store_cword(&ctx->cword.encrypt); in ecb_aes_decrypt()
415 .encrypt = ecb_aes_encrypt,
430 padlock_reset_key(&ctx->cword.encrypt); in cbc_aes_encrypt()
439 walk.iv, &ctx->cword.encrypt, in cbc_aes_encrypt()
461 padlock_reset_key(&ctx->cword.encrypt); in cbc_aes_decrypt()
477 padlock_store_cword(&ctx->cword.encrypt); in cbc_aes_decrypt()
498 .encrypt = cbc_aes_encrypt,