Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135060741
D28949.id85076.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28949.id85076.diff
View Options
Index: sys/opencrypto/criov.c
===================================================================
--- sys/opencrypto/criov.c
+++ sys/opencrypto/criov.c
@@ -269,6 +269,13 @@
}
}
+void
+crypto_cursor_copy(const struct crypto_buffer_cursor *fromc,
+ struct crypto_buffer_cursor *toc)
+{
+ memcpy(toc, fromc, sizeof(struct crypto_buffer_cursor));
+}
+
SDT_PROBE_DEFINE2(opencrypto, criov, cursor_advance, vmpage, "struct crypto_buffer_cursor*", "size_t");
void
Index: sys/opencrypto/cryptodev.h
===================================================================
--- sys/opencrypto/cryptodev.h
+++ sys/opencrypto/cryptodev.h
@@ -698,6 +698,8 @@
size_t crypto_buffer_len(struct crypto_buffer *cb);
void crypto_cursor_init(struct crypto_buffer_cursor *cc,
const struct crypto_buffer *cb);
+void crypto_cursor_copy(const struct crypto_buffer_cursor *fromc,
+ struct crypto_buffer_cursor *toc);
void crypto_cursor_advance(struct crypto_buffer_cursor *cc, size_t amount);
void *crypto_cursor_segbase(struct crypto_buffer_cursor *cc);
size_t crypto_cursor_seglen(struct crypto_buffer_cursor *cc);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 7, 4:19 AM (7 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24959363
Default Alt Text
D28949.id85076.diff (1 KB)
Attached To
Mode
D28949: opencrypto: Add a routine to copy a crypto buffer cursor
Attached
Detach File
Event Timeline
Log In to Comment