Permalink
Browse files

Switch from *ses -> *ctx

  • Loading branch information...
1 parent ac30c7d commit 169e6be94350bf83690176850cf6454b9f8e93c4 @kmoore134 kmoore134 committed Sep 13, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 sys/fs/pefs/pefs_aesni.c
View
8 sys/fs/pefs/pefs_aesni.c
@@ -117,8 +117,8 @@ pefs_aesni_encrypt(const struct pefs_session *xses,
const struct pefs_aesni_ctx *ctx = &xctx->o.pctx_aesni;
if (ses->fpu_saved >= 0)
- aesni_encrypt_xts(ses->rounds, ses->enc_schedule,
- ses->xts_schedule, AES_BLOCK_LEN, in, out, NULL);
+ aesni_encrypt_xts(ctx->rounds, ctx->enc_schedule,
+ ctx->xts_schedule, AES_BLOCK_LEN, in, out, NULL);
else
rijndael_encrypt(&ctx->sw, in, out);
}
@@ -131,8 +131,8 @@ pefs_aesni_decrypt(const struct pefs_session *xses,
const struct pefs_aesni_ctx *ctx = &xctx->o.pctx_aesni;
if (ses->fpu_saved >= 0)
- aesni_decrypt_xts(ses->rounds, ses->enc_schedule,
- ses->xts_schedule, AES_BLOCK_LEN, in, out, NULL);
+ aesni_decrypt_xts(ctx->rounds, ctx->enc_schedule,
+ ctx->xts_schedule, AES_BLOCK_LEN, in, out, NULL);
else
rijndael_decrypt(&ctx->sw, in, out);
}

0 comments on commit 169e6be

Please sign in to comment.