Method: PKCS11::Session#C_GenerateKey
- Defined in:
- lib/pkcs11/session.rb
permalink #C_GenerateKey(mechanism, template = {}) ⇒ PKCS11::Object Also known as: generate_key
Generates a secret key Object or set of domain parameters, creating a new Object.
653 654 655 656 |
# File 'lib/pkcs11/session.rb', line 653 def C_GenerateKey(mechanism, template={}) obj = @pk.C_GenerateKey(@sess, to_mechanism(mechanism), to_attributes(template)) Object.new @pk, @sess, obj end |