summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto/cryptosoft.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/opencrypto/cryptosoft.h')
-rw-r--r--sys/opencrypto/cryptosoft.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/opencrypto/cryptosoft.h b/sys/opencrypto/cryptosoft.h
index bf13852..056e137 100644
--- a/sys/opencrypto/cryptosoft.h
+++ b/sys/opencrypto/cryptosoft.h
@@ -32,7 +32,8 @@ struct swcr_data {
struct {
u_int8_t *SW_ictx;
u_int8_t *SW_octx;
- u_int32_t SW_klen;
+ u_int16_t SW_klen;
+ u_int16_t SW_mlen;
struct auth_hash *SW_axf;
} SWCR_AUTH;
struct {
@@ -48,6 +49,7 @@ struct swcr_data {
#define sw_ictx SWCR_UN.SWCR_AUTH.SW_ictx
#define sw_octx SWCR_UN.SWCR_AUTH.SW_octx
#define sw_klen SWCR_UN.SWCR_AUTH.SW_klen
+#define sw_mlen SWCR_UN.SWCR_AUTH.SW_mlen
#define sw_axf SWCR_UN.SWCR_AUTH.SW_axf
#define sw_kschedule SWCR_UN.SWCR_ENC.SW_kschedule
#define sw_exf SWCR_UN.SWCR_ENC.SW_exf
@@ -58,8 +60,8 @@ struct swcr_data {
};
#ifdef _KERNEL
-extern u_int8_t hmac_ipad_buffer[64];
-extern u_int8_t hmac_opad_buffer[64];
+extern u_int8_t *hmac_ipad_buffer;
+extern u_int8_t *hmac_opad_buffer;
#endif /* _KERNEL */
#endif /* _CRYPTO_CRYPTO_H_ */
OpenPOWER on IntegriCloud