Home
last modified time | relevance | path

Searched refs:bcc (Results 1 – 12 of 12) sorted by relevance

/trusty/user/base/lib/hwbcc/test/
Dmain.cpp82 TEST_F(swbcc, bcc) { in TEST_F() argument
84 uint8_t bcc[HWBCC_MAX_RESP_PAYLOAD_SIZE]; in TEST_F() local
90 memset(bcc, 0, sizeof(bcc)); in TEST_F()
92 rc = swbcc_get_bcc(_state->s, true, bcc, sizeof(bcc), &bcc_size); in TEST_F()
96 ASSERT_EQ(validate_bcc_impl(bcc, bcc_size, &keys), true); in TEST_F()
113 uint8_t bcc[HWBCC_MAX_RESP_PAYLOAD_SIZE]; in TEST() local
120 memset(bcc, 0, sizeof(bcc)); in TEST()
125 &cose_sign1_size, bcc, sizeof(bcc), &bcc_size); in TEST()
131 ASSERT_EQ(validate_bcc_impl(bcc, bcc_size, &keys1), true); in TEST()
135 memset(bcc, 0, sizeof(bcc)); in TEST()
[all …]
/trusty/user/base/lib/hwbcc/rust/src/
Dtest.rs110 let bcc = get_bcc(HwBccMode::Test, &mut bcc_buf).expect("could not get bcc"); in test_get_bcc_test_mode() localVariable
112 assert!(bcc.len() > 0); in test_get_bcc_test_mode()
122 bcc.as_ptr(), in test_get_bcc_test_mode()
123 bcc.len(), in test_get_bcc_test_mode()
132 let bcc = get_bcc(HwBccMode::Test, &mut bcc_buf).expect("could not get bcc"); in test_get_bcc_test_mode() localVariable
134 assert!(bcc.len() > 0); in test_get_bcc_test_mode()
144 bcc.as_ptr(), in test_get_bcc_test_mode()
145 bcc.len(), in test_get_bcc_test_mode()
171 let bcc = get_bcc(HwBccMode::Release, &mut bcc_buf).expect("could not get bcc"); in test_get_bcc() localVariable
173 assert!(bcc.len() > 0); in test_get_bcc()
[all …]
Dlib.rs334 pub fn get_bcc<'a>(test_mode: HwBccMode, bcc: &'a mut [u8]) -> Result<&'a [u8], HwBccError> { in get_bcc()
335 if bcc.is_empty() { in get_bcc()
348 let bcc = read_payload(response, bcc)?; in get_bcc() localVariable
350 Ok(bcc) in get_bcc()
/trusty/user/app/keymaster/
Dtrusty_remote_provisioning_context.cpp170 std::vector<uint8_t> bcc(HWBCC_MAX_RESP_PAYLOAD_SIZE); in BuildProtectedDataPayload() local
176 &actualSignedMacKeySize, bcc.data(), bcc.size(), &actualBccSize); in BuildProtectedDataPayload()
182 bcc.resize(actualBccSize); in BuildProtectedDataPayload()
185 .add(cppbor::EncodedItem(std::move(bcc))) in BuildProtectedDataPayload()
228 std::vector<uint8_t> bcc(HWBCC_MAX_RESP_PAYLOAD_SIZE); in BuildCsr() local
235 signedData.size(), &actualSignedDataSize, bcc.data(), bcc.size(), in BuildCsr()
242 bcc.resize(actualBccSize); in BuildCsr()
247 .add(cppbor::EncodedItem(std::move(bcc))) in BuildCsr()
/trusty/user/base/lib/hwbcc/common/include/lib/hwbcc/common/
Dcommon.h38 bool validate_bcc_impl(const uint8_t* bcc,
52 bool validate_bcc(const uint8_t* bcc,
Dswbcc.h65 uint8_t* bcc,
/trusty/user/base/lib/hwbcc/client/
Dhwbcc.c191 uint8_t* bcc, in get_bcc() argument
196 assert(bcc); in get_bcc()
215 return recv_resp(chan, &hdr, bcc, bcc_buf_size, bcc_size); in get_bcc()
227 uint8_t* bcc, in hwbcc_get_protected_data() argument
246 rc = get_bcc(chan, test_mode, bcc, bcc_buf_size, bcc_size); in hwbcc_get_protected_data()
/trusty/user/base/lib/hwbcc/client/include/lib/hwbcc/client/
Dhwbcc.h57 uint8_t* bcc,
/trusty/user/base/lib/hwbcc/common/
Dswbcc.c408 uint8_t* bcc, in swbcc_get_bcc() argument
420 assert(bcc); in swbcc_get_bcc()
433 CborOutInit(bcc, bcc_buf_size, &out); in swbcc_get_bcc()
438 bcc += bcc_used; in swbcc_get_bcc()
444 bcc, &bcc_used); in swbcc_get_bcc()
451 bcc += bcc_used; in swbcc_get_bcc()
456 rc = encode_degenerate_cert(srv_state.dice_ctx, seed, bcc, bcc_buf_size, in swbcc_get_bcc()
Dcommon.cpp203 bool validate_bcc(const uint8_t* bcc, in validate_bcc() argument
209 if (!validate_bcc_impl(bcc, bcc_size, &keys)) { in validate_bcc()
226 bool validate_bcc_impl(const uint8_t* bcc, in validate_bcc_impl() argument
235 auto [parsed_bcc, _, err_msg] = cppbor::parse(bcc, bcc_size); in validate_bcc_impl()
/trusty/user/app/keymint/
Drpc.rs56 let bcc = get_bcc(HwBccMode::Release, &mut bcc_buf) in get_dice_info() localVariable
61 PubDiceArtifacts { uds_certs: uds_certs_data, dice_cert_chain: bcc.to_vec() }; in get_dice_info()
/trusty/user/base/lib/hwbcc/srv/include/lib/hwbcc/srv/
Dsrv.h65 uint8_t* bcc,