Skip to content

Commit 7ccbfc4

Browse files
author
Lee Miller
committed
Add a footnote about the format of the public key in the Encryption doc
1 parent 47d6fb1 commit 7ccbfc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/encryption.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Encryption
4949
key_e as encryption key and the padded input text as payload. Call the
5050
output cipher text.
5151
9. Calculate a 32 byte MAC with HMACSHA256, using key_m as salt and
52-
IV + R + cipher text as data. Call the output MAC.
52+
IV + R [#f2]_ + cipher text as data. Call the output MAC.
5353

5454
The resulting data is: IV + R + cipher text + MAC
5555

@@ -252,3 +252,5 @@ Partial Example
252252

253253
.. [#f1] The pyelliptic implementation used in PyBitmessage takes unpadded data,
254254
see :obj:`.pyelliptic.Cipher.ciphering`.
255+
.. [#f2] The pyelliptic encodes the pubkey with curve and length,
256+
see :obj:`.pyelliptic.ECC.get_pubkey`

0 commit comments

Comments
 (0)