• Home
  • Raw
  • Download

Lines Matching refs:nosapp

46 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()
79 return nosapp::KeyPurpose::VERIFY; in translate_purpose()
81 return nosapp::KeyPurpose::WRAP_KEY; in translate_purpose()
83 return nosapp::KeyPurpose::PURPOSE_MAX; in translate_purpose()
87 static ErrorCode translate_purpose(nosapp::KeyPurpose purpose, KeyPurpose *out) in translate_purpose()
90 case nosapp::KeyPurpose::ENCRYPT: in translate_purpose()
93 case nosapp::KeyPurpose::DECRYPT: in translate_purpose()
96 case nosapp::KeyPurpose::SIGN: in translate_purpose()
99 case nosapp::KeyPurpose::VERIFY: in translate_purpose()
102 case nosapp::KeyPurpose::WRAP_KEY: in translate_purpose()
112 static nosapp::Algorithm translate_algorithm(Algorithm algorithm) in translate_algorithm()
116 return nosapp::Algorithm::RSA; in translate_algorithm()
118 return nosapp::Algorithm::EC; in translate_algorithm()
120 return nosapp::Algorithm::AES; in translate_algorithm()
122 return nosapp::Algorithm::DES; in translate_algorithm()
124 return nosapp::Algorithm::HMAC; in translate_algorithm()
126 return nosapp::Algorithm::ALGORITHM_MAX; in translate_algorithm()
130 ErrorCode translate_algorithm(nosapp::Algorithm algorithm, in translate_algorithm()
134 case nosapp::Algorithm::RSA: in translate_algorithm()
137 case nosapp::Algorithm::EC: in translate_algorithm()
140 case nosapp::Algorithm::AES: in translate_algorithm()
143 case nosapp::Algorithm::DES: in translate_algorithm()
146 case nosapp::Algorithm::HMAC: in translate_algorithm()
156 static nosapp::BlockMode translate_block_mode(BlockMode block_mode) in translate_block_mode()
160 return nosapp::BlockMode::ECB; in translate_block_mode()
162 return nosapp::BlockMode::CBC; in translate_block_mode()
164 return nosapp::BlockMode::CTR; in translate_block_mode()
166 return nosapp::BlockMode::GCM; in translate_block_mode()
168 return nosapp::BlockMode::BLOCK_MODE_MAX; in translate_block_mode()
172 static ErrorCode translate_block_mode(nosapp::BlockMode block_mode, in translate_block_mode()
176 case nosapp::BlockMode::ECB: in translate_block_mode()
179 case nosapp::BlockMode::CBC: in translate_block_mode()
182 case nosapp::BlockMode::CTR: in translate_block_mode()
185 case nosapp::BlockMode::GCM: in translate_block_mode()
196 static nosapp::Digest translate_digest(Digest digest) in translate_digest()
200 return nosapp::Digest::DIGEST_NONE; in translate_digest()
202 return nosapp::Digest::DIGEST_MD5; in translate_digest()
204 return nosapp::Digest::DIGEST_SHA1; in translate_digest()
206 return nosapp::Digest::DIGEST_SHA_2_224; in translate_digest()
208 return nosapp::Digest::DIGEST_SHA_2_256; in translate_digest()
210 return nosapp::Digest::DIGEST_SHA_2_384; in translate_digest()
212 return nosapp::Digest::DIGEST_SHA_2_512; in translate_digest()
214 return nosapp::Digest::DIGEST_MAX; in translate_digest()
218 static ErrorCode translate_digest(nosapp::Digest digest, in translate_digest()
222 case nosapp::Digest::DIGEST_NONE: in translate_digest()
225 case nosapp::Digest::DIGEST_MD5: in translate_digest()
228 case nosapp::Digest::DIGEST_SHA1: in translate_digest()
231 case nosapp::Digest::DIGEST_SHA_2_224: in translate_digest()
234 case nosapp::Digest::DIGEST_SHA_2_256: in translate_digest()
237 case nosapp::Digest::DIGEST_SHA_2_384: in translate_digest()
240 case nosapp::Digest::DIGEST_SHA_2_512: in translate_digest()
250 static nosapp::PaddingMode translate_padding_mode(PaddingMode padding_mode) in translate_padding_mode()
254 return nosapp::PaddingMode::PADDING_NONE; in translate_padding_mode()
256 return nosapp::PaddingMode::PADDING_RSA_OAEP; in translate_padding_mode()
258 return nosapp::PaddingMode::PADDING_RSA_PSS; in translate_padding_mode()
260 return nosapp::PaddingMode::PADDING_RSA_PKCS1_1_5_ENCRYPT; in translate_padding_mode()
262 return nosapp::PaddingMode::PADDING_RSA_PKCS1_1_5_SIGN; in translate_padding_mode()
264 return nosapp::PaddingMode::PADDING_PKCS7; in translate_padding_mode()
266 return nosapp::PaddingMode::PADDING_MODE_MAX; in translate_padding_mode()
270 static ErrorCode translate_padding_mode(nosapp::PaddingMode padding_mode, in translate_padding_mode()
274 case nosapp::PaddingMode::PADDING_NONE: in translate_padding_mode()
277 case nosapp::PaddingMode::PADDING_RSA_OAEP: in translate_padding_mode()
280 case nosapp::PaddingMode::PADDING_RSA_PSS: in translate_padding_mode()
283 case nosapp::PaddingMode::PADDING_RSA_PKCS1_1_5_ENCRYPT: in translate_padding_mode()
286 case nosapp::PaddingMode::PADDING_RSA_PKCS1_1_5_SIGN: in translate_padding_mode()
289 case nosapp::PaddingMode::PADDING_PKCS7: in translate_padding_mode()
299 static nosapp::EcCurve translate_ec_curve(EcCurve ec_curve) in translate_ec_curve()
303 return nosapp::EcCurve::P_224; in translate_ec_curve()
305 return nosapp::EcCurve::P_256; in translate_ec_curve()
307 return nosapp::EcCurve::P_384; in translate_ec_curve()
309 return nosapp::EcCurve::P_521; in translate_ec_curve()
311 return nosapp::EcCurve::EC_CURVE_MAX; in translate_ec_curve()
315 ErrorCode translate_ec_curve(nosapp::EcCurve ec_curve, EcCurve *out) in translate_ec_curve()
318 case nosapp::EcCurve::P_224: in translate_ec_curve()
321 case nosapp::EcCurve::P_256: in translate_ec_curve()
324 case nosapp::EcCurve::P_384: in translate_ec_curve()
327 case nosapp::EcCurve::P_521: in translate_ec_curve()
337 static nosapp::KeyBlobUsageRequirements translate_key_blob_usage_requirements( in translate_key_blob_usage_requirements()
342 return nosapp::KeyBlobUsageRequirements::STANDALONE; in translate_key_blob_usage_requirements()
344 return nosapp::KeyBlobUsageRequirements::REQUIRES_FILE_SYSTEM; in translate_key_blob_usage_requirements()
346 return nosapp::KeyBlobUsageRequirements::KEY_USAGE_MAX; in translate_key_blob_usage_requirements()
352 nosapp::KeyBlobUsageRequirements usage, KeyBlobUsageRequirements *out) in translate_key_blob_usage_requirements()
355 case nosapp::KeyBlobUsageRequirements::STANDALONE: in translate_key_blob_usage_requirements()
358 case nosapp::KeyBlobUsageRequirements::REQUIRES_FILE_SYSTEM: in translate_key_blob_usage_requirements()
368 static nosapp::KeyOrigin translate_key_origin(KeyOrigin key_origin) in translate_key_origin()
372 return nosapp::KeyOrigin::GENERATED; in translate_key_origin()
374 return nosapp::KeyOrigin::DERIVED; in translate_key_origin()
376 return nosapp::KeyOrigin::IMPORTED; in translate_key_origin()
378 return nosapp::KeyOrigin::UNKNOWN; in translate_key_origin()
380 return nosapp::KeyOrigin::KEY_ORIGIN_MAX; in translate_key_origin()
384 static ErrorCode translate_key_origin(nosapp::KeyOrigin key_origin, in translate_key_origin()
388 case nosapp::KeyOrigin::GENERATED: in translate_key_origin()
391 case nosapp::KeyOrigin::DERIVED: in translate_key_origin()
394 case nosapp::KeyOrigin::IMPORTED: in translate_key_origin()
397 case nosapp::KeyOrigin::UNKNOWN: in translate_key_origin()
408 nosapp::HardwareAuthToken *out) in translate_auth_token()
422 nosapp::VerificationToken *out) in translate_verification_token()
428 out->set_security_level(static_cast<nosapp::SecurityLevel>( in translate_verification_token()
435 nosapp::KeyParameter *pb) in key_parameter_to_pb()
578 ErrorCode pb_to_key_parameter(const nosapp::KeyParameter& param, in pb_to_key_parameter()
582 case nosapp::Tag::TAG_INVALID: in pb_to_key_parameter()
587 case nosapp::Tag::PURPOSE: // (TagType:ENUM_REP | 1) in pb_to_key_parameter()
588 if (translate_purpose(static_cast<nosapp::KeyPurpose>(param.integer()), in pb_to_key_parameter()
593 case nosapp::Tag::ALGORITHM: // (TagType:ENUM | 2) in pb_to_key_parameter()
594 if (translate_algorithm(static_cast<nosapp::Algorithm>(param.integer()), in pb_to_key_parameter()
599 case nosapp::Tag::KEY_SIZE: // (TagType:UINT | 3) in pb_to_key_parameter()
602 case nosapp::Tag::BLOCK_MODE: // (TagType:ENUM_REP | 4) in pb_to_key_parameter()
604 static_cast<nosapp::BlockMode>(param.integer()), in pb_to_key_parameter()
609 case nosapp::Tag::DIGEST: // (TagType:ENUM_REP | 5) in pb_to_key_parameter()
611 static_cast<nosapp::Digest>(param.integer()), in pb_to_key_parameter()
616 case nosapp::Tag::PADDING:; // (TagType:ENUM_REP | 6) in pb_to_key_parameter()
618 static_cast<nosapp::PaddingMode>(param.integer()), in pb_to_key_parameter()
623 case nosapp::Tag::CALLER_NONCE: // (TagType:BOOL | 7) in pb_to_key_parameter()
626 case nosapp::Tag::MIN_MAC_LENGTH: // (TagType:UINT | 8) in pb_to_key_parameter()
629 case nosapp::Tag::EC_CURVE: // (TagType:ENUM | 10) in pb_to_key_parameter()
631 static_cast<nosapp::EcCurve>(param.integer()), in pb_to_key_parameter()
636 case nosapp::Tag::RSA_PUBLIC_EXPONENT: // (TagType:ULONG | 200) in pb_to_key_parameter()
639 case nosapp::Tag::INCLUDE_UNIQUE_ID: // (TagType:BOOL | 202) in pb_to_key_parameter()
642 case nosapp::Tag::BLOB_USAGE_REQUIREMENTS: // (TagType:ENUM | 301) in pb_to_key_parameter()
644 static_cast<nosapp::KeyBlobUsageRequirements>(param.integer()), in pb_to_key_parameter()
649 case nosapp::Tag::BOOTLOADER_ONLY: // (TagType:BOOL | 302) in pb_to_key_parameter()
650 case nosapp::Tag::ROLLBACK_RESISTANCE: // (TagType:BOOL | 303) in pb_to_key_parameter()
653 case nosapp::Tag::ACTIVE_DATETIME: // (TagType:DATE | 400) in pb_to_key_parameter()
654 case nosapp::Tag::ORIGINATION_EXPIRE_DATETIME: // (TagType:DATE | 401) in pb_to_key_parameter()
655 case nosapp::Tag::USAGE_EXPIRE_DATETIME: // (TagType:DATE | 402) in pb_to_key_parameter()
658 case nosapp::Tag::MIN_SECONDS_BETWEEN_OPS: // (TagType:UINT | 403) in pb_to_key_parameter()
659 case nosapp::Tag::MAX_USES_PER_BOOT: // (TagType:UINT | 404) in pb_to_key_parameter()
662 case nosapp::Tag::USER_SECURE_ID: // (TagType:ULONG_REP | 502) in pb_to_key_parameter()
665 case nosapp::Tag::NO_AUTH_REQUIRED: // (TagType:BOOL | 503) in pb_to_key_parameter()
668 case nosapp::Tag::USER_AUTH_TYPE: // (TagType:ENUM | 504) in pb_to_key_parameter()
674 case nosapp::Tag::AUTH_TIMEOUT: // (TagType:UINT | 505) in pb_to_key_parameter()
677 case nosapp::Tag::ALLOW_WHILE_ON_BODY: // (TagType:BOOL | 506) in pb_to_key_parameter()
680 case nosapp::Tag::TRUSTED_USER_PRESENCE_REQUIRED: // (TagType:BOOL | 507) in pb_to_key_parameter()
683 case nosapp::Tag::TRUSTED_CONFIRMATION_REQUIRED: // (TagType:BOOL | 508) in pb_to_key_parameter()
686 case nosapp::Tag::APPLICATION_ID: // (TagType:BYTES | 601) in pb_to_key_parameter()
691 case nosapp::Tag::APPLICATION_DATA: // (TagType:BYTES | 700) in pb_to_key_parameter()
696 case nosapp::Tag::CREATION_DATETIME: // (TagType:DATE | 701) in pb_to_key_parameter()
699 case nosapp::Tag::ORIGIN: // (TagType:ENUM | 702) in pb_to_key_parameter()
701 static_cast<nosapp::KeyOrigin>(param.integer()), in pb_to_key_parameter()
706 case nosapp::Tag::ROOT_OF_TRUST: // (TagType:BYTES | 704) in pb_to_key_parameter()
711 case nosapp::Tag::OS_VERSION: // (TagType:UINT | 705) in pb_to_key_parameter()
712 case nosapp::Tag::OS_PATCHLEVEL: // (TagType:UINT | 706) in pb_to_key_parameter()
715 case nosapp::Tag::UNIQUE_ID: // (TagType:BYTES | 707) in pb_to_key_parameter()
716 case nosapp::Tag::ATTESTATION_CHALLENGE: // (TagType:BYTES | 708) in pb_to_key_parameter()
717 case nosapp::Tag::ATTESTATION_APPLICATION_ID: // (TagType:BYTES | 709) in pb_to_key_parameter()
718 case nosapp::Tag::ATTESTATION_ID_BRAND: // (TagType:BYTES | 710) in pb_to_key_parameter()
719 case nosapp::Tag::ATTESTATION_ID_DEVICE: // (TagType:BYTES | 711) in pb_to_key_parameter()
720 case nosapp::Tag::ATTESTATION_ID_PRODUCT: // (TagType:BYTES | 712) in pb_to_key_parameter()
721 case nosapp::Tag::ATTESTATION_ID_SERIAL: // (TagType:BYTES | 713) in pb_to_key_parameter()
722 case nosapp::Tag::ATTESTATION_ID_IMEI: // (TagType:BYTES | 714) in pb_to_key_parameter()
723 case nosapp::Tag::ATTESTATION_ID_MEID: // (TagType:BYTES | 715) in pb_to_key_parameter()
724 case nosapp::Tag::ATTESTATION_ID_MANUFACTURER: // (TagType:BYTES | 716) in pb_to_key_parameter()
725 case nosapp::Tag::ATTESTATION_ID_MODEL: // (TagType:BYTES | 717) in pb_to_key_parameter()
730 case nosapp::Tag::VENDOR_PATCHLEVEL: // (TagType:UINT | 718) in pb_to_key_parameter()
731 case nosapp::Tag::BOOT_PATCHLEVEL: // (TagType:UINT | 719) in pb_to_key_parameter()
734 case nosapp::Tag::ASSOCIATED_DATA: // (TagType:BYTES | 1000) in pb_to_key_parameter()
735 case nosapp::Tag::NONCE: // (TagType:BYTES | 1001) in pb_to_key_parameter()
740 case nosapp::Tag::MAC_LENGTH: // (TagType:UINT | 1003) in pb_to_key_parameter()
743 case nosapp::Tag::RESET_SINCE_ID_ROTATION: // (TagType:BOOL | 1004) in pb_to_key_parameter()
746 case nosapp::Tag::CONFIRMATION_TOKEN: // (TagType:BOOL | 1005) in pb_to_key_parameter()
760 nosapp::KeyParameters *pb) in hidl_params_to_pb()
763 nosapp::KeyParameter *param = pb->add_params(); in hidl_params_to_pb()
818 nosapp::KeyParameters *pbParams) in map_params_to_pb()
822 nosapp::KeyParameter *param = pbParams->add_params(); in map_params_to_pb()
833 ErrorCode pb_to_hidl_params(const nosapp::KeyParameters& pbParams, in pb_to_hidl_params()
839 const nosapp::KeyParameter& param = pbParams.params(i); in pb_to_hidl_params()
853 ErrorCode translate_error_code(nosapp::ErrorCode error_code) in translate_error_code()
856 case nosapp::ErrorCode::OK: in translate_error_code()
858 case nosapp::ErrorCode::ROOT_OF_TRUST_ALREADY_SET: in translate_error_code()
860 case nosapp::ErrorCode::UNSUPPORTED_PURPOSE: in translate_error_code()
862 case nosapp::ErrorCode::INCOMPATIBLE_PURPOSE: in translate_error_code()
864 case nosapp::ErrorCode::UNSUPPORTED_ALGORITHM: in translate_error_code()
866 case nosapp::ErrorCode::INCOMPATIBLE_ALGORITHM: in translate_error_code()
868 case nosapp::ErrorCode::UNSUPPORTED_KEY_SIZE: in translate_error_code()
870 case nosapp::ErrorCode::UNSUPPORTED_BLOCK_MODE: in translate_error_code()
872 case nosapp::ErrorCode::INCOMPATIBLE_BLOCK_MODE: in translate_error_code()
874 case nosapp::ErrorCode::UNSUPPORTED_MAC_LENGTH: in translate_error_code()
876 case nosapp::ErrorCode::UNSUPPORTED_PADDING_MODE: in translate_error_code()
878 case nosapp::ErrorCode::INCOMPATIBLE_PADDING_MODE: in translate_error_code()
880 case nosapp::ErrorCode::UNSUPPORTED_DIGEST: in translate_error_code()
882 case nosapp::ErrorCode::INCOMPATIBLE_DIGEST: in translate_error_code()
884 case nosapp::ErrorCode::INVALID_EXPIRATION_TIME: in translate_error_code()
886 case nosapp::ErrorCode::INVALID_USER_ID: in translate_error_code()
888 case nosapp::ErrorCode::INVALID_AUTHORIZATION_TIMEOUT: in translate_error_code()
890 case nosapp::ErrorCode::UNSUPPORTED_KEY_FORMAT: in translate_error_code()
892 case nosapp::ErrorCode::INCOMPATIBLE_KEY_FORMAT: in translate_error_code()
894 case nosapp::ErrorCode::UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM: in translate_error_code()
896 case nosapp::ErrorCode::UNSUPPORTED_KEY_VERIFICATION_ALGORITHM: in translate_error_code()
898 case nosapp::ErrorCode::INVALID_INPUT_LENGTH: in translate_error_code()
900 case nosapp::ErrorCode::KEY_EXPORT_OPTIONS_INVALID: in translate_error_code()
902 case nosapp::ErrorCode::DELEGATION_NOT_ALLOWED: in translate_error_code()
904 case nosapp::ErrorCode::KEY_NOT_YET_VALID: in translate_error_code()
906 case nosapp::ErrorCode::KEY_EXPIRED: in translate_error_code()
908 case nosapp::ErrorCode::KEY_USER_NOT_AUTHENTICATED: in translate_error_code()
910 case nosapp::ErrorCode::OUTPUT_PARAMETER_NULL: in translate_error_code()
912 case nosapp::ErrorCode::INVALID_OPERATION_HANDLE: in translate_error_code()
914 case nosapp::ErrorCode::INSUFFICIENT_BUFFER_SPACE: in translate_error_code()
916 case nosapp::ErrorCode::VERIFICATION_FAILED: in translate_error_code()
918 case nosapp::ErrorCode::TOO_MANY_OPERATIONS: in translate_error_code()
920 case nosapp::ErrorCode::UNEXPECTED_NULL_POINTER: in translate_error_code()
922 case nosapp::ErrorCode::INVALID_KEY_BLOB: in translate_error_code()
924 case nosapp::ErrorCode::IMPORTED_KEY_NOT_ENCRYPTED: in translate_error_code()
926 case nosapp::ErrorCode::IMPORTED_KEY_DECRYPTION_FAILED: in translate_error_code()
928 case nosapp::ErrorCode::IMPORTED_KEY_NOT_SIGNED: in translate_error_code()
930 case nosapp::ErrorCode::IMPORTED_KEY_VERIFICATION_FAILED: in translate_error_code()
932 case nosapp::ErrorCode::INVALID_ARGUMENT: in translate_error_code()
934 case nosapp::ErrorCode::UNSUPPORTED_TAG: in translate_error_code()
936 case nosapp::ErrorCode::INVALID_TAG: in translate_error_code()
938 case nosapp::ErrorCode::MEMORY_ALLOCATION_FAILED: in translate_error_code()
940 case nosapp::ErrorCode::IMPORT_PARAMETER_MISMATCH: in translate_error_code()
942 case nosapp::ErrorCode::SECURE_HW_ACCESS_DENIED: in translate_error_code()
944 case nosapp::ErrorCode::OPERATION_CANCELLED: in translate_error_code()
946 case nosapp::ErrorCode::CONCURRENT_ACCESS_CONFLICT: in translate_error_code()
948 case nosapp::ErrorCode::SECURE_HW_BUSY: in translate_error_code()
950 case nosapp::ErrorCode::SECURE_HW_COMMUNICATION_FAILED: in translate_error_code()
952 case nosapp::ErrorCode::UNSUPPORTED_EC_FIELD: in translate_error_code()
954 case nosapp::ErrorCode::MISSING_NONCE: in translate_error_code()
956 case nosapp::ErrorCode::INVALID_NONCE: in translate_error_code()
958 case nosapp::ErrorCode::MISSING_MAC_LENGTH: in translate_error_code()
960 case nosapp::ErrorCode::KEY_RATE_LIMIT_EXCEEDED: in translate_error_code()
962 case nosapp::ErrorCode::CALLER_NONCE_PROHIBITED: in translate_error_code()
964 case nosapp::ErrorCode::KEY_MAX_OPS_EXCEEDED: in translate_error_code()
966 case nosapp::ErrorCode::INVALID_MAC_LENGTH: in translate_error_code()
968 case nosapp::ErrorCode::MISSING_MIN_MAC_LENGTH: in translate_error_code()
970 case nosapp::ErrorCode::UNSUPPORTED_MIN_MAC_LENGTH: in translate_error_code()
972 case nosapp::ErrorCode::UNSUPPORTED_KDF: in translate_error_code()
974 case nosapp::ErrorCode::UNSUPPORTED_EC_CURVE: in translate_error_code()
976 case nosapp::ErrorCode::KEY_REQUIRES_UPGRADE: in translate_error_code()
978 case nosapp::ErrorCode::ATTESTATION_CHALLENGE_MISSING: in translate_error_code()
980 case nosapp::ErrorCode::KEYMASTER_NOT_CONFIGURED: in translate_error_code()
982 case nosapp::ErrorCode::ATTESTATION_APPLICATION_ID_MISSING: in translate_error_code()
984 case nosapp::ErrorCode::CANNOT_ATTEST_IDS: in translate_error_code()
986 case nosapp::ErrorCode::UNIMPLEMENTED: in translate_error_code()
988 case nosapp::ErrorCode::VERSION_MISMATCH: in translate_error_code()
990 case nosapp::ErrorCode::ROLLBACK_RESISTANCE_UNAVAILABLE: in translate_error_code()
992 case nosapp::ErrorCode::HARDWARE_TYPE_UNAVAILABLE: in translate_error_code()
994 case nosapp::ErrorCode::PROOF_OF_PRESENCE_REQUIRED: in translate_error_code()
996 case nosapp::ErrorCode::CONCURRENT_PROOF_OF_PRESENCE_REQUESTED: in translate_error_code()
998 case nosapp::ErrorCode::UNKNOWN_ERROR: in translate_error_code()
1000 case nosapp::ErrorCode::NO_USER_CONFIRMATION: in translate_error_code()
1004 case nosapp::ErrorCode::INVALID_DEVICE_IDS: in translate_error_code()
1005 case nosapp::ErrorCode::PRODUCTION_MODE_PROVISIONING: in translate_error_code()
1006 case nosapp::ErrorCode::ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_: in translate_error_code()
1007 case nosapp::ErrorCode::ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_: in translate_error_code()