1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Scalar-first codec/checksum implementations (D.5).
//!
//! These are safe (no `unsafe`), always-available, and work on every platform.
//! They are BOTH the default path AND the correctness oracle: any SIMD (D.6) or
//! assembly (D.7) variant added behind a feature flag must produce byte-for-byte
//! identical output, proven against these in equivalence tests.
use Engine as _;
/// base64 STANDARD encode (the alphabet UDB's SQL/object cells use).
/// base64 STANDARD decode.
/// CRC-32/ISO-HDLC (reflected, poly `0xEDB88320`) — a NON-cryptographic checksum
/// for object-chunk integrity only. Security/audit hashes stay on `sha2`; never
/// substitute this for those (D.6 rule).