aboutsummaryrefslogtreecommitdiff
path: root/azalea-crypto/src
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-12-09 15:13:14 +0000
committerUbuntu <github@matdoes.dev>2022-12-09 15:13:14 +0000
commitca00dbab12ab7de0bba462b9814b9f491b23da69 (patch)
tree560bd906d9ca1fcb822290286e9bf5990826163a /azalea-crypto/src
parentf0097612473d20ebac21e8ae5eba32bf32c2fe42 (diff)
parent70e2dfed16da8d5130460ea15b47701e622f4a9f (diff)
downloadazalea-drasl-ca00dbab12ab7de0bba462b9814b9f491b23da69.tar.xz
Merge branch 'main' of https://github.com/mat-1/azalea into main
Diffstat (limited to 'azalea-crypto/src')
-rwxr-xr-xazalea-crypto/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-crypto/src/lib.rs b/azalea-crypto/src/lib.rs
index 484031ec..9b223f96 100755
--- a/azalea-crypto/src/lib.rs
+++ b/azalea-crypto/src/lib.rs
@@ -45,7 +45,8 @@ pub fn encrypt(public_key: &[u8], nonce: &[u8]) -> Result<EncryptResult, String>
// generate a random 16-byte shared secret, to be used with the AES/CFB8
// stream cipher.
let secret_key = generate_secret_key();
- // let hash = hex_digest(&digest_data(server_id.as_bytes(), public_key, &secret_key));
+ // let hash = hex_digest(&digest_data(server_id.as_bytes(), public_key,
+ // &secret_key));
// this.keybytes = Crypt.encryptUsingKey(publicKey, secretKey.getEncoded());
// this.nonce = Crypt.encryptUsingKey(publicKey, arrby);