NVIDIA DRIVE OS Linux SDK API Reference

5.2.6 Release
For Test and Development only
tee_cryptographic_constants.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010 GlobalPlatform Inc. All Rights Reserved.
3  * The technology provided or described herein is subject to updates, revisions,
4  * and extensions by GlobalPlatform. Use of this information is governed by the
5  * GlobalPlatform license agreement and any use inconsistent with that agreement
6  * is strictly prohibited
7  *
8  * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
9  * NVIDIA CORPORATION and its licensors retain all intellectual property
10  * and proprietary rights in and to this software, related documentation
11  * and any modifications thereto. Any use, reproduction, disclosure or
12  * distribution of this software and related documentation without an express
13  * license agreement from NVIDIA CORPORATION is strictly prohibited.
14  */
15 
31 #ifndef TEE_INTERNAL_CRYPTOGRAPHIC_CONSTANTS_H
32 #define TEE_INTERNAL_CRYPTOGRAPHIC_CONSTANTS_H
33 
35 typedef enum {
43 
45 
47 /* TODO: Underlying implementation only supports a limited subset */
48 
49 typedef enum {
50  TEE_ALG_AES_ECB_NOPAD = 0x10000010,
51  TEE_ALG_AES_CBC_NOPAD = 0x10000110,
52  TEE_ALG_AES_CTR = 0x10000210,
53  TEE_ALG_AES_CMAC = 0x30000610, /* CBC-MAC w/ AES-128 bit key */
54  TEE_ALG_HMAC_SHA256 = 0x30000004, /* HMAC w/ SHA256 */
55  TEE_ALG_HMAC_SHA384 = 0x30000005, /* HMAC w/ SHA384 */
56  TEE_ALG_HMAC_SHA512 = 0x30000006, /* HMAC w/ SHA512 */
57 
64  TEE_ALG_SHA256 = 0x50000004,
65  TEE_ALG_SHA384 = 0x50000005,
66  TEE_ALG_SHA512 = 0x50000006,
67  TEE_ALG_ECDSA_SHA256 = 0x70003042,
68  TEE_ALG_ED25519 = 0x70006043,
69 
70  /* Not supported */
72  TEE_ALG_AES_CTS = 0x10000310,
73  TEE_ALG_MD5 = 0x50000001,
74  TEE_ALG_SHA1 = 0x50000002,
75  TEE_ALG_SHA224 = 0x50000003,
76  TEE_ALG_ECDSA_SHA1 = 0x70001042,
77  TEE_ALG_ECDSA_SHA224 = 0x70002042,
78  TEE_ALG_ECDSA_SHA384 = 0x70004042,
79  TEE_ALG_ECDSA_SHA512 = 0x70005042,
80  TEE_ALG_HMAC_SHA224 = 0x30000003, /* HMAC w/ SHA224 */
81  TEE_ALG_HMAC_SHA1 = 0x30000002, /* HMAC w/ SHA1 */
83 
85 typedef enum {
88  /*ED25519*/
89  TEE_ECC_CURVE_25519 = 0x00000300,
90 
91  /* Not supported */
95 
98 #endif /* TEE_INTERNAL_CRYPTOGRAPHIC_CONSTANTS_H */
TEE_ALG_MD5
@ TEE_ALG_MD5
Definition: tee_cryptographic_constants.h:73
TEE_OPERATION_AE
@ TEE_OPERATION_AE
Definition: tee_cryptographic_constants.h:38
TEE_ALG_SHA224
@ TEE_ALG_SHA224
Definition: tee_cryptographic_constants.h:75
TEE_OPERATION_CIPHER
@ TEE_OPERATION_CIPHER
Definition: tee_cryptographic_constants.h:36
TEE_OPERATION_KEY_DERIVATION
@ TEE_OPERATION_KEY_DERIVATION
Definition: tee_cryptographic_constants.h:42
TEE_ALG_ECDSA_SHA1
@ TEE_ALG_ECDSA_SHA1
Definition: tee_cryptographic_constants.h:76
TEE_ALG_SHA256
@ TEE_ALG_SHA256
Definition: tee_cryptographic_constants.h:64
TEE_ALG_ECDSA_SHA512
@ TEE_ALG_ECDSA_SHA512
Definition: tee_cryptographic_constants.h:79
TEE_ALG_ECDSA_SHA384
@ TEE_ALG_ECDSA_SHA384
Definition: tee_cryptographic_constants.h:78
TEE_OPERATION_DIGEST
@ TEE_OPERATION_DIGEST
Definition: tee_cryptographic_constants.h:39
TEE_OperationAlgorithm
TEE_OperationAlgorithm
Specifies cryptographic algorithm identifiers.
Definition: tee_cryptographic_constants.h:49
TEE_ALG_HMAC_SHA224
@ TEE_ALG_HMAC_SHA224
Definition: tee_cryptographic_constants.h:80
TEE_ECC_CURVE_25519
@ TEE_ECC_CURVE_25519
Definition: tee_cryptographic_constants.h:89
TEE_CRYPTO_ELEMENT_NONE
@ TEE_CRYPTO_ELEMENT_NONE
Definition: tee_cryptographic_constants.h:86
TEE_ALG_SHA384
@ TEE_ALG_SHA384
Definition: tee_cryptographic_constants.h:65
TEE_ECC_CURVE_NIST_P384
@ TEE_ECC_CURVE_NIST_P384
Definition: tee_cryptographic_constants.h:94
TEE_ALG_ED25519
@ TEE_ALG_ED25519
Definition: tee_cryptographic_constants.h:68
TEE_ALG_SHA1
@ TEE_ALG_SHA1
Definition: tee_cryptographic_constants.h:74
TEE_ECC_CURVE_NIST_P256
@ TEE_ECC_CURVE_NIST_P256
Definition: tee_cryptographic_constants.h:87
TEE_ECC_CURVE_NIST_P224
@ TEE_ECC_CURVE_NIST_P224
Definition: tee_cryptographic_constants.h:93
TEE_ALG_RSASSA_PKCS1_V1_5_SHA512
@ TEE_ALG_RSASSA_PKCS1_V1_5_SHA512
Definition: tee_cryptographic_constants.h:63
TEE_OPERATION_MAC
@ TEE_OPERATION_MAC
Definition: tee_cryptographic_constants.h:37
TEE_ALG_AES_CMAC
@ TEE_ALG_AES_CMAC
Definition: tee_cryptographic_constants.h:53
TEE_OPERATION_ASYMMETRIC_CIPHER
@ TEE_OPERATION_ASYMMETRIC_CIPHER
Definition: tee_cryptographic_constants.h:40
TEE_ALG_ECDSA_SHA224
@ TEE_ALG_ECDSA_SHA224
Definition: tee_cryptographic_constants.h:77
TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA1
@ TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA1
Definition: tee_cryptographic_constants.h:71
TEE_OPERATION_ASYMMETRIC_SIGNATURE
@ TEE_OPERATION_ASYMMETRIC_SIGNATURE
Definition: tee_cryptographic_constants.h:41
TEE_ALG_AES_ECB_NOPAD
@ TEE_ALG_AES_ECB_NOPAD
Definition: tee_cryptographic_constants.h:50
TEE_ALG_SHA512
@ TEE_ALG_SHA512
Definition: tee_cryptographic_constants.h:66
TEE_ALG_RSASSA_PKCS1_V1_5_SHA384
@ TEE_ALG_RSASSA_PKCS1_V1_5_SHA384
Definition: tee_cryptographic_constants.h:62
TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA256
@ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA256
Definition: tee_cryptographic_constants.h:58
TEE_ALG_HMAC_SHA256
@ TEE_ALG_HMAC_SHA256
Definition: tee_cryptographic_constants.h:54
TEE_ECC_CURVE_NIST_P192
@ TEE_ECC_CURVE_NIST_P192
Definition: tee_cryptographic_constants.h:92
TEE_ALG_ECDSA_SHA256
@ TEE_ALG_ECDSA_SHA256
Definition: tee_cryptographic_constants.h:67
TEE_ALG_HMAC_SHA1
@ TEE_ALG_HMAC_SHA1
Definition: tee_cryptographic_constants.h:81
TEE_ALG_RSASSA_PKCS1_V1_5_SHA256
@ TEE_ALG_RSASSA_PKCS1_V1_5_SHA256
Definition: tee_cryptographic_constants.h:61
TEE_ALG_AES_CTR
@ TEE_ALG_AES_CTR
Definition: tee_cryptographic_constants.h:52
TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512
@ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512
Definition: tee_cryptographic_constants.h:60
TEE_EccCurveID
TEE_EccCurveID
List of Supported Cryptographic Elements.
Definition: tee_cryptographic_constants.h:85
TEE_ALG_HMAC_SHA512
@ TEE_ALG_HMAC_SHA512
Definition: tee_cryptographic_constants.h:56
TEE_ALG_AES_CTS
@ TEE_ALG_AES_CTS
Definition: tee_cryptographic_constants.h:72
TEE_OperationClass
TEE_OperationClass
Specifies operation class constants.
Definition: tee_cryptographic_constants.h:35
TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA384
@ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA384
Definition: tee_cryptographic_constants.h:59
TEE_ALG_AES_CBC_NOPAD
@ TEE_ALG_AES_CBC_NOPAD
Definition: tee_cryptographic_constants.h:51
TEE_ALG_HMAC_SHA384
@ TEE_ALG_HMAC_SHA384
Definition: tee_cryptographic_constants.h:55