aboutsummaryrefslogtreecommitdiff
path: root/protocols/service/crypto/packed-c/asymmetric_encrypt.h
blob: 9854a95497999bc6a3b23261e3bc20a7b3a40745 (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 TS_CRYPTO_ASYMMETRIC_ENCRYPT_H
#define TS_CRYPTO_ASYMMETRIC_ENCRYPT_H

#include <stdint.h>

/* Mandatory fixed sized input parameters */
struct __attribute__ ((__packed__)) ts_crypto_asymmetric_encrypt_in
{
  uint32_t handle;
  uint32_t alg;
};

/* Variable length input parameter tags */
enum
{
    TS_CRYPTO_ASYMMETRIC_ENCRYPT_IN_TAG_PLAINTEXT  = 1,
    TS_CRYPTO_ASYMMETRIC_ENCRYPT_IN_TAG_SALT  = 2
};

/* Variable length output parameter tags */
enum
{
    TS_CRYPTO_ASYMMETRIC_ENCRYPT_OUT_TAG_CIPHERTEXT  = 1
};

#endif /* TS_CRYPTO_ASYMMETRIC_ENCRYPT_H */