I've seen this function M2 = tmp ⊕ Pi. What does the circle with cross do?
Asked
Active
Viewed 3.9k times
6
einstein
- 205
-
Composition? Unusual notation, but possible . . . Hrm. – 000 Dec 05 '12 at 01:32
-
1In what context did you see this? – copper.hat Dec 05 '12 at 01:36
-
The article calculated hash functions. tmp is a hash value and Pi is a random secret – einstein Dec 05 '12 at 01:48
2 Answers
15
In logic and CompSci, $\oplus$ is used to denote the "exclusive or" or "XOR": $\quad x \lor y \land \lnot(x \land y)$.
In set theory, $\oplus$ denotes the disjoint union.
In linear algebra/vector analysis, it's used to denote the direct sum of two vector spaces.
It's also used to denote parity: see P Parity.
Clearly, the context in which it's used is crucial.
In $LaTeX$: use \oplus.
amWhy
- 210,739
0
$\oplus$ is often used for Directed Sum.
In Computer Science(especially cryptography), $\oplus$ usually means XOR, or bitwise addition.
Ben
- 1,104
-
1Ok I think they meant XOR. Beause the article I read about was about cryptography – einstein Dec 05 '12 at 01:49