aboutsummaryrefslogtreecommitdiff
path: root/components/service/locator/standalone/services/crypto/crypto_service_context.h
blob: 84360ba3fa6d1e5c62bddf924a4af898f98043f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef STANDALONE_CRYPTO_SERVICE_CONTEXT_H
#define STANDALONE_CRYPTO_SERVICE_CONTEXT_H

#include <service/locator/standalone/standalone_service_context.h>
#include <rpc/direct/direct_caller.h>
#include <service/crypto/provider/mbedcrypto/crypto_provider.h>
#include <service/secure_storage/frontend/secure_storage_provider/secure_storage_provider.h>

class crypto_service_context : public standalone_service_context
{
public:
    crypto_service_context(const char *sn);
    virtual ~crypto_service_context();

private:

    void do_init();
    void do_deinit();

    struct mbed_crypto_provider m_crypto_provider;
    struct secure_storage_provider m_storage_provider;
    struct direct_caller m_storage_caller;
};

#endif /* STANDALONE_CRYPTO_SERVICE_CONTEXT_H */