summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-04-14 03:27:27 +0300
committerYigit Sever2021-04-14 19:12:51 +0300
commitecddd94e0baa490dbbd3562ff59eb180bddfbef3 (patch)
tree4ab370494b6286de23ea2f1b29de9f894fb0a323
parent9539dfc394e44f1872aa079a0c828621446a4011 (diff)
downloadgradecoin-ecddd94e0baa490dbbd3562ff59eb180bddfbef3.tar.gz
gradecoin-ecddd94e0baa490dbbd3562ff59eb180bddfbef3.tar.bz2
gradecoin-ecddd94e0baa490dbbd3562ff59eb180bddfbef3.zip
[WIP] Initial implementation of user auth
There is a dance involved and everything Write down specs for RSA and AES, padding scheme, ugh.
-rw-r--r--Cargo.lock57
-rw-r--r--src/schema.rs2
2 files changed, 28 insertions, 31 deletions
diff --git a/Cargo.lock b/Cargo.lock
index fa69ae2..b548774 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -279,9 +279,9 @@ checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
279 279
280[[package]] 280[[package]]
281name = "futures" 281name = "futures"
282version = "0.3.13" 282version = "0.3.14"
283source = "registry+https://github.com/rust-lang/crates.io-index" 283source = "registry+https://github.com/rust-lang/crates.io-index"
284checksum = "7f55667319111d593ba876406af7c409c0ebb44dc4be6132a783ccf163ea14c1" 284checksum = "a9d5813545e459ad3ca1bff9915e9ad7f1a47dc6a91b627ce321d5863b7dd253"
285dependencies = [ 285dependencies = [
286 "futures-channel", 286 "futures-channel",
287 "futures-core", 287 "futures-core",
@@ -293,9 +293,9 @@ dependencies = [
293 293
294[[package]] 294[[package]]
295name = "futures-channel" 295name = "futures-channel"
296version = "0.3.13" 296version = "0.3.14"
297source = "registry+https://github.com/rust-lang/crates.io-index" 297source = "registry+https://github.com/rust-lang/crates.io-index"
298checksum = "8c2dd2df839b57db9ab69c2c9d8f3e8c81984781937fe2807dc6dcf3b2ad2939" 298checksum = "ce79c6a52a299137a6013061e0cf0e688fce5d7f1bc60125f520912fdb29ec25"
299dependencies = [ 299dependencies = [
300 "futures-core", 300 "futures-core",
301 "futures-sink", 301 "futures-sink",
@@ -303,33 +303,33 @@ dependencies = [
303 303
304[[package]] 304[[package]]
305name = "futures-core" 305name = "futures-core"
306version = "0.3.13" 306version = "0.3.14"
307source = "registry+https://github.com/rust-lang/crates.io-index" 307source = "registry+https://github.com/rust-lang/crates.io-index"
308checksum = "15496a72fabf0e62bdc3df11a59a3787429221dd0710ba8ef163d6f7a9112c94" 308checksum = "098cd1c6dda6ca01650f1a37a794245eb73181d0d4d4e955e2f3c37db7af1815"
309 309
310[[package]] 310[[package]]
311name = "futures-io" 311name = "futures-io"
312version = "0.3.13" 312version = "0.3.14"
313source = "registry+https://github.com/rust-lang/crates.io-index" 313source = "registry+https://github.com/rust-lang/crates.io-index"
314checksum = "d71c2c65c57704c32f5241c1223167c2c3294fd34ac020c807ddbe6db287ba59" 314checksum = "365a1a1fb30ea1c03a830fdb2158f5236833ac81fa0ad12fe35b29cddc35cb04"
315 315
316[[package]] 316[[package]]
317name = "futures-sink" 317name = "futures-sink"
318version = "0.3.13" 318version = "0.3.14"
319source = "registry+https://github.com/rust-lang/crates.io-index" 319source = "registry+https://github.com/rust-lang/crates.io-index"
320checksum = "85754d98985841b7d4f5e8e6fbfa4a4ac847916893ec511a2917ccd8525b8bb3" 320checksum = "5c5629433c555de3d82861a7a4e3794a4c40040390907cfbfd7143a92a426c23"
321 321
322[[package]] 322[[package]]
323name = "futures-task" 323name = "futures-task"
324version = "0.3.13" 324version = "0.3.14"
325source = "registry+https://github.com/rust-lang/crates.io-index" 325source = "registry+https://github.com/rust-lang/crates.io-index"
326checksum = "fa189ef211c15ee602667a6fcfe1c1fd9e07d42250d2156382820fba33c9df80" 326checksum = "ba7aa51095076f3ba6d9a1f702f74bd05ec65f555d70d2033d55ba8d69f581bc"
327 327
328[[package]] 328[[package]]
329name = "futures-util" 329name = "futures-util"
330version = "0.3.13" 330version = "0.3.14"
331source = "registry+https://github.com/rust-lang/crates.io-index" 331source = "registry+https://github.com/rust-lang/crates.io-index"
332checksum = "1812c7ab8aedf8d6f2701a43e1243acdbcc2b36ab26e2ad421eb99ac963d96d1" 332checksum = "3c144ad54d60f23927f0a6b6d816e4271278b64f005ad65e4e35291d2de9c025"
333dependencies = [ 333dependencies = [
334 "futures-core", 334 "futures-core",
335 "futures-sink", 335 "futures-sink",
@@ -368,7 +368,7 @@ checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8"
368dependencies = [ 368dependencies = [
369 "cfg-if 1.0.0", 369 "cfg-if 1.0.0",
370 "libc", 370 "libc",
371 "wasi 0.10.0+wasi-snapshot-preview1", 371 "wasi 0.10.2+wasi-snapshot-preview1",
372] 372]
373 373
374[[package]] 374[[package]]
@@ -464,9 +464,9 @@ checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8"
464 464
465[[package]] 465[[package]]
466name = "http" 466name = "http"
467version = "0.2.3" 467version = "0.2.4"
468source = "registry+https://github.com/rust-lang/crates.io-index" 468source = "registry+https://github.com/rust-lang/crates.io-index"
469checksum = "7245cd7449cc792608c3c8a9eaf69bd4eabbabf802713748fd739c98b82f0747" 469checksum = "527e8c9ac747e28542699a951517aa9a6945af506cd1f2e1b53a576c17b6cc11"
470dependencies = [ 470dependencies = [
471 "bytes 1.0.1", 471 "bytes 1.0.1",
472 "fnv", 472 "fnv",
@@ -485,9 +485,9 @@ dependencies = [
485 485
486[[package]] 486[[package]]
487name = "httparse" 487name = "httparse"
488version = "1.3.5" 488version = "1.3.6"
489source = "registry+https://github.com/rust-lang/crates.io-index" 489source = "registry+https://github.com/rust-lang/crates.io-index"
490checksum = "615caabe2c3160b313d52ccc905335f4ed5f10881dd63dc5699d47e90be85691" 490checksum = "bc35c995b9d93ec174cf9a27d425c7892722101e14993cd227fdb51d70cf9589"
491 491
492[[package]] 492[[package]]
493name = "httpdate" 493name = "httpdate"
@@ -1056,9 +1056,9 @@ checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
1056 1056
1057[[package]] 1057[[package]]
1058name = "redox_syscall" 1058name = "redox_syscall"
1059version = "0.2.5" 1059version = "0.2.6"
1060source = "registry+https://github.com/rust-lang/crates.io-index" 1060source = "registry+https://github.com/rust-lang/crates.io-index"
1061checksum = "94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9" 1061checksum = "8270314b5ccceb518e7e578952f0b72b88222d02e8f77f5ecf7abbb673539041"
1062dependencies = [ 1062dependencies = [
1063 "bitflags", 1063 "bitflags",
1064] 1064]
@@ -1286,9 +1286,9 @@ checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2"
1286 1286
1287[[package]] 1287[[package]]
1288name = "syn" 1288name = "syn"
1289version = "1.0.68" 1289version = "1.0.69"
1290source = "registry+https://github.com/rust-lang/crates.io-index" 1290source = "registry+https://github.com/rust-lang/crates.io-index"
1291checksum = "3ce15dd3ed8aa2f8eeac4716d6ef5ab58b6b9256db41d7e1a0224c2788e8fd87" 1291checksum = "48fe99c6bd8b1cc636890bcc071842de909d902c81ac7dab53ba33c421ab8ffb"
1292dependencies = [ 1292dependencies = [
1293 "proc-macro2", 1293 "proc-macro2",
1294 "quote", 1294 "quote",
@@ -1316,7 +1316,7 @@ dependencies = [
1316 "cfg-if 1.0.0", 1316 "cfg-if 1.0.0",
1317 "libc", 1317 "libc",
1318 "rand 0.8.3", 1318 "rand 0.8.3",
1319 "redox_syscall 0.2.5", 1319 "redox_syscall 0.2.6",
1320 "remove_dir_all", 1320 "remove_dir_all",
1321 "winapi 0.3.9", 1321 "winapi 0.3.9",
1322] 1322]
@@ -1352,12 +1352,11 @@ dependencies = [
1352 1352
1353[[package]] 1353[[package]]
1354name = "time" 1354name = "time"
1355version = "0.1.44" 1355version = "0.1.43"
1356source = "registry+https://github.com/rust-lang/crates.io-index" 1356source = "registry+https://github.com/rust-lang/crates.io-index"
1357checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" 1357checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
1358dependencies = [ 1358dependencies = [
1359 "libc", 1359 "libc",
1360 "wasi 0.10.0+wasi-snapshot-preview1",
1361 "winapi 0.3.9", 1360 "winapi 0.3.9",
1362] 1361]
1363 1362
@@ -1624,9 +1623,9 @@ checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
1624 1623
1625[[package]] 1624[[package]]
1626name = "wasi" 1625name = "wasi"
1627version = "0.10.0+wasi-snapshot-preview1" 1626version = "0.10.2+wasi-snapshot-preview1"
1628source = "registry+https://github.com/rust-lang/crates.io-index" 1627source = "registry+https://github.com/rust-lang/crates.io-index"
1629checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" 1628checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
1630 1629
1631[[package]] 1630[[package]]
1632name = "wasm-bindgen" 1631name = "wasm-bindgen"
diff --git a/src/schema.rs b/src/schema.rs
index fb88640..4ac674d 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -246,5 +246,3 @@ impl MetuId {
246 } 246 }
247 } 247 }
248} 248}
249
250// TODO: write schema tests using the original repo <09-04-21, yigit> //