Skip to content

Commit f514593

Browse files
author
Matt David
committed
- Change "CBC" to GCM. This was missed during the original change from CBC to GCM
1 parent b8c2959 commit f514593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0075.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,13 @@ For the following we assume the Sender already knows the Receiver's public key,
326326
* If '''pki_type''' is x509+sha256 and '''signature''' is valid for the serialized [[#InvoiceRequest|InvoiceRequest]] where signature is set to "", [[#InvoiceRequest|InvoiceRequest]] is VALID
327327
328328
===Sending Encrypted Payment Protocol Messages using EncryptedProtocolMessages===
329-
* 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]]
329+
* 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]]
330330
* Create [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] message
331331
* Set '''encrypted_message''' to be the encrypted value of the Payment Protocol message
332332
* '''version''' SHOULD be set to the highest version number the client understands (currently 1)
333333
* '''sender_public_key''' MUST be set to the public key of the Sender's EC keypair
334334
* '''receiver_public_key''' MUST be set to the public key of the Receiver's EC keypair
335-
* '''nonce''' MUST be set to the nonce used in the AES-256-CBC encryption operation
335+
* '''nonce''' MUST be set to the nonce used in the AES-256-GCM encryption operation
336336
* Set '''identifier''' to the identifier value received in the originating InvoiceRequest's ProtocolMessage or EncryptedProtocolMessage wrapper message
337337
* Set '''signature''' to ""
338338
* Sign the serialized [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] message with the communicating party's EC public key

0 commit comments

Comments
 (0)