NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ote_attrs.h File Reference

Detailed Description

NVIDIA Trusted Little Kernel Interface: Service Attributes

Description: Declares the service attributes in the TLK.

Definition in file ote_attrs.h.

Go to the source code of this file.

Data Structures

struct  te_attribute_t
 Defines attribute object internals. More...
 

Macros

#define OTE_ATTR_VAL   1 << 29
 Defines attribute ID type flag bitmasks. More...
 
#define OTE_ATTR_PUB   1 << 28
 

Enumerations

enum  te_attribute_id_t {
  OTE_ATTR_SECRET_VALUE = 0xC0000000U,
  OTE_ATTR_RSA_MODULES = 0xD0000130U,
  OTE_ATTR_RSA_PUBLIC_EXPONENT = 0xD0000230U,
  OTE_ATTR_RSA_PRIVATE_EXPONENT = 0xC0000330U,
  OTE_ATTR_RSA_PRIME1 = 0xC0000430U,
  OTE_ATTR_RSA_PRIME2 = 0xC0000530U,
  OTE_ATTR_RSA_EXPONENT1 = 0xC0000630U,
  OTE_ATTR_RSA_EXPONENT2 = 0xC0000730U,
  OTE_ATTR_RSA_COEFFICIENT = 0xC0000830U,
  OTE_ATTR_DSA_PRIME = 0xD0001031U,
  OTE_ATTR_DSA_SUBPRIME = 0xD0001131U,
  OTE_ATTR_DSA_BASE = 0xD0001231U,
  OTE_ATTR_DSA_PUBLIC_VALUE = 0xD0000131U,
  OTE_ATTR_DSA_PRIVATE_VALUE = 0xD0000231U,
  OTE_ATTR_DH_PRIME = 0xD0001032U,
  OTE_ATTR_DH_SUBPRIME = 0xD0001132U,
  OTE_ATTR_DH_BASE = 0xD0001232U,
  OTE_ATTR_DH_X_BITS = 0xF0001332U,
  OTE_ATTR_DH_PUBLIC_VALUE = 0xD0000132U,
  OTE_ATTR_DH_PRIVATE_VALUE = 0xC0000232U,
  OTE_ATTR_RSA_OAEP_LABEL = 0xD0000930U,
  OTE_ATTR_RSA_PSS_SALT_LENGTH = 0xF0000A30U
}
 Defines attribute ID types. More...
 

Functions

te_error_t te_set_mem_attribute (te_attribute_t *attr, te_attribute_id_t id, void *buffer, uint32_t size)
 Sets up a memory attribute struct for use in other functions. More...
 
te_error_t te_get_mem_attribute_buffer (te_attribute_t *attr, void **ret)
 Gets a memory attribute buffer. More...
 
te_error_t te_get_mem_attribute_size (te_attribute_t *attr, size_t *ret)
 Gets memory attribute size. More...
 
void te_copy_mem_attribute (void *buffer, te_attribute_t *key)
 Copies the memory attribute. More...
 
te_error_t te_set_int_attribute (te_attribute_t *attr, te_attribute_id_t id, uint32_t a, uint32_t b)
 Sets the integer attribute. More...
 
void te_free_internal_attribute (te_attribute_t *attr)
 Frees internal attribute memory. More...
 
te_error_t te_copy_attribute (te_attribute_t *dst, te_attribute_t *src)
 Copies attribute internals. More...