summaryrefslogtreecommitdiff
path: root/src/cryptography/hazmat/bindings/_rust/pkcs7.pyi
blob: 66bd850981a6fa06eb7c7ecdec0e443c22b82c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import typing

from cryptography import x509
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.serialization import pkcs7

def serialize_certificates(
    certs: typing.List[x509.Certificate],
    encoding: serialization.Encoding,
) -> bytes: ...
def sign_and_serialize(
    builder: pkcs7.PKCS7SignatureBuilder,
    encoding: serialization.Encoding,
    options: typing.Iterable[pkcs7.PKCS7Options],
) -> bytes: ...