You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This work is licensed under a [[http://creativecommons.org/licenses/by/4.0/|Creative Commons Attribution 4.0 International License]].
33
+
27
34
==Definitions==
28
35
{| class="wikitable"
29
36
| Sender || Entity wishing to transfer value that they control
@@ -323,13 +330,13 @@ For the following we assume the Sender already knows the Receiver's public key,
323
330
* If '''pki_type''' is x509+sha256 and '''signature''' is valid for the serialized [[#InvoiceRequest|InvoiceRequest]] where signature is set to "", [[#InvoiceRequest|InvoiceRequest]] is VALID
324
331
325
332
===Sending Encrypted Payment Protocol Messages using EncryptedProtocolMessages===
326
-
* Encrypt the serialized Payment Protocol message using AES-256-CBC setup as described in [[#ECDH_Point_Generation_and_AES256_GCM_Mode_Setup|ECDH Point Generation and AES-256 (GCM Mode) Setup]]
333
+
* Encrypt the serialized Payment Protocol message using AES-256-GCM setup as described in [[#ECDH_Point_Generation_and_AES256_GCM_Mode_Setup|ECDH Point Generation and AES-256 (GCM Mode) Setup]]
* Set '''encrypted_message''' to be the encrypted value of the Payment Protocol message
329
336
* '''version''' SHOULD be set to the highest version number the client understands (currently 1)
330
337
* '''sender_public_key''' MUST be set to the public key of the Sender's EC keypair
331
338
* '''receiver_public_key''' MUST be set to the public key of the Receiver's EC keypair
332
-
* '''nonce''' MUST be set to the nonce used in the AES-256-CBC encryption operation
339
+
* '''nonce''' MUST be set to the nonce used in the AES-256-GCM encryption operation
333
340
* Set '''identifier''' to the identifier value received in the originating InvoiceRequest's ProtocolMessage or EncryptedProtocolMessage wrapper message
334
341
* Set '''signature''' to ""
335
342
* Sign the serialized [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] message with the communicating party's EC public key
0 commit comments