bugfix as openssl 1.0.2 does not accept a key longer than 64Bytes in hex
openssl 1.0.1 just strips the key
This commit is contained in:
parent
2be33e7453
commit
15bbe37986
1
ocdec.sh
1
ocdec.sh
@ -124,6 +124,7 @@ function decryptFile() {
|
||||
|
||||
decFileKeyContent="$( openssl rc4 -d -in "$encFileKeyPath" -iv 0 -K $decUserFileShareKeyHEX )"
|
||||
decFileKeyContentHEX="$( echo -n $decFileKeyContent |od -An -tx1 |tr -dc '[:xdigit:]' )"
|
||||
decFileKeyContentHEX=${decFileKeyContentHEX:0:64}
|
||||
# --- Get the FileKey ---
|
||||
|
||||
# --- Decrypt the file ---
|
||||
|
Loading…
Reference in New Issue
Block a user