I am wondering if there is a strong (e.g. AES or so) encryption function that works as follows:
Key1 (Key2 (clear text)) == Key2 (Key1 (clear text)) for example "Commutative" (also required for decryption - you need two keys, it does not matter the order)
thank
This is not commutative encryption, but there are proven algorithms for secret exchanges (note that this is not the same as the "key agreement".)
- . , "". , . , .
, . , . , , 256. "y-" (y- x = 0). . Y- x = 1, x = 2, x = 3, & hellip; , .
- , , y. -, , . ; .
, . , , .
, , , . , , .
.
, CTR. CTR :
ciphertext = plaintext XOR cipher(key, counter)
IV . - . , CTR- , :
ciphertext = plaintext XOR cipher(key0, counter) XOR cipher(key1, counter)
XOR , .
, . : , , , ( , SSL- ):
, :
DH , , IV. . , .
CTR, CTR , , , , CBC. :
sessionkey = RANDOM IV_0 = RANDOM IV_1 = RANDOM enc_sessionkey = sessionkey XOR cipher(key0, IV_0) XOR cipher(key1, IV_0) ciphertext = enc_sessionkey + IV_0 + IV_1 + cipherCBC(IV_1, sessionkey, plaintext)
, , , - .. , . , .
. , . .
, . , , . , , , - , . , , , .
, , " " - , , atk. , , ( , ), , /. , , , . , , .