Home  Contents

pki:keysize()

Cipher/PKI Core4 Lua Commands

SYNOPSIS

bytes, bits = pki:keysize()

DESCRIPTION

Returns the size of the stored key in bytes and bits.

RETURN VALUE

On success, returns two values: The number of bytes required to store the key and the number of bits required to store the key.

In case of an error returns three values: nil, a string describing the error and a negative error code from the underlying mbed TLS implementation.

SEE ALSO