xml.CryptoKey.loadBIN

Loads a symmetric or HMAC key from a file in raw format.

Syntax

loadBIN(
   file STRING )
  1. file is the file name or an entry in the FGLPROFILE file.

Usage

Raw format means that the data in the file are read without any transformation, and will be stored as it in the key.

For instance, if you file contains hello, it has the same effect as calling setKey() with hello as parameter.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).