Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109111312
D26901.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
D26901.diff
View Options
Index: head/sys/opencrypto/crypto.c
===================================================================
--- head/sys/opencrypto/crypto.c
+++ head/sys/opencrypto/crypto.c
@@ -411,8 +411,8 @@
}
static void
-hmac_init_pad(struct auth_hash *axf, const char *key, int klen, void *auth_ctx,
- uint8_t padval)
+hmac_init_pad(const struct auth_hash *axf, const char *key, int klen,
+ void *auth_ctx, uint8_t padval)
{
uint8_t hmac_key[HMAC_MAX_BLOCK_LEN];
u_int i;
@@ -442,7 +442,7 @@
}
void
-hmac_init_ipad(struct auth_hash *axf, const char *key, int klen,
+hmac_init_ipad(const struct auth_hash *axf, const char *key, int klen,
void *auth_ctx)
{
@@ -450,7 +450,7 @@
}
void
-hmac_init_opad(struct auth_hash *axf, const char *key, int klen,
+hmac_init_opad(const struct auth_hash *axf, const char *key, int klen,
void *auth_ctx)
{
Index: head/sys/opencrypto/cryptodev.h
===================================================================
--- head/sys/opencrypto/cryptodev.h
+++ head/sys/opencrypto/cryptodev.h
@@ -683,9 +683,9 @@
/* Helper routines for drivers to initialize auth contexts for HMAC. */
struct auth_hash;
-void hmac_init_ipad(struct auth_hash *axf, const char *key, int klen,
+void hmac_init_ipad(const struct auth_hash *axf, const char *key, int klen,
void *auth_ctx);
-void hmac_init_opad(struct auth_hash *axf, const char *key, int klen,
+void hmac_init_opad(const struct auth_hash *axf, const char *key, int klen,
void *auth_ctx);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 10:46 PM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16391787
Default Alt Text
D26901.diff (1 KB)
Attached To
Mode
D26901: cryptodev: Annotate hmac_init_(i|o)pad() to use a const auth_hash
Attached
Detach File
Event Timeline
Log In to Comment