Deleted Added
sdiff udiff text old ( 55009 ) new ( 62587 )
full compact
1/* crypto/des/ecb_enc.c */
2/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
3 * All rights reserved.
4 *
5 * This file is part of an SSL implementation written
6 * by Eric Young (eay@mincom.oz.au).
7 * The implementation was written so as to conform with Netscapes SSL
8 * specification. This library and applications are

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

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

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

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

--- 152 unchanged lines hidden ---