IPCryptNDXCtx.encryptIP16

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

struct IPCryptNDXCtx
nothrow @nogc @safe
ubyte[IPCRYPT_NDX_NDIP_BYTES]
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_NDIP_BYTES]

The 32-byte encrypted IP address.

Meta