summaryrefslogtreecommitdiff
path: root/test/tpm_test/subcmd.py
blob: 9b3c3c9368c19e3d36780d92a49f224eaceb9534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-
# Copyright 2015 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.

"""Subcommand codes that specify the crypto module."""

# Keep these codes in sync with include/tpm_vendor_cmds.h
AES = 0
HASH = 1
RSA = 2
ECC = 3
FW_UPGRADE = 4
HKDF = 5
ECIES = 6
DRBG_TEST = 50
# The same exception class used by all tpmtest modules.
class TpmTestError(Exception):
    """TpmTestError exception class"""