xenc_key_inst_create
Key instance generation
any xenc_key_inst_create
(in name varchar,
in super any);
Description
The function is used to make a key reference used in
encryption functions.
Parameters
name –
Name of the key to be instantiated.
super –
Optional parameter, is specified must contains a
key reference to the super key. In other words
the key used to encrypt key specified by name.
Return Types
On success the function returns a non-null value
containing key reference data.
Errors
This function can generate the following errors:
.
Examples
Key instance creation
The example specifies to use an AES key to be used
as a session key, also AES will be encrypted with a RSA one.
...
keyi := xenc_key_inst_create ('myAES', xenc_key_inst_create ('rsa-test'))
...