md4_locl.h (68651) | md4_locl.h (89837) |
---|---|
1/* crypto/md4/md4_locl.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 54 unchanged lines hidden (view full) --- 63 64#ifndef MD4_LONG_LOG2 65#define MD4_LONG_LOG2 2 /* default to 32 bits */ 66#endif 67 68void md4_block_host_order (MD4_CTX *c, const void *p,int num); 69void md4_block_data_order (MD4_CTX *c, const void *p,int num); 70 | 1/* crypto/md4/md4_locl.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 54 unchanged lines hidden (view full) --- 63 64#ifndef MD4_LONG_LOG2 65#define MD4_LONG_LOG2 2 /* default to 32 bits */ 66#endif 67 68void md4_block_host_order (MD4_CTX *c, const void *p,int num); 69void md4_block_data_order (MD4_CTX *c, const void *p,int num); 70 |
71#if defined(__i386) || defined(_M_IX86) || defined(__INTEL__) | 71#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) |
72/* 73 * *_block_host_order is expected to handle aligned data while 74 * *_block_data_order - unaligned. As algorithm and host (x86) 75 * are in this case of the same "endianness" these two are 76 * otherwise indistinguishable. But normally you don't want to 77 * call the same function because unaligned access in places 78 * where alignment is expected is usually a "Bad Thing". Indeed, 79 * on RISCs you get punished with BUS ERROR signal or *severe* --- 75 unchanged lines hidden --- | 72/* 73 * *_block_host_order is expected to handle aligned data while 74 * *_block_data_order - unaligned. As algorithm and host (x86) 75 * are in this case of the same "endianness" these two are 76 * otherwise indistinguishable. But normally you don't want to 77 * call the same function because unaligned access in places 78 * where alignment is expected is usually a "Bad Thing". Indeed, 79 * on RISCs you get punished with BUS ERROR signal or *severe* --- 75 unchanged lines hidden --- |