I am implementing some cryptographic algorithm in C that includes an 80 bit key. A particular operation includes a rotation shifting the key x number of bits.
I tried a long double type, which, if I'm not mistaken, is 80bit, but this does not work with a bitrate operator.
The only alternative I can come up with is to use an array of 10 char elements with some complex loops and if-else.
My question is whether there is a simple and effective way to do it.
Thanks.
c bit-shift cryptography rotation fpga
gamerx
source share