Skip to content

Commit 08c3253

Browse files
committed
Merge branch 'main' of github.com:jedisct1/draft-denis-ipcrypt
* 'main' of github.com:jedisct1/draft-denis-ipcrypt: Add a note on IPv4-mapped inputs
2 parents 5c83197 + b4ed7e3 commit 08c3253

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

draft-denis-ipcrypt.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ IPv4 Address: 192.0.2.1
272272
16-Byte Representation: [00 00 00 00 00 00 00 00 00 00 FF FF C0 00 02 01]
273273
~~~
274274

275+
Note on representation equivalence: For all `ipcrypt` variants, encrypting an IPv4 address and encrypting its IPv4-mapped IPv6 form (`::FFFF:a.b.c.d`) produce the same encrypted output.
276+
277+
This behavior is intentional: in the intended use cases, IP addresses function as identifiers, and producing a single encrypted identifier for the same endpoint across representations avoids ambiguity.
278+
275279
## Converting from a 16-Byte Representation to an IP Address
276280

277281
Conversion algorithm:

0 commit comments

Comments
 (0)