Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 1 | /* |
| 2 | |
| 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 | |
| 15 | */ |
| 16 | |
| 17 | /* RCSID("$Id: mpaux.h,v 1.1 1999/10/27 03:42:44 damien Exp $"); */ |
| 18 | |
| 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. */ |
| 25 | void compute_session_id(unsigned char session_id[16], |
| 26 | unsigned char cookie[8], |
| 27 | unsigned int host_key_bits, |
| 28 | BIGNUM *host_key_n, |
| 29 | unsigned int session_key_bits, |
| 30 | BIGNUM *session_key_n); |
| 31 | |
| 32 | #endif /* MPAUX_H */ |