Is there a difference between "adding" and "bitwise adding"?

As a small project (nothing is critical), I decided to try and write an implementation of GOST 28147-89 in C #. However, reading through RFC 5830 (informational definition of GOST 28147-89), I noticed this.

(+) - bitwise addition of words of the same length modulo 2.

[+] is the addition of 32-bit vectors modulo 2 ^ 32.

What is the difference between the two, first of all, with the first indication of bitwise addition, and the second - just adding an addition?

+8
c #
source share
1 answer

Since he says "modulo 2", I have to assume that they simply mean that each bit is not carried separately.

So

0101 +1111 ------- 1010 

I cannot think of a special use for this, since it is essentially the same as xor.

+3
source share

All Articles