Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147785093
D22364.1784363714.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22364.1784363714.diff
View Options
Index: sys/opencrypto/cryptosoft.c
===================================================================
--- sys/opencrypto/cryptosoft.c
+++ sys/opencrypto/cryptosoft.c
@@ -327,8 +327,8 @@
axf = sw->sw_axf;
+ csp = crypto_get_params(crp->crp_session);
if (crp->crp_auth_key != NULL) {
- csp = crypto_get_params(crp->crp_session);
swcr_authprepare(axf, sw, crp->crp_auth_key,
csp->csp_auth_klen);
}
@@ -354,6 +354,9 @@
if (err)
return err;
+ if (csp->csp_flags & CSP_F_ESN)
+ axf->Update(&ctx, crp->crp_esn, 4);
+
switch (axf->type) {
case CRYPTO_SHA1:
case CRYPTO_SHA2_224:
@@ -1258,12 +1261,12 @@
return (true);
}
+#define SUPPORTED_SES (CSP_F_SEPARATE_OUTPUT | CSP_F_SEPARATE_AAD | CSP_F_ESN)
+
static int
swcr_probesession(device_t dev, const struct crypto_session_params *csp)
{
-
- if ((csp->csp_flags & ~(CSP_F_SEPARATE_OUTPUT | CSP_F_SEPARATE_AAD)) !=
- 0)
+ if ((csp->csp_flags & ~(SUPPORTED_SES)) != 0)
return (EINVAL);
switch (csp->csp_mode) {
case CSP_MODE_COMPRESS:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 8:35 AM (3 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29181508
Default Alt Text
D22364.1784363714.diff (1 KB)
Attached To
Mode
D22364: Add support for ESN in cryptosoft
Attached
Detach File
Event Timeline
Log In to Comment