From 881333035987867f897042df7173bb2fa05b7621 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 27 May 2023 01:57:31 -0500 Subject: random fixes mostly related to auth and crypto --- azalea-crypto/src/signing.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'azalea-crypto/src') diff --git a/azalea-crypto/src/signing.rs b/azalea-crypto/src/signing.rs index ebab4356..5ecafa46 100755 --- a/azalea-crypto/src/signing.rs +++ b/azalea-crypto/src/signing.rs @@ -82,22 +82,12 @@ pub fn sign_chat_message(opts: &SignChatMessageOptions) -> MessageSignature { // signatures of last seen messages // ... not implemented yet - // hash with sha256 and then sign with rsa - - // let mut hasher = Sha256::new(); - // hasher.update(data_to_sign.as_slice()); - // let hash = hasher.finalize(); - - // println!("hash: {:?}", hash); - let signing_key = rsa::pkcs1v15::SigningKey::::new(opts.private_key.clone()); let mut rng = rand::thread_rng(); let signature = signing_key .sign_with_rng(&mut rng, &data_to_sign) .to_bytes(); - println!("signature: {:?}", signature); - MessageSignature { bytes: signature .as_ref() -- cgit v1.2.3