chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

27
vendor/hkdf/benches/mod.rs vendored Normal file
View File

@@ -0,0 +1,27 @@
#![feature(test)]
extern crate test;
use test::Bencher;
type HkdfSha256 = hkdf::Hkdf<sha2::Sha256>;
#[bench]
fn hkdf_sha256_10(b: &mut Bencher) {
let mut okm = vec![0u8; 10];
b.iter(|| HkdfSha256::new(Some(&[]), &[]).expand(&[], &mut okm));
b.bytes = okm.len() as u64;
}
#[bench]
fn hkdf_sha256_1024(b: &mut Bencher) {
let mut okm = vec![0u8; 1024];
b.iter(|| HkdfSha256::new(Some(&[]), &[]).expand(&[], &mut okm));
b.bytes = okm.len() as u64;
}
#[bench]
fn hkdf_sha256_8000(b: &mut Bencher) {
let mut okm = vec![0u8; 8000];
b.iter(|| HkdfSha256::new(Some(&[]), &[]).expand(&[], &mut okm));
b.bytes = okm.len() as u64;
}