Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108429181
D29518.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
867 B
Referenced Files
None
Subscribers
None
D29518.id.diff
View Options
diff --git a/tools/tools/crypto/cryptocheck.c b/tools/tools/crypto/cryptocheck.c
--- a/tools/tools/crypto/cryptocheck.c
+++ b/tools/tools/crypto/cryptocheck.c
@@ -228,7 +228,7 @@
static bool verbose;
static int requested_crid;
-static size_t aad_sizes[48], sizes[128];
+static size_t aad_sizes[48], sizes[EALG_MAX_BLOCK_LEN * 2];
static u_int naad_sizes, nsizes;
static void
@@ -1729,12 +1729,18 @@
if (nsizes == 0) {
if (testall) {
- for (i = 1; i <= 32; i++) {
+ for (i = 1; i <= EALG_MAX_BLOCK_LEN; i++) {
sizes[nsizes] = i;
nsizes++;
}
- base_size = 32;
+ for (i = EALG_MAX_BLOCK_LEN + 8;
+ i <= EALG_MAX_BLOCK_LEN * 2; i += 8) {
+ sizes[nsizes] = i;
+ nsizes++;
+ }
+
+ base_size = EALG_MAX_BLOCK_LEN * 2;
while (base_size * 2 < 240 * 1024) {
base_size *= 2;
assert(nsizes < nitems(sizes));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 5:16 PM (17 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16154977
Default Alt Text
D29518.id.diff (867 B)
Attached To
Mode
D29518: cryptocheck: Expand the set of sizes tested by -z.
Attached
Detach File
Event Timeline
Log In to Comment