1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

- Spacing

- Recommit mistakently deleted encrypted invoicerequest flow diagram
This commit is contained in:
Matt David 2016-04-28 16:39:16 -07:00
parent 057591da8c
commit a79432ac99
2 changed files with 2 additions and 0 deletions

View File

@ -306,9 +306,11 @@ For the following we assume the Sender already knows the Receiver's public key,
===ECDH Point Generation and AES-256 (GCM Mode) Setup===
'''NOTE''': AES-256-GCM is used because it provides authenticated encryption facilities, thus negating the need for a separate message hash for authentication.
* Generate the '''secret point''' using [https://en.wikipedia.org/wiki/Elliptic_curve_DiffieHellman ECDH] using the local entity's private key and the remote entity's public key as inputs.
* Initialize [http://csrc.nist.gov/publications/nistpubs/800-90A/SP800-90A.pdf HMAC_DRBG]
** Use '''SHA256(secret point's X value)''' for Entropy
** Use the given message's '''nonce''' field for Nonce
* Initialize AES-256 in GCM Mode
** Use HMAC_DRBG.GENERATE(32) as the Encryption Key (256 bits)
** Use HMAC_DRBG.GENERATE(12) as the Initialization Vector (IV) (96 bits)

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB