|
libmoost
|

Go to the source code of this file.
Defines | |
| #define | SHA1_ROTL(bits, word) (((word) << (bits)) | ((word) >> (32-(bits)))) |
| #define | SHA1AddLength(context, length) |
Functions | |
| static void | SHA1ProcessMessageBlock (SHA1Context *context) |
| static void | SHA1Finalize (SHA1Context *context, uint8_t Pad_Byte) |
| static void | SHA1PadMessage (SHA1Context *context, uint8_t Pad_Byte) |
| int | SHA1Reset (SHA1Context *context) |
| int | SHA1Input (SHA1Context *context, const uint8_t *message_array, unsigned length) |
| int | SHA1FinalBits (SHA1Context *context, uint8_t message_bits, unsigned int length) |
| int | SHA1Result (SHA1Context *context, uint8_t Message_Digest[SHA1HashSize]) |
Variables | |
| static uint32_t | addTemp |
| #define SHA1_ROTL | ( | bits, | |
| word | |||
| ) | (((word) << (bits)) | ((word) >> (32-(bits)))) |
| #define SHA1AddLength | ( | context, | |
| length | |||
| ) |
(addTemp = (context)->Length_Low, \ (context)->Corrupted = \ (((context)->Length_Low += (length)) < addTemp) && \ (++(context)->Length_High == 0) ? shaInputTooLong \ : (context)->Corrupted )
| int SHA1FinalBits | ( | SHA1Context * | context, |
| uint8_t | message_bits, | ||
| unsigned int | length | ||
| ) |
| static void SHA1Finalize | ( | SHA1Context * | context, |
| uint8_t | Pad_Byte | ||
| ) | [static] |
| int SHA1Input | ( | SHA1Context * | context, |
| const uint8_t * | message_array, | ||
| unsigned | length | ||
| ) |
| static void SHA1PadMessage | ( | SHA1Context * | context, |
| uint8_t | Pad_Byte | ||
| ) | [static] |
| static void SHA1ProcessMessageBlock | ( | SHA1Context * | context | ) | [static] |
| int SHA1Reset | ( | SHA1Context * | context | ) |
| int SHA1Result | ( | SHA1Context * | context, |
| uint8_t | Message_Digest[SHA1HashSize] | ||
| ) |