des_ecb.c (55009) | des_ecb.c (62587) |
---|---|
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 |
|
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.] | 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.] |
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 } | 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 |
|
70 | 72 |
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 --- | 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 --- |