mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
Add support for SHA256 based HKDF key derivation as specified in RFC 5869. This change includes test vectors from the RFC. BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524 TEST=tests under test/tpm2 pass Change-Id: I7d0e4e92775b74c41643f45587fc08f56d8916aa Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/336091 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Marius Schilder <mschilder@chromium.org>
19 lines
444 B
Python
19 lines
444 B
Python
#!/usr/bin/python
|
|
# 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/extension.h.
|
|
AES = 0
|
|
HASH = 1
|
|
RSA = 2
|
|
EC = 3
|
|
FW_UPGRADE = 4
|
|
HKDF = 5
|
|
|
|
# The same exception class used by all tpmtest modules.
|
|
class TpmTestError(Exception):
|
|
pass
|