mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-19 12:08:05 +00:00
- Change "CBC" to GCM. This was missed during the original change from CBC to GCM
This commit is contained in:
parent
b8c2959783
commit
f514593687
@ -326,13 +326,13 @@ For the following we assume the Sender already knows the Receiver's public key,
|
|||||||
* If '''pki_type''' is x509+sha256 and '''signature''' is valid for the serialized [[#InvoiceRequest|InvoiceRequest]] where signature is set to "", [[#InvoiceRequest|InvoiceRequest]] is VALID
|
* If '''pki_type''' is x509+sha256 and '''signature''' is valid for the serialized [[#InvoiceRequest|InvoiceRequest]] where signature is set to "", [[#InvoiceRequest|InvoiceRequest]] is VALID
|
||||||
|
|
||||||
===Sending Encrypted Payment Protocol Messages using EncryptedProtocolMessages===
|
===Sending Encrypted Payment Protocol Messages using EncryptedProtocolMessages===
|
||||||
* 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]]
|
* 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]]
|
||||||
* Create [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] message
|
* Create [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] message
|
||||||
* Set '''encrypted_message''' to be the encrypted value of the Payment Protocol message
|
* Set '''encrypted_message''' to be the encrypted value of the Payment Protocol message
|
||||||
* '''version''' SHOULD be set to the highest version number the client understands (currently 1)
|
* '''version''' SHOULD be set to the highest version number the client understands (currently 1)
|
||||||
* '''sender_public_key''' MUST be set to the public key of the Sender's EC keypair
|
* '''sender_public_key''' MUST be set to the public key of the Sender's EC keypair
|
||||||
* '''receiver_public_key''' MUST be set to the public key of the Receiver's EC keypair
|
* '''receiver_public_key''' MUST be set to the public key of the Receiver's EC keypair
|
||||||
* '''nonce''' MUST be set to the nonce used in the AES-256-CBC encryption operation
|
* '''nonce''' MUST be set to the nonce used in the AES-256-GCM encryption operation
|
||||||
* Set '''identifier''' to the identifier value received in the originating InvoiceRequest's ProtocolMessage or EncryptedProtocolMessage wrapper message
|
* Set '''identifier''' to the identifier value received in the originating InvoiceRequest's ProtocolMessage or EncryptedProtocolMessage wrapper message
|
||||||
* Set '''signature''' to ""
|
* Set '''signature''' to ""
|
||||||
* Sign the serialized [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] message with the communicating party's EC public key
|
* Sign the serialized [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] message with the communicating party's EC public key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user