lib/asherah.rb
def decrypt(partition_id, json)
      partition_id_buffer = string_to_cbuffer(partition_id)
      data_buffer = string_to_cbuffer(json)
      output_buffer = allocate_cbuffer(json.bytesize)

      result = DecryptFromJson(partition_id_buffer, data_buffer, output_buffer)
      Error.check_result!(result, 'DecryptFromJson failed')

      cbuffer_to_string(output_buffer)
    ensure
      [partition_id_buffer, data_buffer, output_buffer].map(&:free)
    end
# Decrypts a DataRowRecord in JSON format for a partition_id and returns decrypted data.
#
# @param partition_id [String]
# @param json [String], DataRowRecord in JSON format
# @return [String], Decrypted data
Decrypts a DataRowRecord in JSON format for a partition_id and returns decrypted data.
Decrypts a DataRowRecord in JSON format for a partition_id and returns decrypted data .
def decrypt(partition_id, json)
      partition_id_buffer = string_to_cbuffer(partition_id)
      data_buffer = string_to_cbuffer(json)
      output_buffer = allocate_cbuffer(json.bytesize)
      result = DecryptFromJson(partition_id_buffer, data_buffer, output_buffer)
      Error.check_result!(result, 'DecryptFromJson failed')
      cbuffer_to_string(output_buffer)
    ensure
      [partition_id_buffer, data_buffer, output_buffer].map(&:free)
    end
def decrypt ( partition_id , json ) partition_id_buffer = string_to_cbuffer ( partition_id ) data_buffer = string_to_cbuffer ( json ) output_buffer = allocate_cbuffer ( json . bytesize ) result = DecryptFromJson ( partition_id_buffer , data_buffer , output_buffer ) Error . check_result! ( result , 'DecryptFromJson failed' ) cbuffer_to_string ( output_buffer ) ensure [ partition_id_buffer , data_buffer , output_buffer ] . map ( & :free ) end
Decrypts a DataRowRecord in JSON format for a partition_id and returns decrypted data.
Decrypts a DataRowRecord in JSON format for a partition_id and returns decrypted data .
, Decrypted data
Decrypted data
String
partition_id
json
, DataRowRecord in JSON format
DataRowRecord in JSON format
None