コード例 #1
0
// Verification functions
bool AsymmetricAlgorithm::verify(PublicKey* publicKey, const ByteString& originalData,
				 const ByteString& signature, const AsymMech::Type mechanism,
				 const void* param /* = NULL */, const size_t paramLen /* = 0 */)
{
	// Compose from multi-part operations
	return (verifyInit(publicKey, mechanism, param, paramLen) && verifyUpdate(originalData) && verifyFinal(signature));
}
コード例 #2
0
// Verification functions
bool AsymmetricAlgorithm::verify(PublicKey* publicKey, const ByteString& originalData, const ByteString& signature, const std::string mechanism)
{
    // Compose from multi-part operations
    return (verifyInit(publicKey, mechanism) && verifyUpdate(originalData) && verifyFinal(signature));
}