Crate psp_security

source ·

Structs

Enums

Constants

Functions

  • Derive a PSP key using the pkt_ctx.psp_cfg.spi and pkt_ctx.master_keys and store the derived key in pkt_ctx.key.
  • 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.
  • 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.
  • 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.
  • Decapsulate a PSP transport mode packet.
  • Encapsulate a packet in transport mode.
  • Decapsulate a PSP tunnel mode packet.
  • Encapsulate a packet in tunnel mode.

Type Aliases