Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105815398
D30137.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
895 B
Referenced Files
None
Subscribers
None
D30137.diff
View Options
diff --git a/sys/opencrypto/ktls_ocf.c b/sys/opencrypto/ktls_ocf.c
--- a/sys/opencrypto/ktls_ocf.c
+++ b/sys/opencrypto/ktls_ocf.c
@@ -416,11 +416,11 @@
/* Duplicate iovec and append vector for tag. */
memcpy(iov, tag_uio->uio_iov, outiovcnt * sizeof(struct iovec));
iov[outiovcnt].iov_base = trailer;
- iov[outiovcnt].iov_len = AES_GMAC_HASH_LEN;
+ iov[outiovcnt].iov_len = tls->params.tls_tlen;
tag_uio->uio_iov = iov;
tag_uio->uio_iovcnt++;
crp.crp_digest_start = tag_uio->uio_resid;
- tag_uio->uio_resid += AES_GMAC_HASH_LEN;
+ tag_uio->uio_resid += tls->params.tls_tlen;
crp.crp_op = CRYPTO_OP_ENCRYPT | CRYPTO_OP_COMPUTE_DIGEST;
crp.crp_flags = CRYPTO_F_CBIMM | CRYPTO_F_IV_SEPARATE;
@@ -505,7 +505,7 @@
error = ktls_ocf_dispatch(os, &crp);
crypto_destroyreq(&crp);
- *trailer_len = AES_GMAC_HASH_LEN;
+ *trailer_len = tls->params.tls_tlen;
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 2:48 AM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15550108
Default Alt Text
D30137.diff (895 B)
Attached To
Mode
D30137: ktls_ocf: Fix a few places to not hardcode the GMAC hash length.
Attached
Detach File
Event Timeline
Log In to Comment