Lines Matching refs:enc
43 struct AES_KEY enc; member
48 struct BS_KEY enc; member
52 struct BS_KEY enc; member
63 if (private_AES_set_encrypt_key(in_key, bits, &ctx->enc)) { in aesbs_cbc_set_key()
67 ctx->dec.rk = ctx->enc; in aesbs_cbc_set_key()
79 if (private_AES_set_encrypt_key(in_key, bits, &ctx->enc.rk)) { in aesbs_ctr_set_key()
83 ctx->enc.converted = 0; in aesbs_ctr_set_key()
93 if (private_AES_set_encrypt_key(in_key, bits, &ctx->enc.rk)) { in aesbs_xts_set_key()
97 ctx->dec.rk = ctx->enc.rk; in aesbs_xts_set_key()
100 ctx->enc.converted = ctx->dec.converted = 0; in aesbs_xts_set_key()
124 AES_encrypt(src, src, &ctx->enc); in aesbs_cbc_encrypt()
134 AES_encrypt(walk.iv, dst, &ctx->enc); in aesbs_cbc_encrypt()
228 &ctx->enc, walk.iv); in aesbs_ctr_encrypt()
243 AES_encrypt(walk.iv, ks, &ctx->enc.rk); in aesbs_ctr_encrypt()
269 walk.nbytes, &ctx->enc, walk.iv); in aesbs_xts_encrypt()