Annotation of src/usr.bin/ssh/mpaux.h, Revision 1.6.2.2
1.1 deraadt 1: /*
1.4 deraadt 2: * Author: Tatu Ylonen <ylo@cs.hut.fi>
3: * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4: * All rights reserved
5: * This file contains various auxiliary functions related to multiple
6: * precision integers.
1.6.2.2 ! jason 7: *
! 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".
1.4 deraadt 13: */
1.1 deraadt 14:
1.6.2.2 ! jason 15: /* RCSID("$OpenBSD: mpaux.h,v 1.8 2000/09/07 20:27:52 deraadt Exp $"); */
1.1 deraadt 16:
17: #ifndef MPAUX_H
18: #define MPAUX_H
19:
1.5 markus 20: /*
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: */
1.6 markus 25: void
1.4 deraadt 26: compute_session_id(unsigned char session_id[16],
27: unsigned char cookie[8],
28: BIGNUM * host_key_n,
29: BIGNUM * session_key_n);
1.1 deraadt 30:
1.4 deraadt 31: #endif /* MPAUX_H */