lib/sp_store/server/controller.rb
def read_block(session_id, block_id, nonce)
    _check_block_id block_id
    session_cache_entry = @allocator.session_cache_entry session_id
    data = @storage.read_block block_id
    hmac = @hash_tree_controller.sign_read_block block_id, session_cache_entry, nonce   
    return data, hmac
  end
# :nodoc: called by Session
:nodoc: called by Session
: nodoc : called by Session
def read_block(session_id, block_id, nonce)
    _check_block_id block_id
    session_cache_entry = @allocator.session_cache_entry session_id
    data = @storage.read_block block_id
    hmac = @hash_tree_controller.sign_read_block block_id, session_cache_entry, nonce   
    return data, hmac
  end
def read_block ( session_id , block_id , nonce ) _check_block_id block_id session_cache_entry = @allocator . session_cache_entry session_id data = @storage . read_block block_id hmac = @hash_tree_controller . sign_read_block block_id , session_cache_entry , nonce return data , hmac end
:nodoc: called by Session
: nodoc : called by Session
session_id
block_id
nonce