diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-07-23 13:08:30 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-07-24 02:56:35 +0200 |
commit | 08c7e8655b8e367985b76342f6e1aa0462326923 (patch) | |
tree | 55cedd9c32aca4cf8dadb8052199525aa1da3119 /include/svl/cryptosign.hxx | |
parent | 81c411299ed1bff1e536b97a5d5add70d6c5db04 (diff) |
svl: support verifying streams as well as byte arrays
Change-Id: I67a5094c6817b9f9e04ef72e15b059d6667f1397
Reviewed-on: https://gerrit.libreoffice.org/40335
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'include/svl/cryptosign.hxx')
-rw-r--r-- | include/svl/cryptosign.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/svl/cryptosign.hxx b/include/svl/cryptosign.hxx index ae82a59b33a4..5d347c96d541 100644 --- a/include/svl/cryptosign.hxx +++ b/include/svl/cryptosign.hxx @@ -60,6 +60,12 @@ public: /// Returns the signature (in PKCS#7 format) as string (hex). bool Sign(OStringBuffer& rCMSHexBuffer); + /// Verify and get Signature Information given a byte array. + static bool Verify(const std::vector<unsigned char>& aData, + const bool bNonDetached, + const std::vector<unsigned char>& aSignature, + SignatureInformation& rInformation); + /// Verify and get Signature Information given a signature and stream. static bool Verify(SvStream& rStream, const std::vector<std::pair<size_t, size_t>>& aByteRanges, |