Home | History | Annotate | Download | only in 4.0

Lines Matching refs:ErrorCode

19 import android.hardware.keymaster@3.0::ErrorCode;
93 * ECB-mode operations must fail with ErrorCode::INVALID_INPUT_LENGTH if the input isn't a
95 * ErrorCode::INCOMPATIBLE_PADDING_MODE.
103 * ECB-mode operations must fail with ErrorCode::INVALID_INPUT_LENGTH if the input isn't a
224 * @return error ErrorCode::OK on success, ErrorCode::UNIMPLEMENTED if HMAC agreement is not
227 * ErrorCode::UNKNOWN_ERROR if the parameters cannot be returned.
234 getHmacSharingParameters() generates (ErrorCode error, HmacSharingParameters params);
317 * @return error ErrorCode::OK in the event that there is no error. ErrorCode::INVALID_ARGUMENT
331 generates (ErrorCode error, vec<uint8_t> sharingCheck);
347 * StrongBox implementations must return ErrorCode::UNIMPLEMENTED.
356 * @return error ErrorCode::OK on success or ErrorCode::UNIMPLEMENTED if the IKeymasterDevice is
365 generates (ErrorCode error, VerificationToken token);
380 * @return error ErrorCode::OK on success; ErrorCode::INVALID_INPUT_LENGTH if the caller
383 addRngEntropy(vec<uint8_t> data) generates (ErrorCode error);
420 * must return ErrorCode::UNSUPPORTED_KEY_SIZE. Required values for TEE IKeymasterDevice
425 * must return ErrorCode::INVALID_ARGUMENT. The values 3 and 65537 must be supported. It is
427 * generateKey must return ErrorCode::INVALID_ARGUMENT.
447 * is provided, generateKey must return ErrorCode::UNSUPPORTED_KEY_SIZE. If Tag::KEY_SIZE is
455 * ErrorCode::UNSUPPORTED_KEY_SIZE. 128 and 256-bit key sizes must be supported.
458 * Tag::MIN_MAC_LENGTH. If omitted, generateKey must return ErrorCode::MISSING_MIN_MAC_LENGTH.
473 generates (ErrorCode error, vec<uint8_t> keyBlob, KeyCharacteristics keyCharacteristics);
483 * ErrorCode::IMPORT_PARAMETER_MISMATCH.
489 * mismatch, importKey must return ErrorCode::IMPORT_PARAMETER_MISMATCH.
508 generates (ErrorCode error, vec<uint8_t> keyBlob, KeyCharacteristics keyCharacteristics);
592 generates(ErrorCode error, vec<uint8_t> keyBlob, KeyCharacteristics keyCharacteristics);
622 generates (ErrorCode error, KeyCharacteristics keyCharacteristics);
645 vec<uint8_t> appData) generates (ErrorCode error, vec<uint8_t> keyMaterial);
800 generates (ErrorCode error, vec<vec<uint8_t>> certChain);
811 * result in IKeymasterDevice returning ErrorCode::KEY_REQUIRES_UPGRADE. The caller must use
816 * return ErrorCode::INVALID_ARGUMENT. There is one exception: it is always permissible to
821 * return ErrorCode::INVALID_ARGUMENT because that value is smaller than 080001. Values other
837 generates (ErrorCode error, vec<uint8_t> upgradedKeyBlob);
847 deleteKey(vec<uint8_t> keyBlob) generates (ErrorCode error);
855 * @return error See the ErrorCode enum.
857 deleteAllKeys() generates (ErrorCode error);
870 destroyAttestationIds() generates (ErrorCode error);
874 * return ErrorCode::OK and create an operation handle which must be passed to subsequent calls
880 * resources and may eventually cause begin() to return ErrorCode::TOO_MANY_OPERATIONS when it
881 * runs out of space for operations. Any result other than ErrorCode::OK from begin(), update()
883 * must return ErrorCode::INVALID_OPERATION_HANDLE if called). IKeymasterDevice implementations
888 * inParams argument to this method. If not, begin() must return ErrorCode::INVALID_KEY_BLOB.
904 * ErrorCode::UNSUPPORTED_PURPOSE.
908 * ErrorCode::KEY_NOT_YET_VALID.
912 * KeyPurpose::ENCRYPT or KeyPurpose::SIGN, begin() must return ErrorCode::KEY_EXPIRED.
916 * KeyPurpose::DECRYPT or KeyPurpose::VERIFY, begin() must return ErrorCode::KEY_EXPIRED.
920 * time, begin() must return ErrorCode::KEY_RATE_LIMIT_EXCEEDED. See the tag description for
925 * return ErrorCode::KEY_MAX_OPS_EXCEEDED.
945 * ErrorCode::KEY_USER_NOT_AUTHENTICATED.
949 * ErrorCode::CALLER_NONCE_PROHIBITED must be returned.
953 * return ErrorCode::INVALID_KEY_BLOB. The mechanism for notifying the IKeymasterDevice that
959 * specified more than once, the begin() must return ErrorCode::UNSUPPORTED_PADDING_MODE.
964 * ErrorCode::UNSUPPORTED_DIGEST.
968 * values. If not, begin() must return ErrorCode::INCOMPATIBLE_DIGEST or
969 * ErrorCode::INCOMPATIBLE_PADDING, as appropriate. Public key operations (KeyPurpose::ENCRYPT
976 * ErrorCode::UNSUPPORTED_PADDING_MODE if the specified mode does not support the specified
991 * ErrorCode::INVALID_INPUT_LENGTH.
996 * Digest::NONE is specified, the begin() must return ErrorCode::INCOMPATIBLE_DIGEST. In
999 * return ErrorCode::INCOMPATIBLE_DIGEST. The salt size must be D.
1002 * Digest::NONE is specified, begin() must return ErrorCode::INCOMPATIBLE_DIGEST. The OAEP
1009 * specified more than once, begin() must return ErrorCode::UNSUPPORTED_PADDING_MODE.
1013 * return ErrorCode::INCOMPATIBLE_DIGEST. Public key operations (KeyPurpose::VERIFY) are
1020 * begin() must return ErrorCode::UNSUPPORTED_BLOCK_MODE or
1021 * ErrorCode::UNSUPPORTED_PADDING_MODE. The specified modes must be authorized by the key,
1022 * otherwise begin() must return ErrorCode::INCOMPATIBLE_BLOCK_MODE or
1023 * ErrorCode::INCOMPATIBLE_PADDING_MODE.
1028 * non-multiples of 8, begin() must return ErrorCode::UNSUPPORTED_MAC_LENGTH. For values less
1029 * than the key's minimum length, begin() must return ErrorCode::INVALID_MAC_LENGTH.
1034 * return ErrorCode::INCOMPATIBLE_PADDING_MODE.
1042 * begin() must return ErrorCode::CALLER_NONCE_PROHIBITED. If a nonce is not provided when
1050 * length or non-multiples of 8, begin() must return ErrorCode::UNSUPPORTED_MAC_LENGTH. For
1051 * values less than the key's minimum length, begin() must return ErrorCode::INVALID_MAC_LENGTH.
1064 * the operation must fail with ErrorCode::INVALID_KEY_BLOB. For operations that require
1067 * Tag:CALLER_NONCE, ErrorCode::CALLER_NONCE_PROHIBITED must be returned.
1081 generates (ErrorCode error, vec<KeyParameter> outParams, OperationHandle operationHandle);
1087 * If operationHandle is invalid, update() must return ErrorCode::INVALID_OPERATION_HANDLE.
1101 * If this method returns an error code other than ErrorCode::OK, the operation is aborted and
1103 * finish, or abort, must return ErrorCode::INVALID_OPERATION_HANDLE.
1128 * ErrorCode::KEY_USER_NOT_AUTHENTICATED.
1139 * ErrorCode::INVALID_INPUT_LENGTH.
1159 * encrypt/decrypt, update() must return ErrorCode::INVALID_TAG.
1184 * @return error See the ErrorCode enum in types.hal.
1198 generates (ErrorCode error, uint32_t inputConsumed, vec<KeyParameter> outParams,
1208 * with finish(), update(), or abort(), must return ErrorCode::INVALID_OPERATION_HANDLE.
1233 * ErrorCode::KEY_USER_NOT_AUTHENTICATED.
1243 * produce a signature and must return ErrorCode::NO_USER_CONFIRMATION.
1252 * finish() must return ErrorCode::INVALID_ARGUMENT. For verification and decryption
1254 * ErrorCode::INVALID_INPUT_LENGTH.
1275 * ErrorCode::INVALID_INPUT_LENGTH. If padding is PaddingMode::PKCS7, pad the data per the
1282 * must return ErrorCode::VERIFICATION_FAILED.
1291 * finish() must consume all provided data or return ErrorCode::INVALID_INPUT_LENGTH.
1309 generates (ErrorCode error, vec<KeyParameter> outParams, vec<uint8_t> output);
1318 * @return error See the ErrorCode enum in types.hal.
1320 abort(OperationHandle operationHandle) generates (ErrorCode error);