Files
rustcrypto-hashes/fsb
Artyom Pavlov 5be967d2e8
Some checks failed
Security Audit / Security Audit (push) Has been cancelled
ascon-hash / set-msrv (push) Has been cancelled
ascon-hash / minimal-versions (push) Has been cancelled
belt-hash / set-msrv (push) Has been cancelled
belt-hash / minimal-versions (push) Has been cancelled
blake2 / set-msrv (push) Has been cancelled
blake2 / minimal-versions (push) Has been cancelled
fsb / set-msrv (push) Has been cancelled
gost94 / set-msrv (push) Has been cancelled
gost94 / minimal-versions (push) Has been cancelled
groestl / set-msrv (push) Has been cancelled
groestl / minimal-versions (push) Has been cancelled
jh / set-msrv (push) Has been cancelled
jh / minimal-versions (push) Has been cancelled
k12 / set-msrv (push) Has been cancelled
kupyna / set-msrv (push) Has been cancelled
kupyna / minimal-versions (push) Has been cancelled
md2 / set-msrv (push) Has been cancelled
md2 / minimal-versions (push) Has been cancelled
md4 / set-msrv (push) Has been cancelled
md4 / minimal-versions (push) Has been cancelled
md5 / set-msrv (push) Has been cancelled
md5 / minimal-versions (push) Has been cancelled
ripemd / set-msrv (push) Has been cancelled
ripemd / minimal-versions (push) Has been cancelled
sha1-checked / set-msrv (push) Has been cancelled
sha1 / set-msrv (push) Has been cancelled
sha1 / minimal-versions (push) Has been cancelled
sha2 / set-msrv (push) Has been cancelled
sha2 / riscv64-zknh (push) Has been cancelled
sha2 / riscv32-zknh (push) Has been cancelled
sha2 / minimal-versions (push) Has been cancelled
sha3 / set-msrv (push) Has been cancelled
sha3 / minimal-versions (push) Has been cancelled
shabal / set-msrv (push) Has been cancelled
shabal / minimal-versions (push) Has been cancelled
skein / set-msrv (push) Has been cancelled
skein / minimal-versions (push) Has been cancelled
sm3 / set-msrv (push) Has been cancelled
sm3 / minimal-versions (push) Has been cancelled
streebog / set-msrv (push) Has been cancelled
streebog / minimal-versions (push) Has been cancelled
tiger / set-msrv (push) Has been cancelled
tiger / minimal-versions (push) Has been cancelled
whirlpool / set-msrv (push) Has been cancelled
whirlpool / minimal-versions (push) Has been cancelled
Workspace / clippy (push) Has been cancelled
Workspace / rustfmt (push) Has been cancelled
Workspace / typos (push) Has been cancelled
ascon-hash / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
ascon-hash / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
ascon-hash / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
ascon-hash / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
ascon-hash / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
ascon-hash / test (stable) (push) Has been cancelled
belt-hash / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
belt-hash / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
belt-hash / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
belt-hash / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
belt-hash / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
belt-hash / test (stable) (push) Has been cancelled
blake2 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
blake2 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
blake2 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
blake2 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
blake2 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
blake2 / test (stable) (push) Has been cancelled
blake2 / cross (default, ${{needs.set-msrv.outputs.msrv}}, aarch64-unknown-linux-gnu) (push) Has been cancelled
blake2 / cross (default, ${{needs.set-msrv.outputs.msrv}}, powerpc-unknown-linux-gnu) (push) Has been cancelled
blake2 / cross (default, stable, aarch64-unknown-linux-gnu) (push) Has been cancelled
blake2 / cross (default, stable, powerpc-unknown-linux-gnu) (push) Has been cancelled
fsb / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
fsb / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
fsb / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
fsb / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
fsb / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
fsb / test (stable) (push) Has been cancelled
gost94 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
gost94 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
gost94 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
gost94 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
gost94 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
gost94 / test (stable) (push) Has been cancelled
groestl / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
groestl / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
groestl / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
groestl / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
groestl / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
groestl / test (stable) (push) Has been cancelled
jh / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
jh / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
jh / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
jh / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
jh / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
jh / test (stable) (push) Has been cancelled
k12 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
k12 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
k12 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
k12 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
k12 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
k12 / test (stable) (push) Has been cancelled
kupyna / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
kupyna / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
kupyna / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
kupyna / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
kupyna / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
kupyna / test (stable) (push) Has been cancelled
kupyna / cross (default, ${{needs.set-msrv.outputs.msrv}}, aarch64-unknown-linux-gnu) (push) Has been cancelled
kupyna / cross (default, ${{needs.set-msrv.outputs.msrv}}, powerpc-unknown-linux-gnu) (push) Has been cancelled
kupyna / cross (default, stable, aarch64-unknown-linux-gnu) (push) Has been cancelled
kupyna / cross (default, stable, powerpc-unknown-linux-gnu) (push) Has been cancelled
md2 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
md2 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
md2 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
md2 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
md2 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
md2 / test (stable) (push) Has been cancelled
md4 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
md4 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
md4 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
md4 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
md4 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
md4 / test (stable) (push) Has been cancelled
md5 / build (${{needs.set-msrv.outputs.msrv}}, loongarch64-unknown-linux-gnu) (push) Has been cancelled
md5 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
md5 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
md5 / build (stable, loongarch64-unknown-linux-gnu) (push) Has been cancelled
md5 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
md5 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
md5 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
md5 / test (stable) (push) Has been cancelled
ripemd / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
ripemd / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
ripemd / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
ripemd / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
ripemd / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
ripemd / test (stable) (push) Has been cancelled
sha1-checked / build (${{needs.set-msrv.outputs.msrv}}, loongarch64-unknown-linux-gnu) (push) Has been cancelled
sha1-checked / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
sha1-checked / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
sha1-checked / build (stable, loongarch64-unknown-linux-gnu) (push) Has been cancelled
sha1-checked / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
sha1-checked / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
sha1-checked / linux (${{needs.set-msrv.outputs.msrv}}, x86_64-unknown-linux-gnu) (push) Has been cancelled
sha1-checked / linux (stable, x86_64-unknown-linux-gnu) (push) Has been cancelled
sha1-checked / macos (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha1-checked / macos (stable) (push) Has been cancelled
sha1-checked / windows (x86_64-pc-windows-gnu, ${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha1-checked / windows (x86_64-pc-windows-gnu, stable) (push) Has been cancelled
sha1-checked / cross (default, ${{needs.set-msrv.outputs.msrv}}, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha1-checked / cross (default, ${{needs.set-msrv.outputs.msrv}}, powerpc-unknown-linux-gnu) (push) Has been cancelled
sha1-checked / cross (default, stable, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha1-checked / cross (default, stable, powerpc-unknown-linux-gnu) (push) Has been cancelled
sha1 / build (${{needs.set-msrv.outputs.msrv}}, loongarch64-unknown-linux-gnu) (push) Has been cancelled
sha1 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
sha1 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
sha1 / build (stable, loongarch64-unknown-linux-gnu) (push) Has been cancelled
sha1 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
sha1 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
sha1 / linux (${{needs.set-msrv.outputs.msrv}}, x86_64-unknown-linux-gnu) (push) Has been cancelled
sha1 / linux (stable, x86_64-unknown-linux-gnu) (push) Has been cancelled
sha1 / macos (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha1 / macos (stable) (push) Has been cancelled
sha1 / windows (x86_64-pc-windows-gnu, ${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha1 / windows (x86_64-pc-windows-gnu, stable) (push) Has been cancelled
sha1 / cross (default, ${{needs.set-msrv.outputs.msrv}}, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha1 / cross (default, ${{needs.set-msrv.outputs.msrv}}, powerpc-unknown-linux-gnu) (push) Has been cancelled
sha1 / cross (default, stable, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha1 / cross (default, stable, powerpc-unknown-linux-gnu) (push) Has been cancelled
sha2 / build (${{needs.set-msrv.outputs.msrv}}, loongarch64-unknown-linux-gnu) (push) Has been cancelled
sha2 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
sha2 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
sha2 / build (stable, loongarch64-unknown-linux-gnu) (push) Has been cancelled
sha2 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
sha2 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
sha2 / linux (${{needs.set-msrv.outputs.msrv}}, x86_64-unknown-linux-gnu) (push) Has been cancelled
sha2 / linux (stable, x86_64-unknown-linux-gnu) (push) Has been cancelled
sha2 / linux (sudo apt update && sudo apt install gcc-multilib, ${{needs.set-msrv.outputs.msrv}}, i686-unknown-linux-gnu) (push) Has been cancelled
sha2 / linux (sudo apt update && sudo apt install gcc-multilib, stable, i686-unknown-linux-gnu) (push) Has been cancelled
sha2 / macos (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha2 / macos (stable) (push) Has been cancelled
sha2 / windows (${{needs.set-msrv.outputs.msrv}}, x86_64-pc-windows-gnu) (push) Has been cancelled
sha2 / windows (stable, x86_64-pc-windows-gnu) (push) Has been cancelled
sha2 / cross (default, ${{needs.set-msrv.outputs.msrv}}, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha2 / cross (default, ${{needs.set-msrv.outputs.msrv}}, powerpc-unknown-linux-gnu) (push) Has been cancelled
sha2 / cross (default, stable, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha2 / cross (default, stable, powerpc-unknown-linux-gnu) (push) Has been cancelled
sha2 / wasm (-C target-feature=+simd128, ${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha2 / wasm (-C target-feature=+simd128, stable) (push) Has been cancelled
sha2 / wasm (-C target-feature=-simd128, ${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha2 / wasm (-C target-feature=-simd128, stable) (push) Has been cancelled
sha3 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
sha3 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
sha3 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
sha3 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
sha3 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sha3 / test (stable) (push) Has been cancelled
sha3 / cross (default, ${{needs.set-msrv.outputs.msrv}}, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha3 / cross (default, ${{needs.set-msrv.outputs.msrv}}, powerpc-unknown-linux-gnu) (push) Has been cancelled
sha3 / cross (default, stable, aarch64-unknown-linux-gnu) (push) Has been cancelled
sha3 / cross (default, stable, powerpc-unknown-linux-gnu) (push) Has been cancelled
shabal / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
shabal / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
shabal / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
shabal / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
shabal / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
shabal / test (stable) (push) Has been cancelled
skein / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
skein / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
skein / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
skein / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
skein / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
skein / test (stable) (push) Has been cancelled
sm3 / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
sm3 / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
sm3 / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
sm3 / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
sm3 / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
sm3 / test (stable) (push) Has been cancelled
streebog / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
streebog / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
streebog / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
streebog / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
streebog / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
streebog / test (stable) (push) Has been cancelled
tiger / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
tiger / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
tiger / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
tiger / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
tiger / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
tiger / test (stable) (push) Has been cancelled
whirlpool / build (${{needs.set-msrv.outputs.msrv}}, thumbv7em-none-eabi) (push) Has been cancelled
whirlpool / build (${{needs.set-msrv.outputs.msrv}}, wasm32-unknown-unknown) (push) Has been cancelled
whirlpool / build (stable, thumbv7em-none-eabi) (push) Has been cancelled
whirlpool / build (stable, wasm32-unknown-unknown) (push) Has been cancelled
whirlpool / test (${{needs.set-msrv.outputs.msrv}}) (push) Has been cancelled
whirlpool / test (stable) (push) Has been cancelled
Migrate to the new blobby format (#725)
2025-09-05 18:31:22 +03:00
..
2025-05-26 05:44:46 +03:00
2021-07-18 15:07:06 -07:00
2025-09-02 16:05:20 -06:00
2025-02-24 17:05:18 +03:00

RustCrypto: FSB

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of the FSB cryptographic hash algorithms.

There are 5 standard versions of the FSB hash function:

  • FSB-160
  • FSB-224
  • FSB-256
  • FSB-384
  • FSB-512

Examples

Output size of FSB-256 is fixed, so its functionality is usually accessed via the Digest trait:

use fsb::{Digest, Fsb256};
use hex_literal::hex;

let mut hasher = Fsb256::new();
hasher.update(b"hello");
let hash = hasher.finalize();

assert_eq!(hash, hex!("0f036dc3761aed2cba9de586a85976eedde6fa8f115c0190763decc02f28edbc"));

// Hex-encode hash using https://docs.rs/base16ct
let hex_hash = base16ct::lower::encode_string(&hash);
assert_eq!(hex_hash, "0f036dc3761aed2cba9de586a85976eedde6fa8f115c0190763decc02f28edbc");

Also, see the examples section in the RustCrypto/hashes readme.

License

The crate is licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.