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

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

Reference Type: Supported, Category: Data Security, Integration Agreement: 6157

Description

This 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

Output
  • SHA hash if successful.
  • Zero (0) - If the routine could not be opened/found.

 

Example

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