Syntax
VM_RESULT vm_ssl_sha1_hmac(
    VMBYTE* key, 
    VMINT key_length, 
    const VMBYTE* input, 
    VMINT input_length, 
    VMBYTE output[20]
);
ContentsIndex
PreviousUpNext
vm_ssl_sha1_hmac
Syntax
VM_RESULT vm_ssl_sha1_hmac(
    VMBYTE* key, 
    VMINT key_length, 
    const VMBYTE* input, 
    VMINT input_length, 
    VMBYTE output[20]
);
Description

This utility function hashes input buffer using the HMAC algorithm and the SHA-1 hash function to a 160 bits (20-bytes) hash value.

Parameters
Parameters 
Description 
VMBYTE* key 
[IN] HMAC secret key. 
VMINT key_length 
[IN] Length of the HMAC key. 
VMINT input_length 
[IN] Length of the input data. 
VMBYTE output[20] 
[OUT] HMAC-SHA-1 hash result. 
Returns

Always VM_OK as this function never fails.

File

vmssl.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.