blob: 79aebbb8c68b4f56d2183383cf6c3b18fbc05e6c [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module crosapi.mojom;
// Status codes for KeystoreService methods.
// Mostly mirrors platform_keys::Status enum.
[Stable, Extensible]
enum KeystoreError {
// platform_keys errors.
[Default] kUnknown,
kAlgorithmNotSupported,
kAlgorithmNotPermittedByCertificate,
kCertificateNotFound,
kCertificateInvalid,
kInputTooLong,
kGrantKeyPermissionForExtension,
kInternal,
kKeyAttributeRetrievalFailed,
kKeyAttributeSettingFailed,
kKeyNotAllowedForSigning,
kKeyNotFound,
// An operation was interrupted by shut down.
kShutDown,
// kNet* are for errors occurred during net::* operations.
kNetAddUserCertFailed,
kNetCertificateDateInvalid,
kNetCertificateInvalid,
// Keystore errors.
kUnsupportedKeystoreType,
[MinVersion=1]
kUnsupportedAlgorithmType,
[MinVersion=2]
kUnsupportedKeyTag,
[MinVersion=3]
kMojoUnavailable,
[MinVersion=3]
kUnsupportedKeyType,
};