195 lines
10 KiB
C
195 lines
10 KiB
C
/* Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary
|
|
source code may only be used and distributed under the Widevine Master
|
|
License Agreement. */
|
|
|
|
#ifndef OEMCRYPTO_TA_OEMCRYPTO_API_MACROS_H_
|
|
#define OEMCRYPTO_TA_OEMCRYPTO_API_MACROS_H_
|
|
|
|
#ifdef OEMCRYPTO_TA_TEST_ONLY
|
|
/* Only used for testing. This is so the TA can directly build with the
|
|
unittests. */
|
|
/* clang-format off */
|
|
#define OEMCrypto_Initialize _oecc01
|
|
#define OEMCrypto_Terminate _oecc02
|
|
#define OEMCrypto_InstallKeybox _oecc03
|
|
#define OEMCrypto_InstallRootKeyCertificate _oecc03
|
|
#define OEMCrypto_InstallKeyboxOrOEMCert _oecc03
|
|
#define OEMCrypto_GetKeyData _oecc04
|
|
#define OEMCrypto_IsKeyboxValid _oecc05
|
|
#define OEMCrypto_IsRootKeyCertificateValid _oecc05
|
|
#define OEMCrypto_IsKeyboxOrOEMCertValid _oecc05
|
|
#define OEMCrypto_GetRandom _oecc06
|
|
#define OEMCrypto_GetDeviceID _oecc07
|
|
#define OEMCrypto_WrapKeybox _oecc08
|
|
#define OEMCrypto_WrapRootKeyCertificate _oecc08
|
|
#define OEMCrypto_WrapKeyboxOrOEMCert _oecc08
|
|
#define OEMCrypto_OpenSession _oecc09
|
|
#define OEMCrypto_CloseSession _oecc10
|
|
#define OEMCrypto_DecryptCTR_V10 _oecc11
|
|
#define OEMCrypto_GenerateDerivedKeys _oecc12
|
|
#define OEMCrypto_GenerateSignature _oecc13
|
|
#define OEMCrypto_GenerateNonce _oecc14
|
|
#define OEMCrypto_LoadKeys_V8 _oecc15
|
|
#define OEMCrypto_RefreshKeys_V14 _oecc16
|
|
#define OEMCrypto_SelectKey_V13 _oecc17
|
|
#define OEMCrypto_RewrapDeviceRSAKey _oecc18
|
|
#define OEMCrypto_LoadDeviceRSAKey _oecc19
|
|
#define OEMCrypto_GenerateRSASignature_V8 _oecc20
|
|
#define OEMCrypto_DeriveKeysFromSessionKey _oecc21
|
|
#define OEMCrypto_APIVersion _oecc22
|
|
#define OEMCrypto_SecurityLevel _oecc23
|
|
#define OEMCrypto_Generic_Encrypt _oecc24
|
|
#define OEMCrypto_Generic_Decrypt _oecc25
|
|
#define OEMCrypto_Generic_Sign _oecc26
|
|
#define OEMCrypto_Generic_Verify _oecc27
|
|
#define OEMCrypto_GetHDCPCapability_V9 _oecc28
|
|
#define OEMCrypto_SupportsUsageTable _oecc29
|
|
#define OEMCrypto_UpdateUsageTable _oecc30
|
|
#define OEMCrypto_DeactivateUsageEntry_V12 _oecc31
|
|
#define OEMCrypto_ReportUsage _oecc32
|
|
#define OEMCrypto_DeleteUsageEntry _oecc33
|
|
#define OEMCrypto_DeleteOldUsageTable _oecc34
|
|
#define OEMCrypto_LoadKeys_V9_or_V10 _oecc35
|
|
#define OEMCrypto_GenerateRSASignature _oecc36
|
|
#define OEMCrypto_GetMaxNumberOfSessions _oecc37
|
|
#define OEMCrypto_GetNumberOfOpenSessions _oecc38
|
|
#define OEMCrypto_IsAntiRollbackHwPresent _oecc39
|
|
#define OEMCrypto_CopyBuffer_V14 _oecc40
|
|
#define OEMCrypto_QueryKeyControl _oecc41
|
|
#define OEMCrypto_LoadTestKeybox_V13 _oecc42
|
|
#define OEMCrypto_ForceDeleteUsageEntry _oecc43
|
|
#define OEMCrypto_GetHDCPCapability _oecc44
|
|
#define OEMCrypto_LoadTestRSAKey _oecc45
|
|
#define OEMCrypto_Security_Patch_Level _oecc46
|
|
#define OEMCrypto_LoadKeys_V11_or_V12 _oecc47
|
|
#define OEMCrypto_DecryptCENC _oecc48
|
|
#define OEMCrypto_GetProvisioningMethod _oecc49
|
|
#define OEMCrypto_GetOEMPublicCertificate _oecc50
|
|
#define OEMCrypto_RewrapDeviceRSAKey30 _oecc51
|
|
#define OEMCrypto_SupportedCertificates _oecc52
|
|
#define OEMCrypto_IsSRMUpdateSupported _oecc53
|
|
#define OEMCrypto_GetCurrentSRMVersion _oecc54
|
|
#define OEMCrypto_LoadSRM _oecc55
|
|
#define OEMCrypto_LoadKeys_V13 _oecc56
|
|
#define OEMCrypto_RemoveSRM _oecc57
|
|
#define OEMCrypto_CreateUsageTableHeader _oecc61
|
|
#define OEMCrypto_LoadUsageTableHeader _oecc62
|
|
#define OEMCrypto_CreateNewUsageEntry _oecc63
|
|
#define OEMCrypto_LoadUsageEntry _oecc64
|
|
#define OEMCrypto_UpdateUsageEntry _oecc65
|
|
#define OEMCrypto_DeactivateUsageEntry _oecc66
|
|
#define OEMCrypto_ShrinkUsageTableHeader _oecc67
|
|
#define OEMCrypto_MoveEntry _oecc68
|
|
#define OEMCrypto_CopyOldUsageEntry _oecc69
|
|
#define OEMCrypto_CreateOldUsageEntry _oecc70
|
|
#define OEMCrypto_GetAnalogOutputFlags _oecc71
|
|
#define OEMCrypto_LoadTestKeybox _oecc78
|
|
#define OEMCrypto_LoadEntitledContentKeys_V14 _oecc79
|
|
#define OEMCrypto_SelectKey _oecc81
|
|
#define OEMCrypto_LoadKeys_V14 _oecc82
|
|
#define OEMCrypto_LoadKeys _oecc83
|
|
#define OEMCrypto_SetSandbox _oecc84
|
|
#define OEMCrypto_ResourceRatingTier _oecc85
|
|
#define OEMCrypto_SupportsDecryptHash _oecc86
|
|
#define OEMCrypto_InitializeDecryptHash _oecc87
|
|
#define OEMCrypto_SetDecryptHash _oecc88
|
|
#define OEMCrypto_GetHashErrorCode _oecc89
|
|
#define OEMCrypto_BuildInformation _oecc90
|
|
#define OEMCrypto_RefreshKeys _oecc91
|
|
#define OEMCrypto_LoadEntitledContentKeys _oecc92
|
|
#define OEMCrypto_CopyBuffer _oecc93
|
|
#else
|
|
#define OEMCrypto_Initialize _oecctee01
|
|
#define OEMCrypto_Terminate _oecctee02
|
|
#define OEMCrypto_InstallKeybox _oecctee03
|
|
#define OEMCrypto_InstallRootKeyCertificate _oecctee03
|
|
#define OEMCrypto_InstallKeyboxOrOEMCert _oecctee03
|
|
#define OEMCrypto_GetKeyData _oecctee04
|
|
#define OEMCrypto_IsKeyboxValid _oecctee05
|
|
#define OEMCrypto_IsRootKeyCertificateValid _oecctee05
|
|
#define OEMCrypto_IsKeyboxOrOEMCertValid _oecctee05
|
|
#define OEMCrypto_GetRandom _oecctee06
|
|
#define OEMCrypto_GetDeviceID _oecctee07
|
|
#define OEMCrypto_WrapKeybox _oecctee08
|
|
#define OEMCrypto_WrapRootKeyCertificate _oecctee08
|
|
#define OEMCrypto_WrapKeyboxOrOEMCert _oecctee08
|
|
#define OEMCrypto_OpenSession _oecctee09
|
|
#define OEMCrypto_CloseSession _oecctee10
|
|
#define OEMCrypto_DecryptCTR_V10 _oecctee11
|
|
#define OEMCrypto_GenerateDerivedKeys _oecctee12
|
|
#define OEMCrypto_GenerateSignature _oecctee13
|
|
#define OEMCrypto_GenerateNonce _oecctee14
|
|
#define OEMCrypto_LoadKeys_V8 _oecctee15
|
|
#define OEMCrypto_RefreshKeys_V14 _oecctee16
|
|
#define OEMCrypto_SelectKey_V13 _oecctee17
|
|
#define OEMCrypto_RewrapDeviceRSAKey _oecctee18
|
|
#define OEMCrypto_LoadDeviceRSAKey _oecctee19
|
|
#define OEMCrypto_GenerateRSASignature_V8 _oecctee20
|
|
#define OEMCrypto_DeriveKeysFromSessionKey _oecctee21
|
|
#define OEMCrypto_APIVersion _oecctee22
|
|
#define OEMCrypto_SecurityLevel _oecctee23
|
|
#define OEMCrypto_Generic_Encrypt _oecctee24
|
|
#define OEMCrypto_Generic_Decrypt _oecctee25
|
|
#define OEMCrypto_Generic_Sign _oecctee26
|
|
#define OEMCrypto_Generic_Verify _oecctee27
|
|
#define OEMCrypto_GetHDCPCapability_V9 _oecctee28
|
|
#define OEMCrypto_SupportsUsageTable _oecctee29
|
|
#define OEMCrypto_UpdateUsageTable _oecctee30
|
|
#define OEMCrypto_DeactivateUsageEntry_V12 _oecctee31
|
|
#define OEMCrypto_ReportUsage _oecctee32
|
|
#define OEMCrypto_DeleteUsageEntry _oecctee33
|
|
#define OEMCrypto_DeleteOldUsageTable _oecctee34
|
|
#define OEMCrypto_LoadKeys_V9_or_V10 _oecctee35
|
|
#define OEMCrypto_GenerateRSASignature _oecctee36
|
|
#define OEMCrypto_GetMaxNumberOfSessions _oecctee37
|
|
#define OEMCrypto_GetNumberOfOpenSessions _oecctee38
|
|
#define OEMCrypto_IsAntiRollbackHwPresent _oecctee39
|
|
#define OEMCrypto_CopyBuffer_V14 _oecctee40
|
|
#define OEMCrypto_QueryKeyControl _oecctee41
|
|
#define OEMCrypto_LoadTestKeybox_V13 _oecctee42
|
|
#define OEMCrypto_ForceDeleteUsageEntry _oecctee43
|
|
#define OEMCrypto_GetHDCPCapability _oecctee44
|
|
#define OEMCrypto_LoadTestRSAKey _oecctee45
|
|
#define OEMCrypto_Security_Patch_Level _oecctee46
|
|
#define OEMCrypto_LoadKeys_V11_or_V12 _oecctee47
|
|
#define OEMCrypto_DecryptCENC _oecctee48
|
|
#define OEMCrypto_GetProvisioningMethod _oecctee49
|
|
#define OEMCrypto_GetOEMPublicCertificate _oecctee50
|
|
#define OEMCrypto_RewrapDeviceRSAKey30 _oecctee51
|
|
#define OEMCrypto_SupportedCertificates _oecctee52
|
|
#define OEMCrypto_IsSRMUpdateSupported _oecctee53
|
|
#define OEMCrypto_GetCurrentSRMVersion _oecctee54
|
|
#define OEMCrypto_LoadSRM _oecctee55
|
|
#define OEMCrypto_LoadKeys_V13 _oecctee56
|
|
#define OEMCrypto_RemoveSRM _oecctee57
|
|
#define OEMCrypto_CreateUsageTableHeader _oecctee61
|
|
#define OEMCrypto_LoadUsageTableHeader _oecctee62
|
|
#define OEMCrypto_CreateNewUsageEntry _oecctee63
|
|
#define OEMCrypto_LoadUsageEntry _oecctee64
|
|
#define OEMCrypto_UpdateUsageEntry _oecctee65
|
|
#define OEMCrypto_DeactivateUsageEntry _oecctee66
|
|
#define OEMCrypto_ShrinkUsageTableHeader _oecctee67
|
|
#define OEMCrypto_MoveEntry _oecctee68
|
|
#define OEMCrypto_CopyOldUsageEntry _oecctee69
|
|
#define OEMCrypto_CreateOldUsageEntry _oecctee70
|
|
#define OEMCrypto_GetAnalogOutputFlags _oecctee71
|
|
#define OEMCrypto_LoadTestKeybox _oecctee78
|
|
#define OEMCrypto_LoadEntitledContentKeys_V14 _oecctee79
|
|
#define OEMCrypto_SelectKey _oecctee81
|
|
#define OEMCrypto_LoadKeys_V14 _oecctee82
|
|
#define OEMCrypto_LoadKeys _oecctee83
|
|
#define OEMCrypto_SetSandbox _oecctee84
|
|
#define OEMCrypto_ResourceRatingTier _oecctee85
|
|
#define OEMCrypto_SupportsDecryptHash _oecctee86
|
|
#define OEMCrypto_InitializeDecryptHash _oecctee87
|
|
#define OEMCrypto_SetDecryptHash _oecctee88
|
|
#define OEMCrypto_GetHashErrorCode _oecctee89
|
|
#define OEMCrypto_BuildInformation _oecctee90
|
|
#define OEMCrypto_RefreshKeys _oecctee91
|
|
#define OEMCrypto_LoadEntitledContentKeys _oecctee92
|
|
#define OEMCrypto_CopyBuffer _oecctee93
|
|
/* clang-format on */
|
|
#endif
|
|
|
|
#endif /* OEMCRYPTO_TA_OEMCRYPTO_API_MACROS_H_ */
|