From c333dbc4bfa29a1d80c1030b41cc02facd9a8325 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 24 May 2014 18:35:02 -0500 Subject: add rsa_padding_supported interface to RSABackend and OpenSSL backend --- docs/hazmat/backends/interfaces.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/hazmat') diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index ff389cb5..e98b9a59 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -263,6 +263,17 @@ A specific ``backend`` may provide one or more of these interfaces. :returns: ``True`` if the specified ``algorithm`` is supported by this backend, otherwise ``False``. + .. method:: rsa_padding_supported(padding) + + Check if the specified ``padding`` is supported by the backend. + + :param padding: An instance of an + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding` + provider. + + :returns: ``True`` if the specified ``padding`` is supported by this + backend, otherwise ``False``. + .. method:: decrypt_rsa(private_key, ciphertext, padding) :param private_key: An instance of an -- cgit v1.2.3 python cryptographyJames
aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_camellia.py
blob: 7c56f6f9a1ef01744b80dd575e3cf9f8b1101e81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98