Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateAKCert() ([]byte, error)
- func GetQcaServer() string
- func GetTAReport(ta_uuid []byte, usr_data []byte, with_tcb bool) ([]byte, error)
- func HandleFlags()
- func InitFlags()
- func LoadConfigs()
- func SaveAKCert(cert []byte) error
- func SetScenario(s int32)
- type Go_ra_buffer_data
Constants ¶
View Source
const ( // config info // ConfName means config file name ConfName = "config" // ConfExt means config file name suffix ConfExt = "yaml" // Server means qcaconfig server Server = "qcaconfig.server" // AKServer means qcaconfig akserver AKServer = "qcaconfig.akserver" // Scenario means qcaconfig scenario Scenario = "qcaconfig.scenario" // NoDaaACFile means qcaconfig nodaaacfile NoDaaACFile = "qcaconfig.nodaaacfile" // DaaACFile means qcaconfig daaacfile DaaACFile = "qcaconfig.daaacfile" // RemoteAttest Handler RAProvisionInHandler = "provisioning-input" RAProvisionOutHandler = "provisioning-output" RAReportInHandler = "report-input" RAReportOutHandler = "report-output" RASaveAKCertHandler = "saveakcert-input" )
View Source
const ( ZERO_VALUE = 0 UINT32_BYTES_LENGTH = 4 UINT64_BYTES_LENGTH = 8 NoAS_ERROR_RETURN_CODE = 1 TYPE_CONV_ERROR_RETURN_CODE = -1 // alg type RA_ALG_RSA_3072 = 0x20000 RA_ALG_RSA_4096 = 0x20001 // PSS padding RA_ALG_SHA_256 = 0x20002 RA_ALG_SHA_384 = 0x20003 RA_ALG_SHA_512 = 0x20004 RA_ALG_ECDSA = 0x20005 RA_ALG_ED25519 = 0x20006 RA_ALG_SM2_DSA_SM3 = 0x20007 RA_ALG_SM3 = 0x20008 RA_ALG_DAA_GRP_FP256BN = 0x20009 // app scenario RA_SCENARIO_NO_AS_INT = 0 RA_SCENARIO_AS_NO_DAA_INT = 1 RA_SCENARIO_AS_WITH_DAA_INT = 2 )
View Source
const ( // version type: "TEE.RA.[Major].[Minor]" RA_VERSION = "TEE.RA.1.0" // app scenario RA_SCENARIO_NO_AS = "sce_no_as" RA_SCENARIO_AS_NO_DAA = "sce_as_no_daa" RA_SCENARIO_AS_WITH_DAA = "sce_as_with_daa" // hash algorithm RA_HASH_ALG_SHA256 = "HS256" // daa curve type RA_DAA_CURVE_FP256BN = "Fp256BN" RA_DAA_CURVE_FP512BN = "Fp512BN" )
Variables ¶
Functions ¶
func GenerateAKCert ¶
GenerateAKCert generates ak cert according to qca server scenario configuration.
func GetQcaServer ¶
func GetQcaServer() string
GetQcaServer returns the qca service server configuration.
func GetTAReport ¶
GetTAReport gets TA trusted report information.
func SaveAKCert ¶
SaveAKCert saves ak cert to the specified file.
func SetScenario ¶
func SetScenario(s int32)
SetScenario sets the qca service scenario configuration.
Types ¶
type Go_ra_buffer_data ¶
Go_ra_buffer_data is used to store ra buffer data
Click to show internal directories.
Click to hide internal directories.