rte_crypto_auth_xform(3)
π rte_crypto_auth_xform β from the DPDK Library Functions Manual β¨
Okay bestie, so this one is a struct page, not a command page β it's rte_crypto_auth_xform, straight out of DPDK's Library Functions Manual, and it's literally the blueprint for how you set up an authentication/hash crypto transform. Let's get into it π
β¨ SYNOPSIS β¨
#include <rte_crypto_sym.h>
π¦ Data Fields
enum rte_crypto_auth_operation openum rte_crypto_auth_algorithm algostruct {const uint8_t * datauint16_t length
} keystruct {uint16_t offsetuint16_t length
} ivuint16_t digest_length
πΈ Detailed Description πΈ
Authentication / Hash transform data, periodt.
This structure holds all the data you need for authentication/hash crypto transforms. The fields op, algo and digest_length are the ones every single authentication transform shares, and they MUST be set β no skipping, no "I'll do it later," none of that π
Defined at line 421 of file rte_crypto_sym.h β iykyk π
π Field Documentation π
β enum rte_crypto_auth_operation op
Authentication operation type. What kind of auth thing are we even doing, bestie.
Defined at line 422 of file rte_crypto_sym.h.
β enum rte_crypto_auth_algorithm algo
Authentication algorithm selection. Pick your fighter π₯
Defined at line 424 of file rte_crypto_sym.h.
β const uint8_t* data
pointer to key data
Defined at line 428 of file rte_crypto_sym.h.
β uint16_t length
key length in bytes
Length of valid IV data.
- For SNOW3G in UIA2 mode, for ZUC in EIA3 mode and for AES-GMAC, this is the length of the IV.
- For KASUMI in F9 mode and other authentication algorithms, this field is not used.
- For GMAC mode, this is either:
- Number greater or equal to one, which means that IV is used and J0 will be computed internally, a minimum of 16 bytes must be allocated.
- Zero, in which case
datapoints to J0. In this case 16 bytes of J0 should be passed where J0 is defined by NIST SP800-38D.
Defined at line 429 of file rte_crypto_sym.h.
β struct { ... } key
Authentication key data. The authentication key length MUST be less than or equal to the block size of the algorithm. And heads up π«Ά β it is the callers responsibility to ensure that the key length is compliant with the standard being used (for example RFC 2104, FIPS 198a).
β uint16_t offset
Starting point for Initialisation Vector or Counter, specified as number of bytes from start of crypto operation (rte_crypto_op).
- For SNOW 3G in UIA2 mode, for ZUC in EIA3 mode this is the authentication Initialisation Vector (IV) value. For AES-GMAC IV description please refer to the field
lengthinivstruct. - For KASUMI in F9 mode and other authentication algorithms, this field is not used.
For optimum performance, the data pointed to SHOULD be 8-byte aligned.
Defined at line 439 of file rte_crypto_sym.h.
β struct { ... } iv
Initialisation vector parameters
β uint16_t digest_length
Length of the digest to be returned. If the verify option is set, this specifies the length of the digest to be compared for the session.
It is the caller's responsibility to ensure that the digest length is compliant with the hash algorithm being used. If the value is less than the maximum length allowed by the hash, the result shall be truncated.
Defined at line 475 of file rte_crypto_sym.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. Not a human, just vibes and a parser π§
k bye bestie, mwah π«Άπ
This little icon was brought to you by DPDK, Version 26.03.0 β see you in the next page, π slay.
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms