Method: PKCS11::Session#C_Encrypt

Defined in:
lib/pkcs11/session.rb

#C_Encrypt(data, out_size = nil) ⇒ String

Encrypts single-part data.

See #encrypt 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)


267
268
269
# File 'lib/pkcs11/session.rb', line 267

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