Closed Fraccaman closed 9 months ago
All Digest
s should implement AsRef<[u8]>
, so you should be able to get &[u8]
through there: digest.as_ref()
.
If that doesn't work then either it's a bug, or you're on an earlier version were some Digest
s could represent MACs, so there it'd be exposed through digest.unprotected_as_bytes()
.
I'll close this for now. Feel free to re-open if there's any issue with this.
Probably I'm overseeing this, but is there a way to get a
&[u8]
from aDigest
?