Home
last modified time | relevance | path

Searched refs:nosapp (Results 1 – 7 of 7) sorted by relevance

/external/nos/host/android/hals/keymaster/
Dproto_utils.cpp46 static nosapp::TagType type_from_tag(nosapp::Tag tag) in type_from_tag()
48 return static_cast<nosapp::TagType>(tag & (0xF << 16)); in type_from_tag()
51 static nosapp::Tag translate_tag(Tag tag) in translate_tag()
56 return static_cast<nosapp::Tag>( in translate_tag()
60 static Tag translate_tag(nosapp::Tag tag) in translate_tag()
62 enum nosapp::TagType tag_type = type_from_tag(tag); in translate_tag()
69 static nosapp::KeyPurpose translate_purpose(KeyPurpose purpose) in translate_purpose()
73 return nosapp::KeyPurpose::ENCRYPT; in translate_purpose()
75 return nosapp::KeyPurpose::DECRYPT; in translate_purpose()
77 return nosapp::KeyPurpose::SIGN; in translate_purpose()
[all …]
Dproto_utils.h47 namespace nosapp = nugget::app::keymaster; variable
52 nosapp::KeyParameter *pb);
54 nosapp::KeyParameters *pbParams);
58 nosapp::KeyParameters *pbParams);
59 ErrorCode pb_to_hidl_params(const nosapp::KeyParameters& pbParams,
61 ErrorCode translate_algorithm(nosapp::Algorithm algorithm,
63 ErrorCode translate_error_code(nosapp::ErrorCode error_code);
64 ErrorCode translate_ec_curve(nosapp::EcCurve ec_curve, EcCurve *out);
66 nosapp::HardwareAuthToken *out);
69 nosapp::VerificationToken *out);
Dexport_key.cpp40 namespace nosapp = nugget::app::keymaster;
51 if (response.algorithm() == nosapp::Algorithm::RSA) { in export_key_der()
87 (nosapp::EcCurve)response.ec().curve_id(), in export_key_der()
Dimport_wrapped_key.cpp152 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_set()
209 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_integer()
249 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_boolean()
289 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_octet_string()
DKeymasterDevice.cpp208 namespace nosapp = ::nugget::app::keymaster;
392 nosapp::HmacSharingParameters* req_param = in computeSharedHmac()
834 finishResponse.chip_fusing() == nosapp::FUSING_PROTO) { in attestKey()
862 } else if (finishResponse.chip_fusing() == nosapp::FUSING_DVT) { in attestKey()
/external/nos/host/android/hals/keymaster/test/
Dimport_wrapped_key_test.cpp63 namespace nosapp = ::nugget::app::keymaster;
348 nosapp::KeyParameter *noskp = in TEST()
351 noskp->set_tag(nosapp::Tag::ALGORITHM); in TEST()
352 noskp->set_integer((uint32_t)nosapp::Algorithm::AES); in TEST()
356 noskp->set_tag(nosapp::Tag::KEY_SIZE); in TEST()
Dimport_key_test.cpp61 namespace nosapp = ::nugget::app::keymaster;
368 nosapp::KeyParameter *noskp = in TEST()
371 noskp->set_tag(nosapp::Tag::ALGORITHM); in TEST()
372 noskp->set_integer((uint32_t)nosapp::Algorithm::RSA); in TEST()