Exemplo n.º 1
0
Arquivo: ctr.c Projeto: atupac/ctr
void ctr_init_cbc_decrypt( ctr_crypto_context* ctx,
						   unsigned char key[16],
						   unsigned char iv[16] )
{
	aes_setkey_dec(&ctx->aes, key, 128);
	ctr_set_iv(ctx, iv);
}
Exemplo n.º 2
0
void ctr_init_cbc_decrypt( ctr_aes_context* ctx,
						   u8 key[16],
						   u8 iv[16] )
{
	aes_setkey_dec(&ctx->aes, key, 128);
	ctr_set_iv(ctx, iv);
}