/trusty/user/app/keymint/ |
D | secure_storage_manager.rs | 52 fn get_key_slot_file_name(algorithm: SigningAlgorithm) -> String { in get_key_slot_file_name() 53 let suffix = match algorithm { in get_key_slot_file_name() 121 fn create_attestation_key_file(algorithm: SigningAlgorithm) -> Result<OpenSecureFile, Error> { in create_attestation_key_file() 122 let file_name = get_key_slot_file_name(algorithm); in create_attestation_key_file() 127 algorithm: SigningAlgorithm, in write_protobuf_to_attestation_key_file() 133 let mut file = create_attestation_key_file(algorithm)?; in write_protobuf_to_attestation_key_file() 142 algorithm: SigningAlgorithm, in set_wrapped_attestation_key() 146 provision_attestation_key_file(algorithm, &unwrapped_key) in set_wrapped_attestation_key() 152 algorithm: SigningAlgorithm, in provision_attestation_key_file() 155 let mut attestation_key = read_attestation_key_content(algorithm)?; in provision_attestation_key_file() [all …]
|
D | ipc_manager.rs | 92 algorithm: Algorithm, in keymaster_algorithm_to_signing_algorithm() 94 match algorithm { in keymaster_algorithm_to_signing_algorithm() 100 algorithm as u32 in keymaster_algorithm_to_signing_algorithm() 334 let algorithm = keymaster_algorithm_to_signing_algorithm(req.algorithm)?; in handle_message() localVariable 335 secure_storage_manager::provision_attestation_key_file(algorithm, &req.key_data)?; in handle_message() 339 let algorithm = keymaster_algorithm_to_signing_algorithm(req.algorithm)?; in handle_message() localVariable 340 secure_storage_manager::append_attestation_cert_chain(algorithm, &req.cert_data)?; in handle_message() 346 let algorithm = keymaster_algorithm_to_signing_algorithm(req.algorithm)?; in handle_message() localVariable 347 secure_storage_manager::clear_attestation_cert_chain(algorithm)?; in handle_message() 353 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() 722 keymaster_algorithm_t algorithm; in ParseKeyBlob() local 723 if (!deserialized_key->hw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm)) { in ParseKeyBlob() 727 auto factory = GetKeyFactory(algorithm); in ParseKeyBlob() 1087 keymaster_algorithm_t algorithm, in GetAttestationKey() argument 1091 switch (algorithm) { in GetAttestationKey() 1115 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", 350 const bssl::Span<const uint8_t> algorithm = args[0]; in FindTrustyHandler() local 352 if (StringEq(algorithm, func.name)) { in FindTrustyHandler() 363 const std::string name(reinterpret_cast<const char*>(algorithm.data()), in FindTrustyHandler() 364 algorithm.size()); in FindTrustyHandler()
|
/trusty/user/base/lib/hwbcc/srv/include/lib/hwbcc/srv/ |
D | srv.h | 55 int32_t algorithm,
|
/trusty/kernel/lib/libcxx-trusty/ |
D | rules.mk | 60 $(LIBCXX_DIR)/src/algorithm.cpp \
|
/trusty/user/base/lib/hwbcc/rust/src/ |
D | lib.rs | 101 algorithm: SigningAlgorithm, field 113 algorithm: SigningAlgorithm, in new() 119 algorithm, in new() 138 serializer.serialize_as_bytes(&self.algorithm)?; in serialize()
|
/trusty/user/base/lib/libstdc++-trusty/ |
D | rules.mk | 42 $(LIBCXX_DIR)/src/algorithm.cpp \
|
/trusty/user/base/lib/hwbcc/srv/ |
D | srv.c | 146 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 | 198 .algorithm(coset::iana::Algorithm::A256GCM) in try_from()
|