The CryptoKey class / xml.CryptoKey methods |
Returns the size of the key in bits.
getSize() RETURNING size INTEGER
For a Diffie-Hellman key, returns the size of the key; the size of a Diffie-Hellman key is actually the size of the modulus. If the modulus is not available (null or equal to zero), the method returns zero. In this situation, a return of zero does NOT mean the key is corrupt or unusable.
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).