Skip to content

xtime calculator in C language for DEC or HEX input + output.

Notifications You must be signed in to change notification settings

martinius96/calculator-xtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xtime calculator

  • Two C files for dec or hex format input + output
  • function xtime() based on AES - bit-shift to left
  • if overflow occurs, bulhar's constant 1B is added via the XOR function

Translation for Windows under MinGW:

gcc dec.c -o dec.exe
gcc hex.c -o hex.exe

Translation for Linux under GCC:

gcc dec.c -o dec
gcc hex.c -o hex

Optional translation:

make
or
make all

Usage or DEC:

Enter numbers from range 0 - 255:
Enter number 1:
10 (your number) 
Enter number 2:
20 (your number)
Xtime result: 136

Usage or HEX:

Enter numbers from range 00-FF:
Enter number 1:
0xAA (your number)
Enter number 2:
0xBB (your number)
Xtime result: 0x56