blob: 62f9ccfef2449bf95c6c245befdf55a333dcc1b0 (
about) (
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
|
@c -*-texinfo-*-
@c This file is part of Guile-SSH Reference Manual.
@c Copyright (C) 2014 Artyom V. Poptsov
@c See the file guile-ssh.texi for copying conditions.
@node Keys
@section Keys
@cindex public keys
@cindex private keys
@tindex key
The @code{(ssh key)} module provides procedures for handling of
Guile-SSH keys.
@deffn {Scheme Procedure} key? x
Return @code{#t} if @var{x} is a Guile-SSH key, @code{#f} otherwise.
@end deffn
@deffn {Scheme Procedure} public-key? x
Return @code{#t} if @var{x} is a Guile-SSH public key, @code{#f}
otherwise.
@end deffn
@deffn {Scheme Procedure} private-key? x
Return @code{#t} if @var{x} is a Guile-SSH private key, @code{#f}
otherwise.
@end deffn
@deffn {Scheme Procedure} public-key->string public-key
Convert @var{public-key} to a string.
@end deffn
@deffn {Scheme Procedure} private-key-from-file session file
Read private key from a @var{file}. If the the key is encrypted the
user will be asked for passphrase to decrypt the key.
Return a new Guile-SSH key of @code{#f} on error.
@end deffn
@deffn {Scheme Procedure} private-key->public-key private-key
Get a public key from the @var{private-key}.
@end deffn
@deffn {Scheme Procedure} public-key-from-file session file
Read public key from a @var{file}. Return a public key or @code{#f}
on error.
@end deffn
@deffn {Scheme Procedure} get-key-type key
Get a symbol that represents the type of the Guile-SSH @var{key}.
Possible types are: @code{dss}, @code{rsa}, @code{rsa1}, @code{unknown}.
@end deffn
@c Local Variables:
@c TeX-master: "guile-ssh.texi"
@c End:
|