right :). You may want to update the doxygen doc by the way :)


On Sat, Mar 29, 2014 at 12:22 PM, Miguel BT <notifications@github.com>wrote:

> In source_code/src/AES/aes256_ctr.c:
>
> >  {
> >      // Decrypt is the same operation as encrypt
> > -    aes256CtrEnc(iv, key, text);
> > +    aes256CtrEncBlock(iv, key, text);
> > +}
> > +
> > +/*!	\fn 	void aes256CtrInit(aes256CtrCtx *ctx, const uint8_t *key, const uint8_t *iv, size_t ivLen)
> > +*	\brief	Init CTR encryption and save key and iv inside ctx
> > +*
> > +*   \param  ctx - context to save iv and key information
> > +*   \param  iv - pointer to initialization vector, size must be 16 bytes or lower.
> > +*   \param  key - pointer to key, size must be 32 bytes
> > +*/
> > +void aes256CtrInit(aes256CtrCtx_t *ctx, const uint8_t *key, const uint8_t *iv, uint8_t ivLen)
>
> Well as suggested by Henryk, it can be useful if you if you want to use a
> iv with a length lower than 16byte but... yes we can remove that part if we
> fix the length to 16 byte.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/limpkin/mooltipass/pull/24/files#r11092957>
> .
>