Table of Contents

Class HMACSHA1

Namespace
Renci.SshNet.Security.Cryptography
Assembly
Renci.SshNet.dll

Computes a Hash-based Message Authentication Code (HMAC) by using the SHA1 hash function.

public class HMACSHA1 : HMACSHA1, ICryptoTransform, IDisposable
Inheritance
HMACSHA1
Implements
Inherited Members

Constructors

HMACSHA1(byte[])

Initializes a new instance of the HMACSHA1 class with the specified key.

public HMACSHA1(byte[] key)

Parameters

key byte[]

The key.

HMACSHA1(byte[], int)

Initializes a new instance of the HMACSHA1 class with the specified key and size of the computed hash code.

public HMACSHA1(byte[] key, int hashSize)

Parameters

key byte[]

The key.

hashSize int

The size, in bits, of the computed hash code.

Properties

HashSize

Gets the size, in bits, of the computed hash code.

public override int HashSize { get; }

Property Value

int

The size, in bits, of the computed hash code.

Methods

HashFinal()

Finalizes the hash computation after the last data is processed by the cryptographic stream object.

protected override byte[] HashFinal()

Returns

byte[]

The computed hash code.