bf_cfb64.c (55714) | bf_cfb64.c (59191) |
---|---|
1/* crypto/bf/bf_cfb64.c */ 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 * --- 50 unchanged lines hidden (view full) --- 59#include <openssl/blowfish.h> 60#include "bf_locl.h" 61 62/* The input and output encrypted as though 64bit cfb mode is being 63 * used. The extra state information to record how much of the 64 * 64bit block we have used is contained in *num; 65 */ 66 | 1/* crypto/bf/bf_cfb64.c */ 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 * --- 50 unchanged lines hidden (view full) --- 59#include <openssl/blowfish.h> 60#include "bf_locl.h" 61 62/* The input and output encrypted as though 64bit cfb mode is being 63 * used. The extra state information to record how much of the 64 * 64bit block we have used is contained in *num; 65 */ 66 |
67void BF_cfb64_encrypt(unsigned char *in, unsigned char *out, long length, 68 BF_KEY *schedule, unsigned char *ivec, int *num, int encrypt) | 67void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, 68 const BF_KEY *schedule, unsigned char *ivec, int *num, int encrypt) |
69 { 70 register BF_LONG v0,v1,t; 71 register int n= *num; 72 register long l=length; 73 BF_LONG ti[2]; 74 unsigned char *iv,c,cc; 75 76 iv=(unsigned char *)ivec; --- 45 unchanged lines hidden --- | 69 { 70 register BF_LONG v0,v1,t; 71 register int n= *num; 72 register long l=length; 73 BF_LONG ti[2]; 74 unsigned char *iv,c,cc; 75 76 iv=(unsigned char *)ivec; --- 45 unchanged lines hidden --- |