Skip to main content

Crate uselesskey_core_negative_der

Crate uselesskey_core_negative_der 

Source
Expand description

Deprecated compatibility shim for DER negative fixture helpers.

Prefer uselesskey-core; DER corruption helpers are now owned by uselesskey_core::srp::negative::der.

Functionsยง

corrupt_der_deterministic
Choose a corruption strategy deterministically from variant and apply it to der.
flip_byte
XOR the byte at offset with 0x01, returning the original if offset is out of range.
truncate_der
Truncate der to at most len bytes, returning the original if already shorter.