Commit b1502076 authored by Marek Kasik's avatar Marek Kasik

Decrypt: Implement crypto functions using NSS

This commit moves DecryptStream and EncryptStream
classes to their own source files so that they can
have different implementations. Hash functions
md5(), sha256(), sha384() and sha512() are also placed
to these source files to allow different implementations.
There is internal implementation of them
in DecryptStream.{cc|h} and the NSS one
in DecryptStreamNSS.{cc|h}.

This commit also adds some new functions for usage
in functions Decrypt::makeFileKey(), Decrypt::makeFileKey2()
and revision6Hash().
These are rc4DecryptArray(), aesDecryptArray() and

setNSSDir() function had to be moved to its own source files
NSS.{cc|h} to have consistent initialization of NSS over
all functions which needs it.
parent e47daf60
Pipeline #58082 failed with stage
in 2 minutes and 33 seconds