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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/e/m/emails-0.1.12/emails/packages/dkim/__init__.py   emails(Download)
    InvalidCanonicalizationPolicyError,
    )
from .crypto import (
    DigestTooLargeError,
    HASH_ALGORITHMS,
    try:
        signature = base64.b64decode(re.sub(br"\s+", b"", sig[b'b']))
        res = RSASSA_PKCS1_v1_5_verify(h, signature, pk)
        if res and self.keysize < self.minkey:
          raise KeyFormatError("public key too small: %d" % self.keysize)

src/p/y/python-emails-HEAD/emails/packages/dkim/__init__.py   python-emails(Download)
    InvalidCanonicalizationPolicyError,
    )
from .crypto import (
    DigestTooLargeError,
    HASH_ALGORITHMS,
    try:
        signature = base64.b64decode(re.sub(br"\s+", b"", sig[b'b']))
        res = RSASSA_PKCS1_v1_5_verify(h, signature, pk)
        if res and self.keysize < self.minkey:
          raise KeyFormatError("public key too small: %d" % self.keysize)