IPCryptNDXCtx.encryptIP16

Encrypts a 16-byte IP address (IPv4 or IPv6) with extended non-determinism.

struct IPCryptNDXCtx
nothrow @nogc @trusted
ubyte[IPCRYPT_NDX_KEYBYTES]
encryptIP16
(
scope const(ubyte)* ip16
,
scope const(ubyte)* random
)

Parameters

ip16 const(ubyte)*

The 16-byte IP address to encrypt.

random const(ubyte)*

16-byte random data for non-determinism.

Return Value

Type: ubyte[IPCRYPT_NDX_KEYBYTES]

The 16-byte encrypted IP address.

Meta