blob: 85e2fa2bf0236048d1895860b5b0ec36917dec90 [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001/*
2
3mpaux.h
4
5Author: Tatu Ylonen <ylo@cs.hut.fi>
6
7Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 All rights reserved
9
10Created: Sun Jul 16 04:29:30 1995 ylo
11
12This file contains various auxiliary functions related to multiple
13precision integers.
14
15*/
16
Damien Miller7e8e8201999-11-16 13:37:16 +110017/* RCSID("$Id: mpaux.h,v 1.2 1999/11/16 02:37:16 damien Exp $"); */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100018
19#ifndef MPAUX_H
20#define MPAUX_H
21
22/* Computes a 16-byte session id in the global variable session_id.
23 The session id is computed by concatenating the linearized, msb
24 first representations of host_key_n, session_key_n, and the cookie. */
25void compute_session_id(unsigned char session_id[16],
26 unsigned char cookie[8],
Damien Millerd4a8b7e1999-10-27 13:42:43 +100027 BIGNUM *host_key_n,
Damien Millerd4a8b7e1999-10-27 13:42:43 +100028 BIGNUM *session_key_n);
29
30#endif /* MPAUX_H */