Refactor and cleanup codes. No functional changes.

This commit is contained in:
KongQun Yang
2019-01-23 15:16:31 -08:00
parent 84f66d2320
commit 93265ab9d1
207 changed files with 14893 additions and 3332 deletions

View File

@@ -0,0 +1,15 @@
################################################################################
# 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