mirror of
https://github.com/9001/copyparty.git
synced 2026-04-01 04:53:10 +10:00
add cursed TLS to enable crypto.subtle, thx webkit
This commit is contained in:
@@ -39,6 +39,10 @@ combines parts into final file if all-ok
|
||||
|
||||
use sha512 instead of sha256 everywhere
|
||||
write directly to .$wark.tmp instead of parts, then move to destination
|
||||
may have to forego the predictable wark and instead use random key:
|
||||
webkit is doing the https-only meme for crypto.subtle.*
|
||||
so native sha512 is unavailable on LAN (oh no)
|
||||
so having the client hash everything before first byte is NG
|
||||
|
||||
|
||||
|
||||
@@ -52,6 +56,20 @@ registry moves file into place when all chunks are verified
|
||||
|
||||
|
||||
|
||||
##
|
||||
## in case we can't rely on sha512 of entire file
|
||||
|
||||
handshake
|
||||
client gets wark (random session-key)
|
||||
localstorage[filename+size] = wark
|
||||
thread 1: sha512 chunks
|
||||
thread 2: upload chunks
|
||||
server renames wark to filename on last chunk finished
|
||||
if conflict with another wark during upload: all files are renamed
|
||||
if conflict with existing filename: new file is renamed
|
||||
|
||||
|
||||
|
||||
##
|
||||
## required capabilities
|
||||
|
||||
|
||||
Reference in New Issue
Block a user