- nessie_bc_ctx.blocksize_B = (pgm_read_word(&(bcd->blocksize_b))+7)/8;
- nessie_bc_ctx.name = name;
- nessie_bc_ctx.ctx_size_B = pgm_read_word(&(bcd->ctxsize_B));
- nessie_bc_ctx.cipher_enc = (nessie_bc_enc_fpt)pgm_read_word(&(bcd->enc));
- nessie_bc_ctx.cipher_dec = (nessie_bc_dec_fpt)pgm_read_word(&(bcd->dec));
- nessie_bc_ctx.cipher_free = (nessie_bc_free_fpt)pgm_read_word(&(bcd->free));
- if((pgm_read_byte(&(bcd->flags))&BC_INIT_TYPE)==BC_INIT_TYPE_2){
- nessie_bc_ctx.cipher_genctx = (nessie_bc_gen_fpt)pgm_read_word(&(bcd->init));
- }else{
- bcal_nessie_dummy_init_fpt = (void(*)(const void*,void*))pgm_read_word(&(bcd->init));
- nessie_bc_ctx.cipher_genctx = (nessie_bc_gen_fpt)bcal_nessie_dummy_init;
- }
+ nessie_bc_ctx.blocksize_B = (pgm_read_word(&(bcd->blocksize_b)) + 7) / 8;
+ nessie_bc_ctx.name = name;
+ nessie_bc_ctx.ctx_size_B = pgm_read_word(&(bcd->ctxsize_B));
+ nessie_bc_ctx.cipher_enc = (nessie_bc_enc_fpt) pgm_read_word(&(bcd->enc));
+ nessie_bc_ctx.cipher_dec = (nessie_bc_dec_fpt) pgm_read_word(&(bcd->dec));
+ nessie_bc_ctx.cipher_free =
+ (nessie_bc_free_fpt) pgm_read_word(&(bcd->free));
+ if ((pgm_read_byte(&(bcd->flags)) & BC_INIT_TYPE) == BC_INIT_TYPE_2) {
+ nessie_bc_ctx.cipher_genctx =
+ (nessie_bc_gen_fpt) pgm_read_word(&(bcd->init));
+ } else {
+ bcal_nessie_dummy_init_fpt =
+ (void (*)(const void*, void*)) pgm_read_word(&(bcd->init));
+ nessie_bc_ctx.cipher_genctx =
+ (nessie_bc_gen_fpt) bcal_nessie_dummy_init;
+ }