RustCrypto / utils

Utility crates used in RustCrypto
428 stars 127 forks source link

Revert "hybrid-array: get rid of `check_slice_length` (#1020)" #1024

Closed tarcieri closed 8 months ago

tarcieri commented 8 months ago

This reverts commit 49e9d6869c8333522ef598c11c6f048f9475ec6c.

The extra bounds turn out to be rather problematic with e.g. crypto-common, so revert this even though check_slice_length is a hack.