| ... | @@ -16,8 +16,9 @@ const Allocator = std.mem.Allocator; | ... | @@ -16,8 +16,9 @@ const Allocator = std.mem.Allocator; |
| 16 | | 16 | |
| 17 | const base64_encoder = fs.base64_encoder; | 17 | const base64_encoder = fs.base64_encoder; |
| 18 | const base64_decoder = fs.base64_decoder; | 18 | const base64_decoder = fs.base64_decoder; |
| 19 | /// This is 128 bits - Even with 2^54 cache entries, the probably of a collision would be under 10^-6 | 19 | /// 16 would be 128 bits - Even with 2^54 cache entries, the probably of a collision would be under 10^-6 |
| 20 | const BIN_DIGEST_LEN = 16; | 20 | /// We round up to 18 to avoid the `==` padding after base64 encoding. |
| | 21 | const BIN_DIGEST_LEN = 18; |
| 21 | const BASE64_DIGEST_LEN = base64.Base64Encoder.calcSize(BIN_DIGEST_LEN); | 22 | const BASE64_DIGEST_LEN = base64.Base64Encoder.calcSize(BIN_DIGEST_LEN); |
| 22 | | 23 | |
| 23 | const MANIFEST_FILE_SIZE_MAX = 50 * 1024 * 1024; | 24 | const MANIFEST_FILE_SIZE_MAX = 50 * 1024 * 1024; |