/trusty/user/base/lib/hwbcc/test/ |
D | main.cpp | 82 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/ |
D | test.rs | 110 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 …]
|
D | lib.rs | 334 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/ |
D | trusty_remote_provisioning_context.cpp | 170 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/ |
D | common.h | 38 bool validate_bcc_impl(const uint8_t* bcc, 52 bool validate_bcc(const uint8_t* bcc,
|
D | swbcc.h | 65 uint8_t* bcc,
|
/trusty/user/base/lib/hwbcc/client/ |
D | hwbcc.c | 191 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/ |
D | hwbcc.h | 57 uint8_t* bcc,
|
/trusty/user/base/lib/hwbcc/common/ |
D | swbcc.c | 408 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()
|
D | common.cpp | 203 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/ |
D | rpc.rs | 56 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/ |
D | srv.h | 65 uint8_t* bcc,
|