Platforms to show: All Mac Windows Linux Cross-Platform

Back to CCHMacMBS class.

CCHMacMBS.Constructor(algorithm as Integer, key as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes the hmac engine with the given algorithm and key.

See also:

CCHMacMBS.Constructor(algorithm as Integer, key as Ptr, keyLength as UInt64)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes the hmac engine with the given algorithm and key.

See also:

CCHMacMBS.Constructor(algorithm as Integer, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes the hmac engine with the given algorithm and key.
Example
dim h as new CCHMacMBS(CCHMacMBS.kCCHmacAlgMD5, "Hello")
h.Update "Hello World!"
dim m as MemoryBlock = h.Finalize
MsgBox EncodingToHexMBS(m)

See also:

CCHMacMBS.Final(macOut as Ptr)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Obtain the final Message Authentication Code.

Writes mac to given pointer.
Please pass a memoryblock with 16 bytes for MD5 and 20 bytes for SHA1.

CCHMacMBS.Finalize as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Obtain the final Message Authentication Code.

Returns digest. 16 bytes for MD5 and 20 bytes for SHA1.

CCHMacMBS.Update(data as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Process some data.

Takes bytes in memoryblock.

See also:

CCHMacMBS.Update(data as Ptr, dataLength as UInt64)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Process some data.

Takes given bytes from pointer. You can pass a memoryblock there and pass the size of the memoryblock as length.

See also:

CCHMacMBS.Update(data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS MacOSX Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Process some data.

Takes bytes in string.

See also:

The items on this page are in the following plugins: MBS MacOSX Plugin.


The biggest plugin in space...