Method: PKCS11::Session#C_Decrypt

Defined in:
lib/pkcs11/session.rb

#C_Decrypt(data, out_size = nil) ⇒ String

Decrypts encrypted data in a single part.

See #decrypt for convenience.

Parameters:

  • out_size (Integer, nil) (defaults to: nil)

    The buffer size for output data provided to the library. If nil, size is determined automatically.

Returns:

  • (String)


334
335
336
# File 'lib/pkcs11/session.rb', line 334

def C_Decrypt(data, out_size=nil)
  @pk.C_Decrypt(@sess, data, out_size)
end