but i'm not quite sure whether the padding function described in FIPS P180-1/2 for SHA1 is in this
sourcecodefile. The PAdding there is described as follows:
>>>>SNIP
*5.1 Padding the Message*
The message, /M/, shall be padded before hash computation begins. The purpose of this padding
is to ensure that the padded message is a multiple of 512 or 1024 bits, depending on the
algorithm.
*5.1.1 SHA-1 and SHA-256*
Suppose that the length of the message, /M/, is l bits. Append the bit “1” to the end of the
message, followed by /k /zero bits, where /k /is the smallest, non-negative solution to the equation
512 mod 448 1 º + + /k /l . Then append the 64-bit block that is equal to the number l expressed
using a binary representation. For example, the (8-bit ASCII) message “*abc*” has length
24 3 8 = ´ , so the message is padded with a one bit, then 423 ) 1 24 ( 448 = + - zero bits, and then
the message length, to become the 512-bit padded message
<<<<SNAP
I've searched for this in the file you mentioned but didn't find it. Could youplease help me another time?
Thanks in advance. Kind regards Peter
Bommareddy, Satish (Satish) wrote:
crypto/rsa/rsa_pk1.c
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Steiert Sent: Wednesday, March 10, 2004 7:19 AM To: [EMAIL PROTECTED] Subject: Searching for Paddingfunction in SHA-1
Hello @ll,
i'm currently having an intensive look at the hashalgorithms implemented in openssl (mainly SHA-1). I'm searching for the padding algorithms but didn't find them.
Can anybody help and tell me where they are located?
Thanks for your help.
Peter
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
