summaryrefslogtreecommitdiff
path: root/other/ssharp/mpaux.h
diff options
context:
space:
mode:
authorSkyperTHC2026-03-03 06:28:55 +0000
committerSkyperTHC2026-03-03 06:28:55 +0000
commit5d3573ef7a109ee70416fe94db098fe6a769a798 (patch)
treedc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/ssharp/mpaux.h
parentc6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff)
packetstorm sync
Diffstat (limited to 'other/ssharp/mpaux.h')
-rw-r--r--other/ssharp/mpaux.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/other/ssharp/mpaux.h b/other/ssharp/mpaux.h
new file mode 100644
index 0000000..b3f15e4
--- /dev/null
+++ b/other/ssharp/mpaux.h
@@ -0,0 +1,31 @@
1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 * This file contains various auxiliary functions related to multiple
6 * precision integers.
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14
15/* RCSID("$OpenBSD: mpaux.h,v 1.9 2000/12/19 23:17:57 markus Exp $"); */
16
17#ifndef MPAUX_H
18#define MPAUX_H
19
20/*
21 * Computes a 16-byte session id in the global variable session_id. The
22 * session id is computed by concatenating the linearized, msb first
23 * representations of host_key_n, session_key_n, and the cookie.
24 */
25void
26compute_session_id(u_char session_id[16],
27 u_char cookie[8],
28 BIGNUM * host_key_n,
29 BIGNUM * session_key_n);
30
31#endif /* MPAUX_H */