mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-06 21:15:27 -05:00
chore: clippy happy (#8362)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
@@ -45,8 +45,8 @@ fn ecdh_x(public_key: &PublicKey, secret_key: &SecretKey) -> B256 {
|
||||
/// # Panics
|
||||
/// * If the `dest` is empty
|
||||
/// * If the `dest` len is greater than or equal to the hash output len * the max counter value. In
|
||||
/// this case, the hash output len is 32 bytes, and the max counter value is 2^32 - 1. So the dest
|
||||
/// cannot have a len greater than 32 * 2^32 - 1.
|
||||
/// this case, the hash output len is 32 bytes, and the max counter value is 2^32 - 1. So the dest
|
||||
/// cannot have a len greater than 32 * 2^32 - 1.
|
||||
fn kdf(secret: B256, s1: &[u8], dest: &mut [u8]) {
|
||||
concat_kdf::derive_key_into::<Sha256>(secret.as_slice(), s1, dest).unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user