blob: b3f15e4a5fe00efade5671e4782756d785ac465c [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001/*
Damien Miller95def091999-11-25 00:26:21 +11002 * Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller95def091999-11-25 00:26:21 +11003 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
Damien Miller95def091999-11-25 00:26:21 +11005 * This file contains various auxiliary functions related to multiple
6 * precision integers.
Damien Millere4340be2000-09-16 13:29:08 +11007 *
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".
Damien Miller95def091999-11-25 00:26:21 +110013 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100014
Ben Lindstrom46c16222000-12-22 01:43:59 +000015/* RCSID("$OpenBSD: mpaux.h,v 1.9 2000/12/19 23:17:57 markus Exp $"); */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100016
17#ifndef MPAUX_H
18#define MPAUX_H
19
Damien Miller5428f641999-11-25 11:54:57 +110020/*
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 */
Damien Miller4af51302000-04-16 11:18:38 +100025void
Ben Lindstrom46c16222000-12-22 01:43:59 +000026compute_session_id(u_char session_id[16],
27 u_char cookie[8],
Damien Miller95def091999-11-25 00:26:21 +110028 BIGNUM * host_key_n,
29 BIGNUM * session_key_n);
Damien Millerd4a8b7e1999-10-27 13:42:43 +100030
Damien Miller95def091999-11-25 00:26:21 +110031#endif /* MPAUX_H */