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

Function crypto_read_iv

freebsd/opencrypto/cryptodev.h:715–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713 void *vdst);
714
715static __inline void
716crypto_read_iv(struct cryptop *crp, void *iv)
717{
718 const struct crypto_session_params *csp;
719
720 csp = crypto_get_params(crp->crp_session);
721 if (crp->crp_flags & CRYPTO_F_IV_SEPARATE)
722 memcpy(iv, crp->crp_iv, csp->csp_ivlen);
723 else
724 crypto_copydata(crp, crp->crp_iv_start, csp->csp_ivlen, iv);
725}
726
727#endif /* _KERNEL */
728#endif /* _CRYPTO_CRYPTO_H_ */

Callers 7

aesni_cipher_cryptFunction · 0.85
ccp_collect_ivFunction · 0.85
padlock_cipher_processFunction · 0.85
swcr_encdecFunction · 0.85
swcr_gmacFunction · 0.85
swcr_ccm_cbc_macFunction · 0.85

Calls 3

crypto_get_paramsFunction · 0.85
crypto_copydataFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected