![]() ![]() |
Reference Type: Supported, Category: Data Security, ICR#: 6157
The $$LSHAN^XLFSHAN extrinsic function returns the SHA hash of a message that is too long to be passed as a single string. The message is passed in ^TMP($J,MSUB). The message should be broken into blocks that are exactly 64 bytes/characters long except for the last one. ^TMP($J,MSG,N) is the Nth block of the message; where N runs from 1 to NBLOCKS.
NOTE: This API was released with Kernel Patch XU*8.0*657.
$$LSHAN^XLFSHAN(hashlen,msub,nblocks)
hashlen: |
(required) The hash length in bits:
|
msub: | (required) The ^TMP($J,msub) subscript in which the message is passed. |
nblocks: | (required) The number of blocks in the message. |
returns: |
Returns:
|
>S ^TMP($J,"MSG",1)= "test line one") >S ^TMP($J,"MSG",2)= "test line two" >W $$LSHAN^XLFSHAN(224,"MSG",2) 42E2C4B559757087BFA5834F43C2C50740984766910C1B4EEC79A350 |