IPCryptPFXCtx.encryptIPStr

Encrypts an IP address string (IPv4 or IPv6) with prefix preservation.

struct IPCryptPFXCtx
nothrow @safe
size_t
encryptIPStr
(
scope char[] output
,
scope const(char)[] ipStr
)

Parameters

output char[]

Buffer to store the encrypted IP string (must be at least IPCRYPT_MAX_IP_STR_BYTES).

ipStr const(char)[]

The IP address string to encrypt.

Return Value

Type: size_t

The length of the encrypted IP string, or 0 on error.

Meta