The CryptoKey class / xml.CryptoKey methods |
Loads a symmetric or HMAC key from a file in raw format.
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 with the appropriate error number.