MCPcopy Create free account
hub / github.com/F-Stack/f-stack / aead_ccm_iv_fill

Function aead_ccm_iv_fill

dpdk/lib/ipsec/crypto.h:152–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static inline void
153aead_ccm_iv_fill(struct aead_ccm_iv *ccm, uint64_t iv, uint32_t salt)
154{
155 union aead_ccm_salt tsalt;
156
157 tsalt.salt = salt;
158 ccm->ccm_flags = tsalt.inner.ccm_flags;
159 ccm->salt[0] = tsalt.inner.salt8[0];
160 ccm->salt[1] = tsalt.inner.salt8[1];
161 ccm->salt[2] = tsalt.inner.salt8[2];
162 ccm->iv = iv;
163 ccm->cnt = rte_cpu_to_be_32(1);
164}
165
166
167/*

Callers 4

inb_cop_prepareFunction · 0.85
inb_cpu_crypto_prepareFunction · 0.85
outb_cop_prepareFunction · 0.85
outb_cpu_crypto_prepareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected