diff options
author | Yigit Sever | 2021-04-15 13:35:06 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-15 13:35:06 +0300 |
commit | 77b99f7d3a8747f562f2b8f1e8df551aafea1b28 (patch) | |
tree | 8c02f0fc3e463439f5d05653a3f1052caa2138ed /src/handlers.rs | |
parent | cd6839a3c6596f5e4197c6696b95efbf0c76d2ca (diff) | |
download | gradecoin-77b99f7d3a8747f562f2b8f1e8df551aafea1b28.tar.gz gradecoin-77b99f7d3a8747f562f2b8f1e8df551aafea1b28.tar.bz2 gradecoin-77b99f7d3a8747f562f2b8f1e8df551aafea1b28.zip |
Remove lorems and inpsumses
Diffstat (limited to 'src/handlers.rs')
-rw-r--r-- | src/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs index 7135190..5110bd5 100644 --- a/src/handlers.rs +++ b/src/handlers.rs | |||
@@ -110,7 +110,7 @@ pub async fn authenticate_user( | |||
110 | .expect("failed to decrypt"); | 110 | .expect("failed to decrypt"); |
111 | 111 | ||
112 | // decrypt c using key dec_key | 112 | // decrypt c using key dec_key |
113 | let cipher = Aes128Cbc::new_var(&temp_key, &request.iv).unwrap(); | 113 | let cipher = Aes128Cbc::new_var(&temp_key, &request.iv.as_bytes()).unwrap(); |
114 | let auth_plaintext = cipher | 114 | let auth_plaintext = cipher |
115 | .decrypt_vec(&base64::decode(request.c).unwrap()) | 115 | .decrypt_vec(&base64::decode(request.c).unwrap()) |
116 | .unwrap(); | 116 | .unwrap(); |