Patent ID: 9735967
Date: 2017-08-15
CPC Classifications: G06F,H04L

Claim:
1. A method comprises: generating, by a first device, a self-validating message by: creating a master key; using the master key and a secret function to create a message encryption key; encrypting a message using the message encryption key to produce an encrypted message; encrypting the master key using a public key of a second device to produce an encrypted master key; and including a message authentication code of the first device in the self-validating message; receiving, by the second device, the self-validating message; and decoding, by the second device, the self-validating message by: verifying the message authentication code of the first device; and when the message authentication code of the first device is verified: decrypting the encrypted master key using a private key of the second device to recover the master key; using the master key and the secret function to create the message encryption key; and decrypting the encrypted message using the message encryption key to recover the message, creating, by the second device, a self-validating response message by: creating a responder encryption key from the master key and a second secret function; encrypting a response to the message using the responder encryption key to produce an encrypted response; and including a second message authentication code of the second device in the self-validating response message; and sending, by the second device, the self-validating response message to the first device.