Sha256: 316d65b760ffa58beb6aa678be24359eb21a744e9e143bc99c11fe1907659245

Contents?: true

Size: 285 Bytes

Versions: 8

Compression:

Stored size: 285 Bytes

Contents

#[cfg(feature = "v3")]
pub(crate) fn hash(ns: &[u8], src: &[u8]) -> [u8; 16] {
    use md5::{Digest, Md5};

    let mut hasher = Md5::new();

    hasher.update(ns);
    hasher.update(src);

    let mut bytes = [0; 16];
    bytes.copy_from_slice(&hasher.finalize()[..16]);

    bytes
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/uuid-1.12.1/src/md5.rs
wasmtime-28.0.0 ./ext/cargo-vendor/uuid-1.11.0/src/md5.rs
wasmtime-27.0.0 ./ext/cargo-vendor/uuid-1.11.0/src/md5.rs
wasmtime-26.0.0 ./ext/cargo-vendor/uuid-1.11.0/src/md5.rs
wasmtime-25.0.2 ./ext/cargo-vendor/uuid-1.10.0/src/md5.rs
wasmtime-25.0.1 ./ext/cargo-vendor/uuid-1.10.0/src/md5.rs
wasmtime-25.0.0 ./ext/cargo-vendor/uuid-1.10.0/src/md5.rs
wasmtime-24.0.0 ./ext/cargo-vendor/uuid-1.10.0/src/md5.rs