Refactor and cleanup codes. No functional changes.
This commit is contained in:
15
common/python/crypto_util.clif
Normal file
15
common/python/crypto_util.clif
Normal 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
|
||||
Reference in New Issue
Block a user