Method: PKCS11::Session#decrypt
- Defined in:
- lib/pkcs11/session.rb
permalink #decrypt(mechanism, key, data = nil) {|PKCS11::Session::Cipher| ... } ⇒ String
Convenience method for the #C_DecryptInit, #C_DecryptUpdate, #C_DecryptFinal call flow.
368 369 370 371 |
# File 'lib/pkcs11/session.rb', line 368 def decrypt(mechanism, key, data=nil, &block) common_crypt(:C_DecryptInit, :C_DecryptUpdate, :C_DecryptFinal, :C_Decrypt, mechanism, key, data, &block) end |