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

Function session_op_from_32

freebsd/opencrypto/cryptodev.c:151–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149#define CIOCCRYPTAEAD32 _IOWR('c', 109, struct crypt_aead32)
150
151static void
152session_op_from_32(const struct session_op32 *from, struct session2_op *to)
153{
154
155 memset(to, 0, sizeof(*to));
156 CP(*from, *to, cipher);
157 CP(*from, *to, mac);
158 CP(*from, *to, keylen);
159 PTRIN_CP(*from, *to, key);
160 CP(*from, *to, mackeylen);
161 PTRIN_CP(*from, *to, mackey);
162 CP(*from, *to, ses);
163 to->crid = CRYPTOCAP_F_HARDWARE;
164}
165
166static void
167session2_op_from_32(const struct session2_op32 *from, struct session2_op *to)

Callers 2

session2_op_from_32Function · 0.85
crypto_ioctlFunction · 0.85

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected