• Home
  • Raw
  • Download

Lines Matching refs:error

108 Operation* AsymmetricKey::CreateOperation(keymaster_purpose_t purpose, keymaster_error_t* error) {  in CreateOperation()  argument
111 *error = KM_ERROR_UNSUPPORTED_DIGEST; in CreateOperation()
117 *error = KM_ERROR_UNSUPPORTED_PADDING_MODE; in CreateOperation()
121 return CreateOperation(purpose, digest, padding, error); in CreateOperation()
126 keymaster_error_t* error) { in GenerateKey() argument
127 if (!error) in GenerateKey()
144 *error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
150 *error = KM_ERROR_UNKNOWN_ERROR; in GenerateKey()
155 *error = new_key ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
161 const Logger& logger, keymaster_error_t* error) { in ImportKey() argument
162 if (!error) in ImportKey()
164 *error = KM_ERROR_UNKNOWN_ERROR; in ImportKey()
179 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
186 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
196 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
207 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
217 *error = KM_ERROR_OK; in ImportKey()
221 RsaKey::RsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) in RsaKey() argument
223 if (error) in RsaKey()
224 *error = LoadKey(blob); in RsaKey()
228 keymaster_padding_t padding, keymaster_error_t* error) { in CreateOperation() argument
238 *error = KM_ERROR_UNIMPLEMENTED; in CreateOperation()
241 *error = op ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED; in CreateOperation()
271 keymaster_error_t* error) { in GenerateKey() argument
272 if (!error) in GenerateKey()
293 *error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
298 *error = KM_ERROR_INVALID_DSA_PARAMS; in GenerateKey()
327 *error = KM_ERROR_UNKNOWN_ERROR; in GenerateKey()
332 *error = new_key ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
367 const Logger& logger, keymaster_error_t* error) { in ImportKey() argument
368 if (!error) in ImportKey()
370 *error = KM_ERROR_UNKNOWN_ERROR; in ImportKey()
378 *error = GetOrCheckDsaParam(TAG_DSA_GENERATOR, dsa_key->g, &authorizations); in ImportKey()
379 if (*error != KM_ERROR_OK) in ImportKey()
382 *error = GetOrCheckDsaParam(TAG_DSA_P, dsa_key->p, &authorizations); in ImportKey()
383 if (*error != KM_ERROR_OK) in ImportKey()
386 *error = GetOrCheckDsaParam(TAG_DSA_Q, dsa_key->q, &authorizations); in ImportKey()
387 if (*error != KM_ERROR_OK) in ImportKey()
400 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
411 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
421 *error = KM_ERROR_OK; in ImportKey()
425 DsaKey::DsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) in DsaKey() argument
427 if (error) in DsaKey()
428 *error = LoadKey(blob); in DsaKey()
432 keymaster_padding_t padding, keymaster_error_t* error) { in CreateOperation() argument
442 *error = KM_ERROR_UNIMPLEMENTED; in CreateOperation()
445 *error = op ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED; in CreateOperation()
460 keymaster_error_t* error) { in GenerateKey() argument
461 if (!error) in GenerateKey()
473 *error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
480 *error = KM_ERROR_UNSUPPORTED_KEY_SIZE; in GenerateKey()
489 *error = KM_ERROR_UNKNOWN_ERROR; in GenerateKey()
494 *error = new_key ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKey()
500 const Logger& logger, keymaster_error_t* error) { in ImportKey() argument
501 if (!error) in ImportKey()
503 *error = KM_ERROR_UNKNOWN_ERROR; in ImportKey()
512 *error = get_group_size(*EC_KEY_get0_group(ecdsa_key.get()), &extracted_key_size_bits); in ImportKey()
513 if (*error != KM_ERROR_OK) in ImportKey()
520 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
531 *error = KM_ERROR_IMPORT_PARAMETER_MISMATCH; in ImportKey()
541 *error = KM_ERROR_OK; in ImportKey()
593 EcdsaKey::EcdsaKey(const KeyBlob& blob, const Logger& logger, keymaster_error_t* error) in EcdsaKey() argument
595 if (error) in EcdsaKey()
596 *error = LoadKey(blob); in EcdsaKey()
600 keymaster_padding_t padding, keymaster_error_t* error) { in CreateOperation() argument
610 *error = KM_ERROR_UNIMPLEMENTED; in CreateOperation()
613 *error = op ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED; in CreateOperation()