Commit graph

1434 commits

Author SHA1 Message Date
jake 3f2b4cda38
[ENG-245] Object Validator Job (#414)
* use `.to_hex()` for blake3 hashes

* move file hashing function+fix large stack alloc

* init validator job

* change branch name

* add object validator job

* formatting

Co-authored-by: Jamie Pine <ijamespine@me.com>
2022-10-18 05:39:33 -07:00
Jamie Pine 5fcc6c4f31 fix video thumb and inspector scroll 2022-10-18 00:00:33 -07:00
Jamie Pine a397803be0 ui cleanup 2022-10-17 23:38:41 -07:00
Jamie Pine f300049873 improvements to key manager ui 2022-10-17 21:01:40 -07:00
Oscar Beaumont 381f08f938 Merge remote-tracking branch 'origin/main' into fix-reactivity 2022-10-18 11:29:02 +08:00
Oscar Beaumont 1a8581d44f upgrade rspc + fix reactivity + add in disabled Normi code 2022-10-18 04:45:37 +08:00
Oscar Beaumont a82655973b
PR #416
Co-authored-by: PyRo1121 <o.latham@me.com>
2022-10-18 02:23:23 +08:00
Oscar Beaumont 6dc24ae795
Merge pull request #417 from spacedriveapp/mobile-pnpm
put mobile in pnpm workspace
2022-10-18 01:45:29 +08:00
Brendan Allan ccb2617c31 add postinstall script for react-native-codegen 2022-10-17 23:42:32 +08:00
Brendan Allan 529861a0b8 minor refactors 2022-10-17 22:23:01 +08:00
Brendan Allan 01df0019bb put mobile in pnpm workspace 2022-10-17 21:27:14 +08:00
Jamie Pine c2ae648b9f
Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2022-10-17 01:37:05 -07:00
Jamie Pine 4acb8cc594
Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2022-10-17 01:36:05 -07:00
Jamie Pine acbd064f43
- added explorer options panel
- added Select ui component
- added tailwind-radix
2022-10-17 01:32:36 -07:00
Oscar Beaumont 598880c887
Merge pull request #415 from spacedriveapp/general-fixes
general fixes
2022-10-17 11:47:18 +08:00
Oscar Beaumont 447e2bbba6 Merge remote-tracking branch 'origin/main' into general-fixes 2022-10-17 11:46:45 +08:00
Jamie Pine 2322adc9df
fix settings suspense 2022-10-16 02:48:58 -07:00
Jamie Pine 34a6e812ad
improve dialog animation + move to ui lib 2022-10-15 22:11:25 -07:00
Jamie Pine 0e66e6a843
mockup: key manager ui
- thanks AndrewTech for help with react spring +  radix combo
2022-10-15 21:40:10 -07:00
Oscar Beaumont b6f633ccb9 fix Rust + Clippy warnings 2022-10-15 05:48:07 +08:00
Oscar Beaumont f140d75ece move from try to try_exists for explicit error handling 2022-10-15 05:18:42 +08:00
Oscar Beaumont bea74aede4 fix hot reload + move navigate() to <Link /> 2022-10-15 03:56:55 +08:00
jake 4cd2dde35c
CAS ID Improvements (#413)
* remove `ring` dependency and use `sha2` instead

* use BLAKE3 and include full file checksum

* update schema comments
2022-10-13 15:31:47 -07:00
jake b5c571541e
[ENG-256] Crypto Crate Refinements (#410)
* add experimental preview media support

* clippy+formatting

* add support for mk/pvm nonces

* fix cursor positioning+size deserialization bug

* clippy+formatting

* cleanup code and add `decrypt_preview_media()`

* update comment

* remove `Mode` from `Keyslot`

* use little-endian `usize` for media length

* remove memory objects

* remove mode enum

* add `.zeroize()` to `Protected<>`

* remove `Mode` ser/de

* refactor, remove `Mode`, add helper functions

* formatting

* remove unused error

* update comments/docs

* comments, fix large files, insane performance

* doc updates and fix decrypt zeroize

* revert to 1048576 byte `BLOCK_SIZE`

* `Keyslot` and `PreviewMedia` constructors now handle encryption

* add metadata item with associated functions

* update comments, clean up useless items

* add metadata support within the header

* remove stray 128 in length calcs

* include metadata in header ser/de

* fmt+clippy

* rework keyslot decryption

* formatting

* api changes, code cleanup

* docs for `stream.rs`

* massive documentation re-write

* mark expensive doc test as ignore

* minor api tweaks

* add examples

* formatting+linting

* finalise documentation and add more examples

* formatting
2022-10-13 15:25:42 -07:00
Oscar Beaumont c0b51bcd4a update rspc to version with fixed httpz rev
Main was broken because it was pulling httpz from main and I have been refactoring it.
2022-10-13 15:03:43 +08:00
maxichrome 3bed836989
Merge pull request #409 from Looskie/main
ui/ux: fix z index issue on NewBanner
2022-10-09 11:16:01 -05:00
Cody Miller 19bbfd60b2 ui/ux: fix z index issue on NewBanner 2022-10-09 11:50:19 -04:00
Jamie Pine b94d2ed736
(hotfix) p2p preventing compile 2022-10-08 11:30:17 -07:00
Oscar Beaumont 2b8473e1ef
Merge pull request #404 from kor-pixel/patch-1
fixed the overflow
2022-10-08 02:43:20 +08:00
jake d236b28f84
[ENG-250] Crypto Library (#400)
* add crypto crate with some functionality

* formatting

* add `argon2id` parameter levels

* add descriptive comments

* add stream decryption objects

* add `StreamEncryptor` struct

* add `StreamDecryptor`

* general cleanup

* add `thiserror` and error handling

* add header structs

* add basic serialization functionality

* advance serialization

* finish serialization

* clean up serialization and use `impl`

* finalise deserialization

* add stream helper functions and remove old code

* add AAD creation and retrieval

* add important comment

* add `ChaCha20Rng` as a CSPRNG

* cleanup and crate-wide clippy lints

* apply nursery lints

* add in-memory encryption objects

* rename `utils` to `objects`

* move (de)serialization rules to separate file

* add header-write helper function

* add password hash helper function

* add `decrypt_master_key` function

* cleanup, formatting, linting

* move keyslots to separate file, and rename them

* add basic comments

* remove `secrecy` dependency and import `protected`

* add `to_array` helper function

* `sd_crypto` -> `sd-crypto`

* remove manual drops

* add clippy allows

* add `new()` for `Keyslot` and `FileHeader`

* remove license

* zeroize read buffer on error

* magic bytes are now `ballapp`

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
Co-authored-by: Jamie Pine <32987599+jamiepine@users.noreply.github.com>
2022-10-07 07:31:40 -07:00
사무엘 b301efb79c
Added overflow-hidden to main 2022-10-07 10:50:18 +09:00
사무엘 eb47a2e341
removed overflow previously added 2022-10-07 10:39:00 +09:00
Jamie Pine 900ee618ce
Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2022-10-06 18:10:08 -07:00
Jamie Pine e402fc52b7
sd extensions crate
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-10-06 18:10:03 -07:00
사무엘 90e90e8c55
fixed the overflow 2022-10-07 09:09:32 +09:00
Oscar Beaumont e5d7eb4300
Merge pull request #401 from spacedriveapp/merge-p2p-code
P2P code
2022-10-07 07:47:42 +08:00
Oscar Beaumont aacdf33216 merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00
Oscar Beaumont fe4da9048a cargo fmt + fix clippy lints 2022-10-07 07:39:59 +08:00
Oscar Beaumont 162eef60ab toast notification hook 2022-10-07 07:36:22 +08:00
Oscar Beaumont 75c4680b43 Merge remote-tracking branch 'origin/main' into merge-p2p-code 2022-10-07 05:56:05 +08:00
Oscar Beaumont d7fddc83f7 fix major bugs in p2p PR 2022-10-07 05:51:40 +08:00
Oscar Beaumont 598ba38a9d merge in P2P code 2022-10-07 05:32:45 +08:00
Oscar Beaumont bdb0e984dc
Merge pull request #391 from spacedriveapp/update-rspc-and-more
upgrade rspc + lazy loading in React
2022-10-07 04:59:12 +08:00
Oscar Beaumont 2ae02f202d Expo committed cringe 2022-10-07 04:56:59 +08:00
Brendan Allan c44b959e63 remove stats.html 2022-10-07 03:55:36 +08:00
Jamie Pine ddad55860b
tests for magic bytes 2022-10-06 09:49:14 -07:00
Jamie Pine cff4801c93
tests for magic bytes 2022-10-06 09:48:55 -07:00
Oscar Beaumont dec2697740 Fix mobile + upgrade Expo + even newer rspc 2022-10-06 21:07:46 +08:00
Brendan Allan f1b55f1101 merge main into update-rspc-and-more 2022-10-06 18:34:18 +08:00
Oscar Beaumont 20523a94c9 upgrade workspace dependencies 2022-10-06 14:03:58 +08:00