Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/cryptography/hazmat/_types.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# This file is dual licensed under the terms of the Apache License, Version
2# 2.0, and the BSD License. See the LICENSE file in the root of this repository
3# for complete details.
5import typing
7from cryptography.hazmat.primitives.asymmetric import (
8 dsa,
9 ec,
10 ed25519,
11 ed448,
12 rsa,
13)
16_PUBLIC_KEY_TYPES = typing.Union[
17 dsa.DSAPublicKey,
18 rsa.RSAPublicKey,
19 ec.EllipticCurvePublicKey,
20 ed25519.Ed25519PublicKey,
21 ed448.Ed448PublicKey,
22]
23_PRIVATE_KEY_TYPES = typing.Union[
24 ed25519.Ed25519PrivateKey,
25 ed448.Ed448PrivateKey,
26 rsa.RSAPrivateKey,
27 dsa.DSAPrivateKey,
28 ec.EllipticCurvePrivateKey,
29]