class COMPHELPER_DLLPUBLIC Crypto
{ protected:
std::shared_ptr<ICryptoImplementation> mpImpl;
Crypto();
public: virtual ~Crypto();
};
/** Decrypt vector of bytes with AES encryption */ class COMPHELPER_DLLPUBLIC Decrypt final : public Crypto
{ public:
Decrypt(std::vector<sal_uInt8>& key, std::vector<sal_uInt8>& iv, CryptoType type);
/** Encrypt vector of bytes with AES encryption */ class COMPHELPER_DLLPUBLIC Encrypt final : public Crypto
{ public: /** Initialize encryption for key, init vector and encryption type. * *key-encryptionkey,keysizeshouldbethesameasblocksize *iv-initvector:itcanbeempty-willnotbeused(initvectorwillbe0)
*/
Encrypt(std::vector<sal_uInt8>& key, std::vector<sal_uInt8>& iv, CryptoType type);
/** Encrypt the input and write into output * *inputLength-sizefromtheinputtobeencrypted(0meanstousethesizeofthevector)
*/
sal_uInt32 update(std::vector<sal_uInt8>& output, std::vector<sal_uInt8>& input,
sal_uInt32 inputLength = 0);
};
class COMPHELPER_DLLPUBLIC CryptoHash final : public Crypto
{
sal_Int32 mnHashSize;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.