Crate psp_security

Source

Structs§

PktContext
PspConfig
A PSP configuration structure.
PspHeader
PspHeaderBuilder
Builder for PspHeader.
PspHeaderFlags
PspSocket
PspSocket is a socket that encapsulates and decapsulates packets in PSP. It is a wrapper around a UdpSocket.
PspSocketOptions
Socket options for a PSP socket.

Enums§

CryptoAlg
PspEncap
PspError
PspError enumerates all possible errors returned by this library.
PspHeaderBuilderError
Error type for PspHeaderBuilder

Constants§

PSP_ICV_SIZE

Functions§

derive_psp_key
Derive a PSP key using the spi, and the master_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.

Type Aliases§

PspMasterKey