Searched refs:wrapped_keybox (Results 1 – 7 of 7) sorted by relevance
/trusty/user/app/sample/hwcrypto/keybox/ |
D | keybox_fake_provider.c | 39 enum keybox_status keybox_unwrap(const uint8_t* wrapped_keybox, in keybox_unwrap() argument 58 checksum ^= wrapped_keybox[i]; in keybox_unwrap() 61 if (checksum != wrapped_keybox[wrapped_keybox_len - 1]) { in keybox_unwrap() 68 keybox_plaintext[i] = wrapped_keybox[i] ^ 0x42; in keybox_unwrap()
|
D | srv.c | 56 uint8_t wrapped_keybox[KEYBOX_MAX_SIZE]; member 89 req->wrapped_keybox, req->unwrap_header.wrapped_keybox_len, output, in keybox_handle_unwrap()
|
/trusty/user/app/keymint/ |
D | keybox.rs | 43 pub(crate) fn keybox_unwrap(&self, wrapped_keybox: &[u8]) -> Result<Vec<u8>, Error> { in keybox_unwrap() 44 let req = KeyboxUnwrapReq::new(wrapped_keybox); in keybox_unwrap() 50 let mut buffer = vec_try![0; wrapped_keybox.len() + KEYBOX_RESP_HDR_SIZE]?; in keybox_unwrap() 59 pub(crate) fn keybox_unwrap(wrapped_keybox: &[u8]) -> Result<Vec<u8>, Error> { in keybox_unwrap() 63 keybox.keybox_unwrap(wrapped_keybox) in keybox_unwrap()
|
D | ffi_bindings.rs | 71 wrapped_keybox: &'a [u8], field 75 pub(crate) fn new(wrapped_keybox: &'a [u8]) -> Self { in new() 78 KeyboxUnwrapReqPayloadHdr { wrapped_keybox_len: wrapped_keybox.len() as u64 }; in new() 79 KeyboxUnwrapReq { req_header, unwrap_req_header, wrapped_keybox } in new() 96 serializer.serialize_bytes(self.wrapped_keybox) in serialize()
|
/trusty/user/app/cast-auth/app/test-app/ |
D | main.cc | 208 uint8_t* wrapped_keybox, in keybox_wrap_for_test() argument 219 wrapped_keybox[i] = keybox_plaintext[i] ^ 0x42; in keybox_wrap_for_test() 223 wrapped_keybox[keybox_plaintext_len] = checksum; in keybox_wrap_for_test() 269 std::vector<uint8_t> wrapped_keybox(test_pkcs1_der.size() + 1); in TEST_F() local 272 wrapped_keybox.data(), wrapped_keybox.size(), in TEST_F() 274 wrapped_keybox.resize(wrapped_keybox_len); in TEST_F() 277 auto status = _state->srv->ProvisionKey(wrapped_keybox); in TEST_F()
|
/trusty/user/base/lib/keybox/client/include/lib/keybox/client/ |
D | keybox.h | 42 int keybox_unwrap(const uint8_t* wrapped_keybox,
|
/trusty/user/base/lib/keybox/client/ |
D | client.c | 37 int keybox_unwrap(const uint8_t* wrapped_keybox, in keybox_unwrap() argument 53 rc = tipc_send2(chan, &req, sizeof(req), wrapped_keybox, in keybox_unwrap()
|