- printitem("key", key, (nessie_ctx.keysize+7)/8);
- nessie_ctx.cipher_genctx(key, nessie_ctx.keysize, ctx);
- memcpy(buffer, pt, nessie_ctx.blocksize_B);
- printitem("plain", buffer, nessie_ctx.blocksize_B);
- nessie_ctx.cipher_enc(buffer, ctx);
- printitem("cipher", buffer, nessie_ctx.blocksize_B);
- nessie_ctx.cipher_dec(buffer, ctx);
- printitem("decrypted", buffer, nessie_ctx.blocksize_B);
+ printitem("key", key, (nessie_bc_ctx.keysize_b+7)/8);
+ nessie_bc_ctx.cipher_genctx(key, nessie_bc_ctx.keysize_b, ctx);
+ memcpy(buffer, pt, nessie_bc_ctx.blocksize_B);
+ printitem("plain", buffer, nessie_bc_ctx.blocksize_B);
+ nessie_bc_ctx.cipher_enc(buffer, ctx);
+ printitem("cipher", buffer, nessie_bc_ctx.blocksize_B);
+ nessie_bc_ctx.cipher_dec(buffer, ctx);
+ printitem("decrypted", buffer, nessie_bc_ctx.blocksize_B);