fixed indentation
This commit is contained in:
@@ -70,7 +70,7 @@ to modify the code.
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void BF_encrypt(BF_LONG *data, const BF_KEY *key)
|
void BF_encrypt(BF_LONG *data, const BF_KEY *key)
|
||||||
{
|
{
|
||||||
#ifndef BF_PTR2
|
#ifndef BF_PTR2
|
||||||
const BF_LONG *p,*s;
|
const BF_LONG *p,*s;
|
||||||
BF_LONG l,r;
|
BF_LONG l,r;
|
||||||
@@ -142,12 +142,12 @@ void BF_encrypt(BF_LONG *data, const BF_KEY *key)
|
|||||||
data[1]=l&0xffffffffL;
|
data[1]=l&0xffffffffL;
|
||||||
data[0]=r&0xffffffffL;
|
data[0]=r&0xffffffffL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef BF_DEFAULT_OPTIONS
|
#ifndef BF_DEFAULT_OPTIONS
|
||||||
|
|
||||||
void BF_decrypt(BF_LONG *data, const BF_KEY *key)
|
void BF_decrypt(BF_LONG *data, const BF_KEY *key)
|
||||||
{
|
{
|
||||||
#ifndef BF_PTR2
|
#ifndef BF_PTR2
|
||||||
const BF_LONG *p,*s;
|
const BF_LONG *p,*s;
|
||||||
BF_LONG l,r;
|
BF_LONG l,r;
|
||||||
@@ -219,11 +219,11 @@ void BF_decrypt(BF_LONG *data, const BF_KEY *key)
|
|||||||
data[1]=l&0xffffffffL;
|
data[1]=l&0xffffffffL;
|
||||||
data[0]=r&0xffffffffL;
|
data[0]=r&0xffffffffL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
|
void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
|
||||||
const BF_KEY *schedule, unsigned char *ivec, int encrypt)
|
const BF_KEY *schedule, unsigned char *ivec, int encrypt)
|
||||||
{
|
{
|
||||||
BF_LONG tin0,tin1;
|
BF_LONG tin0,tin1;
|
||||||
BF_LONG tout0,tout1,xor0,xor1;
|
BF_LONG tout0,tout1,xor0,xor1;
|
||||||
long l=length;
|
long l=length;
|
||||||
@@ -301,6 +301,6 @@ void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
|
|||||||
}
|
}
|
||||||
tin0=tin1=tout0=tout1=xor0=xor1=0;
|
tin0=tin1=tout0=tout1=xor0=xor1=0;
|
||||||
tin[0]=tin[1]=0;
|
tin[0]=tin[1]=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user