void ctr_init_counter( ctr_crypto_context* ctx, unsigned char key[16], unsigned char ctr[12] ) { aes_setkey_enc(&ctx->aes, key, 128); ctr_set_counter(ctx, ctr); }
void ctr_init_counter( ctr_aes_context* ctx, u8 key[16], u8 ctr[16] ) { aes_setkey_enc(&ctx->aes, key, 128); ctr_set_counter(ctx, ctr); }