IPCryptPFXCtx

IPCryptPFX context, providing prefix-preserving encryption/decryption. Ensures proper initialization and cleanup of the underlying IPCryptPFX context.

Constructors

this
this(const(ubyte)[] key)

Constructs an IPCryptPFXCtx with the given 32-byte key.

this
this(string hexKey)

Ditto, but constructs from a hexadecimal key string.

Destructor

~this
~this()

Destructor ensures the IPCryptPFX context is cleaned up.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

decryptIP16
ubyte[IPCRYPT_KEYBYTES] decryptIP16(const(ubyte)[] ip16)

Decrypts a 16-byte IP address (IPv4 or IPv6) with prefix preservation.

decryptIPStr
size_t decryptIPStr(char[] output, const(char)[] encryptedIPStr)

Decrypts an encrypted IP address string with prefix preservation.

encryptIP16
ubyte[IPCRYPT_KEYBYTES] encryptIP16(const(ubyte)[] ip16)

Encrypts a 16-byte IP address (IPv4 or IPv6) with prefix preservation.

encryptIPStr
size_t encryptIPStr(char[] output, const(char)[] ipStr)

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

Meta