Remove crypto::bcrypt functions

This commit is contained in:
Tobie Morgan Hitchcock 2022-02-22 16:34:09 +00:00
parent c28057f8ef
commit cf707bf5e3
3 changed files with 0 additions and 19 deletions

View file

@ -67,21 +67,6 @@ pub mod argon2 {
}
}
pub mod bcrypt {
use crate::dbs::Runtime;
use crate::err::Error;
use crate::sql::value::Value;
pub fn cmp(_: &Runtime, _args: Vec<Value>) -> Result<Value, Error> {
todo!()
}
pub fn gen(_: &Runtime, _args: Vec<Value>) -> Result<Value, Error> {
todo!()
}
}
pub mod pbkdf2 {
use crate::dbs::Runtime;

View file

@ -41,8 +41,6 @@ pub async fn run(ctx: &Runtime, name: &String, args: Vec<Value>) -> Result<Value
"crypto::sha512" => args::check(ctx, name, args, Args::One, crypto::sha512),
"crypto::argon2::compare" => args::check(ctx, name, args, Args::Two, crypto::argon2::cmp),
"crypto::argon2::generate" => args::check(ctx, name, args, Args::One, crypto::argon2::gen),
"crypto::bcrypt::compare" => args::check(ctx, name, args, Args::Two, crypto::bcrypt::cmp),
"crypto::bcrypt::generate" => args::check(ctx, name, args, Args::One, crypto::bcrypt::gen),
"crypto::pbkdf2::compare" => args::check(ctx, name, args, Args::Two, crypto::pbkdf2::cmp),
"crypto::pbkdf2::generate" => args::check(ctx, name, args, Args::One, crypto::pbkdf2::gen),
"crypto::scrypt::compare" => args::check(ctx, name, args, Args::Two, crypto::scrypt::cmp),

View file

@ -185,8 +185,6 @@ fn function_crypto(i: &str) -> IResult<&str, &str> {
tag("crypto::sha512"),
tag("crypto::argon2::compare"),
tag("crypto::argon2::generate"),
tag("crypto::bcrypt::compare"),
tag("crypto::bcrypt::generate"),
tag("crypto::pbkdf2::compare"),
tag("crypto::pbkdf2::generate"),
tag("crypto::scrypt::compare"),