Expand description
Generic negative-fixture helpers (corrupt PEM, truncate DER, etc.).
Enums§
- Corrupt
Pem - Strategies for corrupting PEM-encoded data.
Functions§
- corrupt_
der_ deterministic - Choose a corruption strategy deterministically from
variantand apply it toder. - corrupt_
pem - Apply a specific
CorruptPemcorruption strategy to the given PEM string. - corrupt_
pem_ deterministic - Choose a corruption strategy deterministically from
variantand apply it topem. - flip_
byte - XOR the byte at
offsetwith0x01, returning the original ifoffsetis out of range. - truncate_
der - Truncate
derto at mostlenbytes, returning the original if already shorter.