[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] BF_ecb_encrypt
- Subject: [ale] BF_ecb_encrypt
- From: joe at madewell.com (Joe Steele)
- Date: Thu, 3 Jan 2002 11:34:59 -0500
The function prototype says it works with unsigned char data:
void BF_ecb_encrypt(const unsigned char *in, unsigned char *out,
BF_KEY *key, int enc);
If you are seeing negative numbers, then the likely reason is because
you have converted or displayed the unsigned char data as signed char
data and the high-order bit is being interpreted as a sign bit.
--Joe
-----Original Message-----
From: Chris Fowler [SMTP:cfowler at outpostsentinel.com]
Sent: Wednesday, January 02, 2002 6:48 PM
To: ale at ale.org
Subject: [ale] BF_ecb_encrypt
Is it possible for BC_ecb_encrypt() to generate signed integers? I'm doing
some test on one-way encryption and Im getting - numbers in some spots. I
want to make sure this is normal.
Chris
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.