| /trusty/user/app/keymint/ |
| D | secure_storage_manager.rs | 59 fn get_key_slot_file_name(algorithm: SigningAlgorithm) -> String { in get_key_slot_file_name() 60 let suffix = match algorithm { in get_key_slot_file_name() 128 fn create_attestation_key_file(algorithm: SigningAlgorithm) -> Result<OpenSecureFile, Error> { in create_attestation_key_file() 129 let file_name = get_key_slot_file_name(algorithm); in create_attestation_key_file() 134 algorithm: SigningAlgorithm, in write_protobuf_to_attestation_key_file() 140 let mut file = create_attestation_key_file(algorithm)?; in write_protobuf_to_attestation_key_file() 149 algorithm: SigningAlgorithm, in set_wrapped_attestation_key() 153 provision_attestation_key_file(algorithm, &unwrapped_key) in set_wrapped_attestation_key() 159 algorithm: SigningAlgorithm, in provision_attestation_key_file() 162 let mut attestation_key = read_attestation_key_content(algorithm)?; in provision_attestation_key_file() [all …]
|
| D | ipc_manager.rs | 93 algorithm: Algorithm, in keymaster_algorithm_to_signing_algorithm() 95 match algorithm { in keymaster_algorithm_to_signing_algorithm() 101 algorithm as u32 in keymaster_algorithm_to_signing_algorithm() 335 let algorithm = keymaster_algorithm_to_signing_algorithm(req.algorithm)?; in handle_message() localVariable 336 secure_storage_manager::provision_attestation_key_file(algorithm, &req.key_data)?; in handle_message() 340 let algorithm = keymaster_algorithm_to_signing_algorithm(req.algorithm)?; in handle_message() localVariable 341 secure_storage_manager::append_attestation_cert_chain(algorithm, &req.cert_data)?; in handle_message() 347 let algorithm = keymaster_algorithm_to_signing_algorithm(req.algorithm)?; in handle_message() localVariable 348 secure_storage_manager::clear_attestation_cert_chain(algorithm)?; in handle_message() 354 let algorithm = keymaster_algorithm_to_signing_algorithm(req.algorithm)?; in handle_message() localVariable [all …]
|
| /trusty/user/app/keymaster/ |
| D | trusty_keymaster_messages.h | 148 buf = append_uint32_to_buf(buf, end, algorithm); in Serialize() 152 return copy_keymaster_algorithm_from_buf(buf_ptr, end, &algorithm) && in Deserialize() 156 keymaster_algorithm_t algorithm; member 168 return append_uint32_to_buf(buf, end, algorithm); in Serialize() 171 return copy_keymaster_algorithm_from_buf(buf_ptr, end, &algorithm); in Deserialize() 174 keymaster_algorithm_t algorithm; member 186 buf = append_uint32_to_buf(buf, end, algorithm); in Serialize() 190 return copy_keymaster_algorithm_from_buf(buf_ptr, end, &algorithm) && in Deserialize() 194 keymaster_algorithm_t algorithm; member
|
| D | trusty_keymaster.cpp | 83 keymaster_algorithm_t algorithm) { in keymaster_algorithm_to_key_slot() argument 84 switch (algorithm) { in keymaster_algorithm_to_key_slot() 109 key_slot = keymaster_algorithm_to_key_slot(request.algorithm); in SetAttestationKey() 169 keymaster_algorithm_to_key_slot(request.algorithm); in SetWrappedAttestationKey() 218 key_slot = keymaster_algorithm_to_key_slot(request.algorithm); in ClearAttestationCertChain() 264 switch (request.algorithm) { in AppendAttestationCertChain()
|
| D | trusty_keymaster_context.h | 64 keymaster_algorithm_t algorithm) const override; 66 keymaster_algorithm_t algorithm, 120 KeymasterKeyBlob GetAttestationKey(keymaster_algorithm_t algorithm, 124 keymaster_algorithm_t algorithm,
|
| D | trusty_keymaster_context.cpp | 126 keymaster_algorithm_t algorithm) const { in GetKeyFactory() 127 switch (algorithm) { in GetKeyFactory() 154 keymaster_algorithm_t algorithm, in GetOperationFactory() argument 156 const KeyFactory* key_factory = GetKeyFactory(algorithm); in GetOperationFactory() 723 keymaster_algorithm_t algorithm; in ParseKeyBlob() local 724 if (!deserialized_key->hw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm)) { in ParseKeyBlob() 728 auto factory = GetKeyFactory(algorithm); in ParseKeyBlob() 1106 keymaster_algorithm_t algorithm, in GetAttestationKey() argument 1110 switch (algorithm) { in GetAttestationKey() 1134 auto key = getAttestationKey(algorithm, error); in GetAttestationKey() [all …]
|
| /trusty/user/base/lib/hwbcc/common/ |
| D | common.cpp | 48 const cppbor::Int* algorithm = cose_key->get(3)->asInt(); in validate_pub_key_ed25519() local 64 CHECK_NOT_NULL(algorithm); in validate_pub_key_ed25519() 69 CHECK_EQ(algorithm->value(), -8); in validate_pub_key_ed25519() 86 const cppbor::Int* algorithm = params->get(1)->asInt(); in validate_protected_params() local 87 CHECK_EQ(algorithm->value(), -8); in validate_protected_params()
|
| /trusty/user/base/interface/hwbcc/include/interface/hwbcc/ |
| D | hwbcc.h | 91 int16_t algorithm; member
|
| /trusty/user/base/app/acvp/ |
| D | acvp.cpp | 51 "algorithm": "KDF", 73 "algorithm": "KDA", 353 const bssl::Span<const uint8_t> algorithm = args[0]; in FindTrustyHandler() local 355 if (StringEq(algorithm, func.name)) { in FindTrustyHandler() 366 const std::string name(reinterpret_cast<const char*>(algorithm.data()), in FindTrustyHandler() 367 algorithm.size()); in FindTrustyHandler()
|
| /trusty/user/base/lib/hwbcc/srv/include/lib/hwbcc/srv/ |
| D | srv.h | 55 int32_t algorithm,
|
| /trusty/user/base/lib/hwbcc/rust/src/ |
| D | lib.rs | 103 fn add_signing_req(&mut self, algorithm: SigningAlgorithm, data: &'a [u8], aad: &'a [u8]) { in add_signing_req() 104 self.sign_req = Some(SignDataMsg::new(algorithm, data, aad)); in add_signing_req() 141 algorithm: SigningAlgorithm, field 151 fn new(algorithm: SigningAlgorithm, data: &'a [u8], aad: &'a [u8]) -> Self { in new() 152 Self { algorithm, data, data_size: data.len() as u16, aad, aad_size: aad.len() as u32 } in new() 165 serializer.serialize_as_bytes(&self.algorithm)?; in serialize()
|
| D | srv.rs | 96 let algorithm = SigningAlgorithm::from_i16(sign_header.algorithm) in deserialize_signing_msg() localVariable 136 algorithm, in deserialize_signing_msg()
|
| /trusty/kernel/lib/libcxx-trusty/ |
| D | rules.mk | 60 $(LIBCXX_DIR)/src/algorithm.cpp \
|
| /trusty/user/base/lib/libstdc++-trusty/ |
| D | rules.mk | 42 $(LIBCXX_DIR)/src/algorithm.cpp \
|
| /trusty/user/base/lib/hwbcc/srv/ |
| D | srv.c | 154 rc = hwbcc_ops->sign_key(s, test_mode, args->algorithm, data_and_aad, in handle_sign_data()
|
| /trusty/user/base/lib/hwbcc/client/ |
| D | hwbcc.c | 134 req.args.algorithm = cose_algorithm; in sign_data()
|
| /trusty/user/app/sample/hwcryptohal/server/ |
| D | service_encryption_key.rs | 315 .algorithm(coset::iana::Algorithm::A256GCM) in try_from()
|