Function silc_pkcs_public_key_alloc
SYNOPSIS
SilcBool silc_pkcs_public_key_alloc(SilcPKCSType type,
unsigned char *key,
SilcUInt32 key_len
SilcPublicKey *ret_public_key);
DESCRIPTION
Allocates SilcPublicKey of the type of `type' from the key data
`key' of length of `key_len' bytes. Returns FALSE if the `key'
is malformed or unsupported public key type. This function can be
used to create public key from any kind of PKCS public keys that
the implementation supports.
|