SshMac¶
Constructors¶
create¶
Returns¶
- SshMac val^
Public Functions¶
compute_sha256¶
Parameters¶
Returns¶
compute_sha512¶
Parameters¶
Returns¶
verify¶
Constant-time equality of two MAC/tag byte strings. The loop always visits every byte (XOR-accumulate, no early return) so its timing does not reveal where a mismatch occurred — do not "optimize" it into an early return, which would reintroduce a timing oracle. Used to compare a received MAC against the locally computed one.
Parameters¶
Returns¶
- Bool val
eq¶
Parameters¶
- that: SshMac val
Returns¶
- Bool val
ne¶
Parameters¶
- that: SshMac val
Returns¶
- Bool val