aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorYigit Sever2021-04-14 03:27:27 +0300
committerYigit Sever2021-04-14 19:11:49 +0300
commitedfab6ae2f97a7288ff456265050c01ff397ea8c (patch)
treee98ce8b12c1ef4d61c70944f47d87d74297a8ed3 /Cargo.lock
parenta5d5ab88d3f73d0b6f5fa847df6dace90810313d (diff)
downloadgradecoin-edfab6ae2f97a7288ff456265050c01ff397ea8c.tar.gz
gradecoin-edfab6ae2f97a7288ff456265050c01ff397ea8c.tar.bz2
gradecoin-edfab6ae2f97a7288ff456265050c01ff397ea8c.zip
[WIP] Initial implementation of user auth
There is a dance involved and everything Write down specs for RSA and AES, padding scheme, ugh.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock169
1 files changed, 163 insertions, 6 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 9b91b30..03c6eb0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -22,6 +22,12 @@ dependencies = [
22 22
23[[package]] 23[[package]]
24name = "autocfg" 24name = "autocfg"
25version = "0.1.7"
26source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2"
28
29[[package]]
30name = "autocfg"
25version = "1.0.1" 31version = "1.0.1"
26source = "registry+https://github.com/rust-lang/crates.io-index" 32source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" 33checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
@@ -313,6 +319,7 @@ dependencies = [
313name = "gradecoin" 319name = "gradecoin"
314version = "0.1.0" 320version = "0.1.0"
315dependencies = [ 321dependencies = [
322 "base64 0.13.0",
316 "blake2", 323 "blake2",
317 "chrono", 324 "chrono",
318 "hex-literal", 325 "hex-literal",
@@ -322,9 +329,11 @@ dependencies = [
322 "md-5", 329 "md-5",
323 "parking_lot", 330 "parking_lot",
324 "pretty_env_logger", 331 "pretty_env_logger",
332 "rsa",
325 "serde", 333 "serde",
326 "serde_json", 334 "serde_json",
327 "serde_test", 335 "serde_test",
336 "sha2",
328 "tokio", 337 "tokio",
329 "warp", 338 "warp",
330] 339]
@@ -478,7 +487,7 @@ version = "1.6.2"
478source = "registry+https://github.com/rust-lang/crates.io-index" 487source = "registry+https://github.com/rust-lang/crates.io-index"
479checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3" 488checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3"
480dependencies = [ 489dependencies = [
481 "autocfg", 490 "autocfg 1.0.1",
482 "hashbrown", 491 "hashbrown",
483] 492]
484 493
@@ -526,7 +535,7 @@ dependencies = [
526 "ring", 535 "ring",
527 "serde", 536 "serde",
528 "serde_json", 537 "serde_json",
529 "simple_asn1", 538 "simple_asn1 0.4.1",
530] 539]
531 540
532[[package]] 541[[package]]
@@ -544,6 +553,9 @@ name = "lazy_static"
544version = "1.4.0" 553version = "1.4.0"
545source = "registry+https://github.com/rust-lang/crates.io-index" 554source = "registry+https://github.com/rust-lang/crates.io-index"
546checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 555checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
556dependencies = [
557 "spin",
558]
547 559
548[[package]] 560[[package]]
549name = "libc" 561name = "libc"
@@ -552,6 +564,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
552checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" 564checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
553 565
554[[package]] 566[[package]]
567name = "libm"
568version = "0.2.1"
569source = "registry+https://github.com/rust-lang/crates.io-index"
570checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
571
572[[package]]
555name = "lock_api" 573name = "lock_api"
556version = "0.3.4" 574version = "0.3.4"
557source = "registry+https://github.com/rust-lang/crates.io-index" 575source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -674,18 +692,58 @@ version = "0.2.6"
674source = "registry+https://github.com/rust-lang/crates.io-index" 692source = "registry+https://github.com/rust-lang/crates.io-index"
675checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" 693checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304"
676dependencies = [ 694dependencies = [
677 "autocfg", 695 "autocfg 1.0.1",
696 "num-integer",
697 "num-traits",
698]
699
700[[package]]
701name = "num-bigint"
702version = "0.3.2"
703source = "registry+https://github.com/rust-lang/crates.io-index"
704checksum = "7d0a3d5e207573f948a9e5376662aa743a2ea13f7c50a554d7af443a73fbfeba"
705dependencies = [
706 "autocfg 1.0.1",
678 "num-integer", 707 "num-integer",
679 "num-traits", 708 "num-traits",
680] 709]
681 710
682[[package]] 711[[package]]
712name = "num-bigint-dig"
713version = "0.7.0"
714source = "registry+https://github.com/rust-lang/crates.io-index"
715checksum = "4547ee5541c18742396ae2c895d0717d0f886d8823b8399cdaf7b07d63ad0480"
716dependencies = [
717 "autocfg 0.1.7",
718 "byteorder",
719 "lazy_static",
720 "libm",
721 "num-integer",
722 "num-iter",
723 "num-traits",
724 "rand 0.8.3",
725 "smallvec",
726 "zeroize",
727]
728
729[[package]]
683name = "num-integer" 730name = "num-integer"
684version = "0.1.44" 731version = "0.1.44"
685source = "registry+https://github.com/rust-lang/crates.io-index" 732source = "registry+https://github.com/rust-lang/crates.io-index"
686checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" 733checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
687dependencies = [ 734dependencies = [
688 "autocfg", 735 "autocfg 1.0.1",
736 "num-traits",
737]
738
739[[package]]
740name = "num-iter"
741version = "0.1.42"
742source = "registry+https://github.com/rust-lang/crates.io-index"
743checksum = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59"
744dependencies = [
745 "autocfg 1.0.1",
746 "num-integer",
689 "num-traits", 747 "num-traits",
690] 748]
691 749
@@ -695,7 +753,8 @@ version = "0.2.14"
695source = "registry+https://github.com/rust-lang/crates.io-index" 753source = "registry+https://github.com/rust-lang/crates.io-index"
696checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" 754checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
697dependencies = [ 755dependencies = [
698 "autocfg", 756 "autocfg 1.0.1",
757 "libm",
699] 758]
700 759
701[[package]] 760[[package]]
@@ -988,6 +1047,26 @@ dependencies = [
988] 1047]
989 1048
990[[package]] 1049[[package]]
1050name = "rsa"
1051version = "0.4.0"
1052source = "registry+https://github.com/rust-lang/crates.io-index"
1053checksum = "68ef841a26fc5d040ced0417c6c6a64ee851f42489df11cdf0218e545b6f8d28"
1054dependencies = [
1055 "byteorder",
1056 "digest",
1057 "lazy_static",
1058 "num-bigint-dig",
1059 "num-integer",
1060 "num-iter",
1061 "num-traits",
1062 "pem",
1063 "rand 0.8.3",
1064 "simple_asn1 0.5.1",
1065 "subtle",
1066 "zeroize",
1067]
1068
1069[[package]]
991name = "ryu" 1070name = "ryu"
992version = "1.0.5" 1071version = "1.0.5"
993source = "registry+https://github.com/rust-lang/crates.io-index" 1072source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1077,14 +1156,39 @@ dependencies = [
1077] 1156]
1078 1157
1079[[package]] 1158[[package]]
1159name = "sha2"
1160version = "0.9.3"
1161source = "registry+https://github.com/rust-lang/crates.io-index"
1162checksum = "fa827a14b29ab7f44778d14a88d3cb76e949c45083f7dbfa507d0cb699dc12de"
1163dependencies = [
1164 "block-buffer",
1165 "cfg-if 1.0.0",
1166 "cpuid-bool",
1167 "digest",
1168 "opaque-debug",
1169]
1170
1171[[package]]
1080name = "simple_asn1" 1172name = "simple_asn1"
1081version = "0.4.1" 1173version = "0.4.1"
1082source = "registry+https://github.com/rust-lang/crates.io-index" 1174source = "registry+https://github.com/rust-lang/crates.io-index"
1083checksum = "692ca13de57ce0613a363c8c2f1de925adebc81b04c923ac60c5488bb44abe4b" 1175checksum = "692ca13de57ce0613a363c8c2f1de925adebc81b04c923ac60c5488bb44abe4b"
1084dependencies = [ 1176dependencies = [
1085 "chrono", 1177 "chrono",
1086 "num-bigint", 1178 "num-bigint 0.2.6",
1179 "num-traits",
1180]
1181
1182[[package]]
1183name = "simple_asn1"
1184version = "0.5.1"
1185source = "registry+https://github.com/rust-lang/crates.io-index"
1186checksum = "db8d597fce66eb0f19dd129b9956e4054cba21aeaf97d4116595027b670fac50"
1187dependencies = [
1188 "chrono",
1189 "num-bigint 0.3.2",
1087 "num-traits", 1190 "num-traits",
1191 "thiserror",
1088] 1192]
1089 1193
1090[[package]] 1194[[package]]
@@ -1134,6 +1238,18 @@ dependencies = [
1134] 1238]
1135 1239
1136[[package]] 1240[[package]]
1241name = "synstructure"
1242version = "0.12.4"
1243source = "registry+https://github.com/rust-lang/crates.io-index"
1244checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
1245dependencies = [
1246 "proc-macro2",
1247 "quote",
1248 "syn",
1249 "unicode-xid",
1250]
1251
1252[[package]]
1137name = "tempfile" 1253name = "tempfile"
1138version = "3.2.0" 1254version = "3.2.0"
1139source = "registry+https://github.com/rust-lang/crates.io-index" 1255source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1157,6 +1273,26 @@ dependencies = [
1157] 1273]
1158 1274
1159[[package]] 1275[[package]]
1276name = "thiserror"
1277version = "1.0.24"
1278source = "registry+https://github.com/rust-lang/crates.io-index"
1279checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e"
1280dependencies = [
1281 "thiserror-impl",
1282]
1283
1284[[package]]
1285name = "thiserror-impl"
1286version = "1.0.24"
1287source = "registry+https://github.com/rust-lang/crates.io-index"
1288checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0"
1289dependencies = [
1290 "proc-macro2",
1291 "quote",
1292 "syn",
1293]
1294
1295[[package]]
1160name = "time" 1296name = "time"
1161version = "0.1.44" 1297version = "0.1.44"
1162source = "registry+https://github.com/rust-lang/crates.io-index" 1298source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1550,3 +1686,24 @@ dependencies = [
1550 "winapi 0.2.8", 1686 "winapi 0.2.8",
1551 "winapi-build", 1687 "winapi-build",
1552] 1688]
1689
1690[[package]]
1691name = "zeroize"
1692version = "1.2.0"
1693source = "registry+https://github.com/rust-lang/crates.io-index"
1694checksum = "81a974bcdd357f0dca4d41677db03436324d45a4c9ed2d0b873a5a360ce41c36"
1695dependencies = [
1696 "zeroize_derive",
1697]
1698
1699[[package]]
1700name = "zeroize_derive"
1701version = "1.0.1"
1702source = "registry+https://github.com/rust-lang/crates.io-index"
1703checksum = "c3f369ddb18862aba61aa49bf31e74d29f0f162dec753063200e1dc084345d16"
1704dependencies = [
1705 "proc-macro2",
1706 "quote",
1707 "syn",
1708 "synstructure",
1709]