Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$ROUTINE^XLFSHAN(): Returns SHA Hash for a VistA Routine

Reference Type: Supported, Category: Data Security, ICR#: 6157

Description

The $$ROUTINE^XLFSHAN extrinsic function returns the SHA hash for a specified VistA routine.

NOTE: This API was released with Kernel Patch XU*8.0*657.

Format

  $$ROUTINE^XLFSHAN(hashlen,routine)

Input Parameters

hashlen:

(required) The hash length in bits:

  • 160 (SHA-1)

  • 224 (SHA-224)

  • 256 (SHA-256)

  • 384 (SHA-384)

  • 512 (SHA-512)
routine: (required) The name of the routine.

Output

returns:

Returns:

  • SHA hash—If successful.

  • Zero (0)—If the routine could not be opened/found

Example

>W $$ROUTINE^XLFSHAN(384,"XUCERT")
54BA28936CE7CEC515305AE4BBD07FC4FD7620ACF0EAD0AF6A9E5BFBEEF24794DA414C0C33A6C0C3B90005D70A2BFE4D