2017-05-20 19 views

Antwort

0

+ ist zusätzlich; ist bitweise XOR.

Siehe z.B. https://en.wikipedia.org/wiki/RC5#Encryption für eine Notation mit ^ (C-style XOR).

Eine Erläuterung des Symbols finden Sie unter https://en.wikipedia.org/wiki/Exclusive_or#Alternative_symbols.

+0

+ ist auch OR ... –

+0

@RicardodaRochaVitor Was, in RC5? Wie das? – melpomene

+0

RC5 ist ein sehr einfacher Algorithmus zum Krypten. Wie Sie sehen können, 'A = A + S [0]; B = B + S [1]; für i = 1 bis r tun A = ((A B) <<< B) + S [2i]; B = ((B ⊕ A) <<< A) + S [2i + 1]; 'sind logische Verknüpfungen –

0
A = A OR S[0]; 
B = B OR S[1]; 

for i = 1 to r do 
A = ((A XOR B) <<< B) OR S[2i]; 
B = ((B XOR A) <<< A) OR S[2i OR 1]; 

<<< bedeutet eine bitweise Operation

Verwandte Themen