Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/key.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4304 - (show annotations) (download) (as text)
Mon Feb 14 09:09:07 2011 UTC (13 years, 1 month ago) by maya
Original Path: trunk/ttssh2/ttxssh/key.h
File MIME type: text/x-chdr
File size: 2581 byte(s)
ssh.c から key.c, kex.c を分割
1 /*
2 Copyright (c) 2011, TeraTerm Project
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
7
8 Redistributions of source code must retain the above copyright notice, this list of
9 conditions and the following disclaimer.
10
11 Redistributions in binary form must reproduce the above copyright notice, this list
12 of conditions and the following disclaimer in the documentation and/or other materials
13 provided with the distribution.
14
15 The name of Robert O'Callahan may not be used to endorse or promote products derived from
16 this software without specific prior written permission.
17
18 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND
19 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21 THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #include "ttxssh.h"
30
31 #if 0
32 int ssh_dss_verify(DSA *key,
33 u_char *signature, u_int signaturelen,
34 u_char *data, u_int datalen);
35 int ssh_rsa_verify(RSA *key,
36 u_char *signature, u_int signaturelen,
37 u_char *data, u_int datalen);
38 #endif
39 int key_verify(RSA *rsa_key, DSA *dsa_key,
40 unsigned char *signature, unsigned int signaturelen,
41 unsigned char *data, unsigned int datalen);
42 RSA *duplicate_RSA(RSA *src);
43 DSA *duplicate_DSA(DSA *src);
44 char* key_fingerprint_raw(Key *k, int *dgst_raw_length);
45
46 char *key_fingerprint(Key *key, enum fp_rep dgst_rep);
47 void key_free(Key *key);
48 char *get_sshname_from_key(Key *key);
49 enum hostkey_type get_keytype_from_name(char *name);
50 int key_to_blob(Key *key, char **blobp, int *lenp);
51 Key *key_from_blob(char *data, int blen);
52 char *get_SSH2_keyname(CRYPTKeyPair *keypair);
53 BOOL generate_SSH2_keysign(CRYPTKeyPair *keypair, char **sigptr, int *siglen, char *data, int datalen);
54 BOOL get_SSH2_publickey_blob(PTInstVar pvar, buffer_t **blobptr, int *bloblen);

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26