18 lines
690 B
Plaintext
18 lines
690 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/python/hash_algorithm.h" import *
|
|
|
|
from "common/rsa_key.h":
|
|
namespace `widevine`:
|
|
class RsaPublicKey:
|
|
def VerifySignature(self, message: bytes, hash_algorithm: HashAlgorithm, signature: bytes) -> bool
|
|
|
|
staticmethods from `RsaPublicKey`:
|
|
def Create(serialized_key: bytes) -> RsaPublicKey
|