subtle
subtle copied to clipboard
Implement string comparison
This PR implements ConstantTimeEq
for str
.
I've added a note similar to the one for slices.
I'm interested in this change. Is there anything blocking it?
The workaround is very simple, just call as_bytes()
and then ct_eq()
.