aboutsummaryrefslogtreecommitdiff
path: root/sys/opencrypto/cryptodev.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/opencrypto/cryptodev.h')
-rw-r--r--sys/opencrypto/cryptodev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h
index 3eef1aada2a7..3a0022996a3c 100644
--- a/sys/opencrypto/cryptodev.h
+++ b/sys/opencrypto/cryptodev.h
@@ -686,6 +686,13 @@ void crypto_cursor_copydata_noadv(struct crypto_buffer_cursor *cc, int size,
void *vdst);
static __inline void
+crypto_cursor_copy(const struct crypto_buffer_cursor *fromc,
+ struct crypto_buffer_cursor *toc)
+{
+ memcpy(toc, fromc, sizeof(*toc));
+}
+
+static __inline void
crypto_read_iv(struct cryptop *crp, void *iv)
{
const struct crypto_session_params *csp;