lib/sp_store/mocks/bare_controller.rb
# Creates a new mock S-P store controller.
#
# Args:
#   store:: the block store to be served
#   ca_keys:: keypair for the Certificate Authority
#   ca_cert:: the CA certificate
#   keys:: Endorsement Key (a random key is generated by default)
#   cert:: if given, it is used as an Endorsement Certificate
Creates a new mock S-P store controller.
Creates a new mock S - P store controller .
def session(encrypted_session_key)
    session_key = SpStore::Crypto.pki_decrypt @ekeys[:private],
                                              encrypted_session_key
    Session.new @store, @hashes, session_key
  end
def session ( encrypted_session_key ) session_key = SpStore :: Crypto . pki_decrypt @ekeys [ :private ] , encrypted_session_key Session . new @store , @hashes , session_key end
Creates a new mock S-P store controller.
Creates a new mock S - P store controller .
encrypted_session_key