Deleted Added
sdiff udiff text old ( 113908 ) new ( 124208 )
full compact
1/* $OpenBSD: key.h,v 1.22 2003/06/24 08:23:46 markus Exp $ */
2
3/*
4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 46 unchanged lines hidden (view full) ---

56};
57
58Key *key_new(int);
59Key *key_new_private(int);
60void key_free(Key *);
61Key *key_demote(Key *);
62int key_equal(Key *, Key *);
63char *key_fingerprint(Key *, enum fp_type, enum fp_rep);
64u_char *key_fingerprint_raw(Key *, enum fp_type, u_int *);
65char *key_type(Key *);
66int key_write(Key *, FILE *);
67int key_read(Key *, char **);
68u_int key_size(Key *);
69
70Key *key_generate(int, u_int);
71Key *key_from_private(Key *);
72int key_type_from_name(char *);
73
74Key *key_from_blob(u_char *, u_int);
75int key_to_blob(Key *, u_char **, u_int *);
76char *key_ssh_name(Key *);
77int key_names_valid2(const char *);
78
79int key_sign(Key *, u_char **, u_int *, u_char *, u_int);
80int key_verify(Key *, u_char *, u_int, u_char *, u_int);
81
82int ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int);
83int ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int);
84int ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int);
85int ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int);
86
87#endif