20#ifndef INCLUDED_OOX_CRYPTO_CRYPTTOOLS_HXX
21#define INCLUDED_OOX_CRYPTO_CRYPTTOOLS_HXX
42 if (input % multiple == 0)
44 return ((input / multiple) * multiple) + multiple;
83 std::vector<sal_uInt8>& output,
84 std::vector<sal_uInt8>& input,
85 sal_uInt32 inputLength = 0);
89 std::vector<sal_uInt8>& output,
90 std::vector<sal_uInt8>& input,
91 std::vector<sal_uInt8>& key );
101 std::vector<sal_uInt8>& output,
102 std::vector<sal_uInt8>& input,
103 sal_uInt32 inputLength = 0);
111 bool update(std::vector<sal_uInt8>& rInput, sal_uInt32 nInputLength = 0);
std::unique_ptr< CryptoImpl > mpImpl
Decrypt(std::vector< sal_uInt8 > &key, std::vector< sal_uInt8 > &iv, CryptoType type)
sal_uInt32 update(std::vector< sal_uInt8 > &output, std::vector< sal_uInt8 > &input, sal_uInt32 inputLength=0)
static sal_uInt32 aes128ecb(std::vector< sal_uInt8 > &output, std::vector< sal_uInt8 > &input, std::vector< sal_uInt8 > &key)
sal_uInt32 update(std::vector< sal_uInt8 > &output, std::vector< sal_uInt8 > &input, sal_uInt32 inputLength=0)
Encrypt(std::vector< sal_uInt8 > &key, std::vector< sal_uInt8 > &iv, CryptoType type)
T roundUp(T input, T multiple)
Rounds up the input to the nearest multiple.