コード例 #1
0
ファイル: cryptlib.cpp プロジェクト: LjApps/eMule-VeryCD
void SimpleKeyingInterface::ThrowIfInvalidKeyLength(const Algorithm &algorithm, unsigned int length)
{
	if (!IsValidKeyLength(length))
		throw InvalidKeyLength(algorithm.AlgorithmName(), length);
}
コード例 #2
0
ファイル: cryptlib.cpp プロジェクト: 13971643458/qtum
void SimpleKeyingInterface::ThrowIfInvalidKeyLength(size_t length)
{
	if (!IsValidKeyLength(length))
		throw InvalidKeyLength(GetAlgorithm().AlgorithmName(), length);
}