Generate a key or key pair. Opcode: 2 (
|String||Name of the key to generate|
|The attributes of the new key|
attributescan not be an asymmetric public key.
No values are returned by this operation.
Specific response status codes
PsaErrorAlreadyExists: There is already a key with the given name.
PsaErrorNotSupported: The key type or key size is not supported.
PsaErrorInvalidArgument: The key attributes, as a whole, are invalid.
The key is generated randomly. Its location, policy, type and size are taken from
The following type-specific considerations apply:
- For RSA keys (key type is
RsaKeyPair), the public exponent is
65537. The modulus is a product of two probabilistic primes between
nis the bit size specified in the attributes.
Copyright 2019 Contributors to the Parsec project.