blob: 9de17276bbae882dd4b80bc602dc88fd2f5ac2ea [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
Damien Millere4340be2000-09-16 13:29:08 +110015/* RCSID("$OpenBSD: mpaux.h,v 1.8 2000/09/07 20:27:52 deraadt 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
Damien Miller95def091999-11-25 00:26:21 +110026compute_session_id(unsigned char session_id[16],
27 unsigned char cookie[8],
28 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 */