Structs§
- PktContext
- PspConfig
- A PSP configuration structure.
- PspHeader
- PspHeader
Builder - Builder for
PspHeader
. - PspHeader
Flags - PspSocket
- PspSocket is a socket that encapsulates and decapsulates packets in PSP. It is a wrapper around a UdpSocket.
- PspSocket
Options - Socket options for a PSP socket.
Enums§
- Crypto
Alg - PspEncap
- PspError
- PspError enumerates all possible errors returned by this library.
- PspHeader
Builder Error - Error type for PspHeaderBuilder
Constants§
Functions§
- derive_
psp_ key - Derive a PSP key using the
spi
, and themaster_keys
. - psp_
decap_ eth - Decapsulate a PSP packet. If the PSP header Next Header field indicates an IPv4 or IPv6 header, tunnel mode decapsulation will be used, otherwise, transport mode decapsulation will be used.
- psp_
decap_ pdu - Decapsulate a PSP encapsulated PDU.
- psp_
decrypt - Decrypt a PSP packet. The decryption is an out-of-place operation returned in separate buffers. On input, the ciphertext buffer must also contain the icv.
- psp_
encap_ pdu - Encapsulate a PDU in PSP.
- psp_
encrypt - Encrypt a PSP packet given the PSP header and the payload buffer. The encryption is an out-of-place operation with the ciphertext and the ICV tag returned in the same buffer.
- psp_
transport_ decap - Decapsulate a PSP transport mode packet.
- psp_
transport_ encap - Encapsulate a packet in transport mode.
- psp_
tunnel_ decap - Decapsulate a PSP tunnel mode packet.
- psp_
tunnel_ encap - Encapsulate a packet in tunnel mode.