Crypto Server
    Preparing search index...

    Function resolveKey

    • Resolve keyId for the requesting principal. Throws a 404 for an unknown key or another principal's, and a 400 for a key whose algorithm is not in algorithms (when given).

      Parameters

      • request: FastifyRequest
      • keyId: string
      • Optionalalgorithms: readonly string[]

      Returns Promise<StoredKey>