diff options
Diffstat (limited to 'protocols/service/crypto/packed-c/sign_hash.h')
-rw-r--r-- | protocols/service/crypto/packed-c/sign_hash.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/protocols/service/crypto/packed-c/sign_hash.h b/protocols/service/crypto/packed-c/sign_hash.h new file mode 100644 index 000000000..762125c1e --- /dev/null +++ b/protocols/service/crypto/packed-c/sign_hash.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef TS_CRYPTO_SIGN_HASH_H +#define TS_CRYPTO_SIGN_HASH_H + +#include <stdint.h> + +/* Mandatory fixed sized input parameters */ +struct __attribute__ ((__packed__)) ts_crypto_sign_hash_in +{ + uint32_t handle; + uint32_t alg; +}; + +/* Variable length input parameter tags */ +enum +{ + TS_CRYPTO_SIGN_HASH_IN_TAG_HASH = 1, +}; + +/* Variable length output parameter tags */ +enum +{ + TS_CRYPTO_SIGN_HASH_OUT_TAG_SIGNATURE = 1 +}; + +#endif /* TS_CRYPTO_SIGN_HASH_H */
\ No newline at end of file |