Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(2)  |  Import(1)

src/o/p/opentls-HEAD/tests/test_hmac.py   opentls(Download)
    import unittest
 
from tests.c.test_hmac import Vector001, Vector002, Vector003
 
from tls.c import api
class TestMd5001(HMACTests, Vector001, unittest.TestCase):
 
    md = None
    digest = b'\x92\x94rz68\xbb\x1c\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d'
 
class TestSha1001(HMACTests, Vector001, unittest.TestCase):
 
    md = b'sha1'
    digest = b'g[\x0b:\x1bM\xdfN\x12Hr\xdal/c+\xfe\xd9W\xe9'