Deleted Added
sdiff udiff text old ( 55009 ) new ( 62587 )
full compact
1/* $FreeBSD: head/sys/crypto/des/des_ecb.c 62587 2000-07-04 16:35:15Z itojun $ */
2/* $KAME: des_ecb.c,v 1.3 2000/03/27 04:36:33 sumikawa Exp $ */
3
4/* crypto/des/ecb_enc.c */
5/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
6 * All rights reserved.
7 *
8 * This file is part of an SSL implementation written
9 * by Eric Young (eay@mincom.oz.au).
10 * The implementation was written so as to conform with Netscapes SSL
11 * specification. This library and applications are

--- 29 unchanged lines hidden (view full) ---

41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 * SUCH DAMAGE.
44 *
45 * The licence and distribution terms for any publically available version or
46 * derivative of this code cannot be changed. i.e. this code cannot simply be
47 * copied and put under another distribution licence
48 * [including the GNU Public Licence.]
49 */
50
51#include <crypto/des/des_locl.h>
52#include <crypto/des/spr.h>
53
54char *libdes_version="libdes v 3.24 - 20-Apr-1996 - eay";
55char *DES_version="DES part of SSLeay 0.6.4 30-Aug-1996";
56

--- 6 unchanged lines hidden (view full) ---

63 return("des(ptr,long)");
64#else
65 if (sizeof(DES_LONG) != sizeof(long))
66 return("des(idx,int)");
67 else
68 return("des(idx,long)");
69#endif
70 }
71
72
73void des_ecb_encrypt(input, output, ks, encrypt)
74des_cblock (*input);
75des_cblock (*output);
76des_key_schedule ks;
77int encrypt;
78 {
79 register DES_LONG l;
80 register unsigned char *in,*out;

--- 152 unchanged lines hidden ---