key.h (113908) | key.h (124208) |
---|---|
1/* $OpenBSD: key.h,v 1.20 2003/02/12 09:33:04 markus Exp $ */ | 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); | 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 *); |
|
64char *key_type(Key *); 65int key_write(Key *, FILE *); 66int key_read(Key *, char **); 67u_int key_size(Key *); 68 69Key *key_generate(int, u_int); 70Key *key_from_private(Key *); 71int key_type_from_name(char *); 72 | 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 |
73Key *key_from_blob(u_char *, int); | 74Key *key_from_blob(u_char *, u_int); |
74int key_to_blob(Key *, u_char **, u_int *); 75char *key_ssh_name(Key *); 76int key_names_valid2(const char *); 77 78int key_sign(Key *, u_char **, u_int *, u_char *, u_int); 79int key_verify(Key *, u_char *, u_int, u_char *, u_int); 80 81int ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int); 82int ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int); 83int ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int); 84int ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int); 85 86#endif | 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 |