blob: fd3811cb83828b03200db45570f17fd4141d08b7 [file] [log] [blame]
// Copyright 2022 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRYPTOHOME_AUTH_BLOCKS_AUTH_BLOCK_TYPE_H_
#define CRYPTOHOME_AUTH_BLOCKS_AUTH_BLOCK_TYPE_H_
namespace cryptohome {
// List of all the possible auth block types. Used to construct the correct
// AuthBlock type during key derivation and key creation.
// AuthBlockType is used in constructing the correct histogram while logging to
// UMA. These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
enum class AuthBlockType {
kPinWeaver = 0,
kChallengeCredential = 1,
kDoubleWrappedCompat = 2,
kTpmBoundToPcr = 3,
kTpmNotBoundToPcr = 4,
kLibScryptCompat = 5,
kCryptohomeRecovery = 6,
kTpmEcc = 7,
kMaxValue,
};
} // namespace cryptohome
#endif // CRYPTOHOME_AUTH_BLOCKS_AUTH_BLOCK_TYPE_H_