Services/Sync/SimplifiedCrypto: Difference between revisions

Jump to navigation Jump to search
Line 69: Line 69:
=== HMAC ===
=== HMAC ===


It's a good practice to use separate keys for HMAC and for encryption. The bulk keys (stored encrypted on the server) are themselves used as input for exactly the same hash operations mentioned above. This yields a pair of keys that can be used for encryption and message authentication.
It's a good practice to use separate keys for HMAC and for encryption. The bulk keys (stored encrypted on the server) are themselves used as input for exactly the same hash operations mentioned above. This yields a pair of keys that can be used for encryption and message authentication:


::data_encr = SHA256("encrypt:" + data_key)
::data_hmac = SHA256("hmac:" + data_key)


=== Objects ===
=== Objects ===
canmove, Confirmed users
725

edits

Navigation menu