using Renci.SshNet.Abstractions;
namespace Renci.SshNet.Security
{
///
/// Represents "diffie-hellman-group-exchange-sha1" algorithm implementation.
///
internal sealed class KeyExchangeDiffieHellmanGroupExchangeSha1 : KeyExchangeDiffieHellmanGroupExchangeShaBase
{
///
/// Gets algorithm name.
///
public override string Name
{
get { return "diffie-hellman-group-exchange-sha1"; }
}
///
/// Gets the size, in bits, of the computed hash code.
///
///
/// The size, in bits, of the computed hash code.
///
protected override int HashSize
{
get { return 160; }
}
///
/// Hashes the specified data bytes.
///
/// The hash data.
///
/// The hash of the data.
///
protected override byte[] Hash(byte[] hashData)
{
return CryptoAbstraction.HashSHA1(hashData);
}
}
}