blob: 105bc3148bf30575b7c454e89c918c52cefc5d71 [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001/*
Damien Miller95def091999-11-25 00:26:21 +11002 *
3 * mpaux.h
4 *
5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 *
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * All rights reserved
9 *
10 * Created: Sun Jul 16 04:29:30 1995 ylo
11 *
12 * This file contains various auxiliary functions related to multiple
13 * precision integers.
14 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100015
Damien Miller5428f641999-11-25 11:54:57 +110016/* RCSID("$Id: mpaux.h,v 1.4 1999/11/25 00:54:59 damien Exp $"); */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100017
18#ifndef MPAUX_H
19#define MPAUX_H
20
Damien Miller5428f641999-11-25 11:54:57 +110021/*
22 * Computes a 16-byte session id in the global variable session_id. The
23 * session id is computed by concatenating the linearized, msb first
24 * representations of host_key_n, session_key_n, and the cookie.
25 */
Damien Miller95def091999-11-25 00:26:21 +110026void
27compute_session_id(unsigned char session_id[16],
28 unsigned char cookie[8],
29 BIGNUM * host_key_n,
30 BIGNUM * session_key_n);
Damien Millerd4a8b7e1999-10-27 13:42:43 +100031
Damien Miller95def091999-11-25 00:26:21 +110032#endif /* MPAUX_H */