Exemplo n.º 1
0
// Signing functions
bool AsymmetricAlgorithm::sign(PrivateKey* privateKey, const ByteString& dataToSign,
			       ByteString& signature, const AsymMech::Type mechanism,
			       const void* param /* = NULL */, const size_t paramLen /* = 0 */)
{
	// Compose from multi-part operations
	return (signInit(privateKey, mechanism, param, paramLen) && signUpdate(dataToSign) && signFinal(signature));
}
Exemplo n.º 2
0
// Signing functions
bool AsymmetricAlgorithm::sign(PrivateKey* privateKey, const ByteString& dataToSign, ByteString& signature, const std::string mechanism)
{
    // Compose from multi-part operations
    return (signInit(privateKey, mechanism) && signUpdate(dataToSign) && signFinal(signature));
}