Initializing help system before first use

RSAgetkeysize

RSAgetkeysize


Purpose
Get the size of an RSA key.
Synopsis
function RSAgetkeysize(key:array(range) of integer):integer
function RSAgetkeysize(kfile:string, ispriv:boolean):integer
Arguments
key 
RSA key in the form of an array of integer
kfile 
File containing the key
ispriv 
Must be true if the key file contains a private key
Return value
Size of the key (number of bits) or -1 in case of an error.
Further information
A return value of -1 indicates an error condition. Typically this will occur if the file cannot be accessed or the ispriv parameter is not correct ( e.g. ispriv is true and the file is a public key).
Related topics
Module