Files
provisioning_sdk_source/common/python/crypto_util.clif
2019-01-23 15:16:31 -08:00

16 lines
715 B
Plaintext

################################################################################
# Copyright 2018 Google LLC.
#
# This software is licensed under the terms defined in the Widevine Master
# License Agreement. For a copy of this agreement, please contact
# widevine-licensing@google.com.
################################################################################
from "common/crypto_util.h":
namespace `widevine::crypto_util`:
const `kSigningKeyLabel` as SIGNING_KEY_LABEL: bytes
const `kSigningKeySizeBits` as SIGNING_KEY_SIZE_BITS: int
def DeriveKey(key: bytes, label: bytes, context: bytes, size_bits: uint32_t) -> bytes
def CreateSignatureHmacSha256(key: bytes, message: bytes) -> bytes