         return _.mapValues(credentialsByType, (credential, typeKey) =>
           credentialType = CredentialType[typeKey]
           uint8Key       = credential
-          return deserializeKey({ credentialType, uint8Key, @searchKeySerializer })
+          return deserializeKey({ credentialType, uint8Key, @cryptoServiceLoader })
         )
 
     hasInitialized: ->

        else
          return Promise.resolve()

    getAllCredentials: ->
      Promise.resolve()
      .then =>

  'kryptnostic.crypto-key-storage-api'
  'kryptnostic.credential-loader'
  'kryptnostic.search-key-serializer'
  'kryptnostic.crypto-service-loader'
  'kryptnostic.aes-crypto-service'
  'kryptnostic.block-ciphertext'
], (require) ->

  _                   = require 'lodash'
  Promise             = require 'bluebird'
  Logger              = require 'kryptnostic.logger'
  AuthenticationStage = require 'kryptnostic.authentication-stage'
  CredentialLoader    = require 'kryptnostic.credential-loader'
  CryptoKeyStorageApi = require 'kryptnostic.crypto-key-storage-api'
  SearchKeySerializer = require 'kryptnostic.search-key-serializer'
  SearchKeyGenerator  = require 'kryptnostic.search-key-generator'
  CryptoServiceLoader = require 'kryptnostic.crypto-service-loader'
  AesCryptoService    = require 'kryptnostic.aes-crypto-service'
  BlockCiphertext     = require 'kryptnostic.block-ciphertext'

  log = Logger.get('SearchCredentialService')

