Skip to main content

bcrypt_many

Function bcrypt_many 

Source
pub fn bcrypt_many(
    cost: u32,
    passwords: &[&[u8]],
    salts: &[[u8; 16]],
) -> BcryptResult<Vec<[u8; 24]>>
Expand description

Batch-hash passwords at one cost with caller-supplied salts, returning the raw 24-byte ciphertexts in input order.

This is the low-level SIMD entry point: the runtime-detected backend kernel is resolved once, then the inputs are hashed in lane-width chunks. An empty input returns an empty Vec without touching any kernel.

ยงErrors

CostNotAllowed if cost is outside 4..=31 (checked once, up front); BatchLengthMismatch if the two slices differ in length.