Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146132781
D28752.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
682 B
Referenced Files
None
Subscribers
None
D28752.diff
View Options
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c
--- a/sys/opencrypto/cryptosoft.c
+++ b/sys/opencrypto/cryptosoft.c
@@ -537,6 +537,9 @@
}
}
+ if (crp->crp_cipher_key != NULL)
+ exf->setkey(swe->sw_kschedule, crp->crp_cipher_key,
+ crypto_get_params(crp->crp_session)->csp_cipher_klen);
exf->reinit(swe->sw_kschedule, iv);
/* Do encryption with MAC */
@@ -755,6 +758,9 @@
if (error)
return (error);
+ if (crp->crp_cipher_key != NULL)
+ exf->setkey(swe->sw_kschedule, crp->crp_cipher_key,
+ crypto_get_params(crp->crp_session)->csp_cipher_klen);
exf->reinit(swe->sw_kschedule, iv);
/* Do encryption/decryption with MAC */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 2:34 AM (18 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29092475
Default Alt Text
D28752.diff (682 B)
Attached To
Mode
D28752: cryptosoft: Support per-op keys for AES-GCM and AES-CCM.
Attached
Detach File
Event Timeline
Log In to Comment