create remaining single binaries
This commit is contained in:
parent
60c2afe39e
commit
7c49d799f3
50 changed files with 450 additions and 0 deletions
9
src/bin/asconsum.rs
Normal file
9
src/bin/asconsum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_ascon;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_ascon as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/beltsum.rs
Normal file
9
src/bin/beltsum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_belt;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_belt as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/blake2b512sum.rs
Normal file
9
src/bin/blake2b512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_blake2b512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_blake2b512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/blake2s256sum.rs
Normal file
9
src/bin/blake2s256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_blake2s256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_blake2s256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/blake3sum.rs
Normal file
9
src/bin/blake3sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_blake3;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_blake3 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/fsb160sum.rs
Normal file
9
src/bin/fsb160sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_fsb160;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_fsb160 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/fsb224sum.rs
Normal file
9
src/bin/fsb224sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_fsb224;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_fsb224 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/fsb256sum.rs
Normal file
9
src/bin/fsb256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_fsb256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_fsb256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/fsb384sum.rs
Normal file
9
src/bin/fsb384sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_fsb384;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_fsb384 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/fsb512sum.rs
Normal file
9
src/bin/fsb512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_fsb512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_fsb512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/gost94sum.rs
Normal file
9
src/bin/gost94sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_gost94;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_gost94 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/groestl224sum.rs
Normal file
9
src/bin/groestl224sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_groestl224;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_groestl224 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/groestl256sum.rs
Normal file
9
src/bin/groestl256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_groestl256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_groestl256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/groestl384sum.rs
Normal file
9
src/bin/groestl384sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_groestl384;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_groestl384 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/groestl512sum.rs
Normal file
9
src/bin/groestl512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_groestl512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_groestl512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/jh224sum.rs
Normal file
9
src/bin/jh224sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_jh224;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_jh224 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/jh256sum.rs
Normal file
9
src/bin/jh256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_jh256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_jh256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/jh384sum.rs
Normal file
9
src/bin/jh384sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_jh384;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_jh384 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/jh512sum.rs
Normal file
9
src/bin/jh512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_jh512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_jh512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/k12sum.rs
Normal file
9
src/bin/k12sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_k12;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_k12 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/md2sum.rs
Normal file
9
src/bin/md2sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_md2;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_md2 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/md4sum.rs
Normal file
9
src/bin/md4sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_md4;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_md4 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/md5sum.rs
Normal file
9
src/bin/md5sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_md5;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_md5 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/ripemd128sum.rs
Normal file
9
src/bin/ripemd128sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_ripemd128;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_ripemd128 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/ripemd160sum.rs
Normal file
9
src/bin/ripemd160sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_ripemd160;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_ripemd160 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/ripemd256sum.rs
Normal file
9
src/bin/ripemd256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_ripemd256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_ripemd256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/ripemd320sum.rs
Normal file
9
src/bin/ripemd320sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_ripemd320;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_ripemd320 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha1sum.rs
Normal file
9
src/bin/sha1sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha1;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha1 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha224sum.rs
Normal file
9
src/bin/sha224sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha224;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha224 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha384sum.rs
Normal file
9
src/bin/sha384sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha384;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha384 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha3_224sum.rs
Normal file
9
src/bin/sha3_224sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha3_224;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha3_224 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha3_256sum.rs
Normal file
9
src/bin/sha3_256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha3_256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha3_256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha3_384sum.rs
Normal file
9
src/bin/sha3_384sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha3_384;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha3_384 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha3_512sum.rs
Normal file
9
src/bin/sha3_512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha3_512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha3_512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sha512sum.rs
Normal file
9
src/bin/sha512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sha512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sha512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/shabal192sum.rs
Normal file
9
src/bin/shabal192sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_shabal192;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_shabal192 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/shabal224sum.rs
Normal file
9
src/bin/shabal224sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_shabal224;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_shabal224 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/shabal256sum.rs
Normal file
9
src/bin/shabal256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_shabal256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_shabal256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/shabal384sum.rs
Normal file
9
src/bin/shabal384sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_shabal384;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_shabal384 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/shabal512sum.rs
Normal file
9
src/bin/shabal512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_shabal512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_shabal512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/shake128sum.rs
Normal file
9
src/bin/shake128sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_shake128;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_shake128 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/shake256sum.rs
Normal file
9
src/bin/shake256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_shake256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_shake256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/skein1024sum.rs
Normal file
9
src/bin/skein1024sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_skein1024;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_skein1024 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/skein256sum.rs
Normal file
9
src/bin/skein256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_skein256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_skein256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/skein512sum.rs
Normal file
9
src/bin/skein512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_skein512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_skein512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/sm3sum.rs
Normal file
9
src/bin/sm3sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_sm3;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_sm3 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/streebog256sum.rs
Normal file
9
src/bin/streebog256sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_streebog256;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_streebog256 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/streebog512sum.rs
Normal file
9
src/bin/streebog512sum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_streebog512;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_streebog512 as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/tigersum.rs
Normal file
9
src/bin/tigersum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_tiger;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_tiger as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
9
src/bin/whirlpoolsum.rs
Normal file
9
src/bin/whirlpoolsum.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use picca::core::hashers::hash_whirlpool;
|
||||||
|
|
||||||
|
#[quit::main]
|
||||||
|
fn main() {
|
||||||
|
let args = picca::Args::parse();
|
||||||
|
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
|
||||||
|
let hasher = hash_whirlpool as fn(Option<File>, Option<String>) -> String;
|
||||||
|
picca::main!(args, algorithm, true, hasher);
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue