Loop/Architecture/Context: Difference between revisions

Jump to navigation Jump to search
Line 37: Line 37:
Decryption consists of Base64 decoding the "context" field, splitting off the first 12 bytes for use as an IV, and splitting off the final 16 bytes as the validation tag. These are then used as input to the AES-GCM decryption algorithm (along with '''kR'''), the output of which is a JSON object containing fields that correspond to the various room context information fields.
Decryption consists of Base64 decoding the "context" field, splitting off the first 12 bytes for use as an IV, and splitting off the final 16 bytes as the validation tag. These are then used as input to the AES-GCM decryption algorithm (along with '''kR'''), the output of which is a JSON object containing fields that correspond to the various room context information fields.


The "key" field is encrypted, formatted, and decrypted similarly, but using '''kBr''' rather than '''kR''' as the encryption key, and using '''kR''' as the cleartext.
The "key" field is encrypted, formatted, and decrypted similarly, but using '''kRWrapper''' rather than '''kR''' as the encryption key, and using '''kR''' as the cleartext.


== Loop Server API Changes ==
== Loop Server API Changes ==
Confirmed users
632

edits

Navigation menu