src/nca.c
/* Updates the CTR for an offset. */
Updates the CTR for an offset.
Updates the CTR for an offset .
void nca_update_ctr(unsigned char *ctr, uint64_t ofs)
{
    ofs >>= 4;
    for (unsigned int j = 0; j < 0x8; j++)
    {
        ctr[0x10 - j - 1] = (unsigned char)(ofs & 0xFF);
        ofs >>= 8;
    }
}
void nca_update_ctr ( unsigned char * ctr , uint64_t ofs ) { ofs >>= 4 ; for ( unsigned int j = 0 ; j < 0x8 ; j ++ ) { ctr [ 0x10 - j - 1 ] = ( unsigned char ) ( ofs & 0xFF ) ; ofs >>= 8 ; } }
Updates the CTR for an offset.
Updates the CTR for an offset .