Lines Matching refs:encrypt
66 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()
155 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) || in aes_set_key()
310 padlock_reset_key(&ctx->cword.encrypt); in padlock_aes_encrypt()
311 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in padlock_aes_encrypt()
312 padlock_store_cword(&ctx->cword.encrypt); in padlock_aes_encrypt()
319 padlock_reset_key(&ctx->cword.encrypt); in padlock_aes_decrypt()
321 padlock_store_cword(&ctx->cword.encrypt); in padlock_aes_decrypt()
352 padlock_reset_key(&ctx->cword.encrypt); in ecb_aes_encrypt()
358 ctx->E, &ctx->cword.encrypt, in ecb_aes_encrypt()
364 padlock_store_cword(&ctx->cword.encrypt); in ecb_aes_encrypt()
389 padlock_store_cword(&ctx->cword.encrypt); in ecb_aes_decrypt()
405 .encrypt = ecb_aes_encrypt,
417 padlock_reset_key(&ctx->cword.encrypt); in cbc_aes_encrypt()
424 walk.iv, &ctx->cword.encrypt, in cbc_aes_encrypt()
444 padlock_reset_key(&ctx->cword.encrypt); in cbc_aes_decrypt()
456 padlock_store_cword(&ctx->cword.encrypt); in cbc_aes_decrypt()
473 .encrypt = cbc_aes_encrypt,