ScramShaAuthenticator.Hmac Delegate (original) (raw)

ScramShaAuthenticatorHmac Delegate

An HMAC function as defined in RFC5802, plus the encoding of the data.

Namespace: MongoDB.Driver.Core.Authentication
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

protected delegate byte[] Hmac( UTF8Encoding encoding, byte[] data, string key )

Protected Delegate Function Hmac ( encoding As UTF8Encoding, data As Byte(), key As String ) As Byte()

type Hmac = delegate of encoding : UTF8Encoding * data : byte[] * key : string -> byte[]

Parameters

encoding

Type: System.TextUTF8Encoding
The encoding of the data.

data

Type: SystemByte
The data. Also called "str" in RFC5802.

key

Type: SystemString
The key.

Return Value

Type: Byte

See Also

Reference