-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathkeytypes.pxd
More file actions
77 lines (46 loc) · 1.48 KB
/
keytypes.pxd
File metadata and controls
77 lines (46 loc) · 1.48 KB
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
# This file is part of ssh-python.
# Copyright (C) 2018-2025 Panos Kittenis.
# Copyright (C) 2018-2025 ssh-python Contributors.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, version 2.1.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130
from .c_ssh cimport ssh_keytypes_e
cdef class KeyType:
cdef ssh_keytypes_e _type
cdef class DSSKey(KeyType):
pass
cdef class RSAKey(KeyType):
pass
cdef class RSA1Key(KeyType):
pass
cdef class ECDSAKey(KeyType):
pass
cdef class DSSCert01Key(KeyType):
pass
cdef class RSACert01Key(KeyType):
pass
cdef class ECDSA_P256(KeyType):
pass
cdef class ECDSA_P384(KeyType):
pass
cdef class ECDSA_P521(KeyType):
pass
cdef class ECDSA_P256_CERT01(KeyType):
pass
cdef class ECDSA_P384_CERT01(KeyType):
pass
cdef class ECDSA_P521_CERT01(KeyType):
pass
cdef class ED25519_CERT01(KeyType):
pass
cdef KeyType from_keytype(ssh_keytypes_e _type)