Page MenuHomeFreeBSD

D29518.id86629.diff
No OneTemporary

D29518.id86629.diff

Index: tools/tools/crypto/cryptocheck.c
===================================================================
--- tools/tools/crypto/cryptocheck.c
+++ 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 + 16;
+ i <= EALG_MAX_BLOCK_LEN * 2; i += 16) {
+ 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

Mime Type
text/plain
Expires
Mon, Jan 27, 6:21 AM (1 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16188193
Default Alt Text
D29518.id86629.diff (891 B)

Event Timeline