-
Notifications
You must be signed in to change notification settings - Fork 83
/
sshcrypto.h
28 lines (22 loc) · 869 Bytes
/
sshcrypto.h
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
/*
* sshcrypto.c
*
* SSH-1 crypto routines, adapted from OpenSSH.
*
* Copyright (c) 2000 Dug Song <[email protected]>
* Copyright (c) 2000 Niels Provos <[email protected]>
* Copyright (c) 2000 Markus Friedl <[email protected]>
*
* $Id: sshcrypto.h,v 1.3 2001/03/15 08:33:06 dugsong Exp $
*/
#ifndef SSHCRYPTO_H
#define SSHCRYPTO_H
void rsa_public_encrypt(BIGNUM *src, BIGNUM *dst, RSA *key);
void rsa_private_decrypt(BIGNUM *src, BIGNUM *dst, RSA *key);
void *blowfish_init(u_char *sesskey, int len);
void blowfish_encrypt(u_char *src, u_char *dst, int len, void *state);
void blowfish_decrypt(u_char *src, u_char *dst, int len, void *state);
void *des3_init(u_char *sesskey, int len);
void des3_encrypt(u_char *src, u_char *dst, int len, void *state);
void des3_decrypt(u_char *src, u_char *dst, int len, void *state);
#endif /* SSHCRYPTO_H */