/* xtime calculation The value is multiplied by 0x02. This is implemented at the byte level as a left shift and XOR with 0x1b if the MSB of the value (before) shifting is 1.  */
uint8_t xtime(uint8_t value)
/* xtime calculation The value is multiplied by 0x02. This is implemented at the byte level as a left shift and XOR with 0x1b if the MSB of the value (before) shifting is 1.  */
uint8_t xtime(uint8_t value)
{
	if ( value >> 7 ){
		value = value << 1;
		return ( value ^ 0x1b );
	}else{
		return value << 1;
	}
}