Account
| ArmsysApi 0.12.18 |
sha.h File Reference
#include <stdint.h>Classes | |
| struct | SHA256Context |
| struct | HMACContext |
Macros | |
| #define | _SHA_enum_ |
Typedefs | |
| typedef struct SHA256Context | SHA256Context |
| typedef struct SHA256Context | SHA224Context |
| typedef struct HMACContext | HMACContext |
Enumerations | |
| enum | { shaSuccess = 0, shaNull, shaInputTooLong, shaStateError, shaBadParam } |
| enum | { SHA256_Message_Block_Size = 64, SHA256HashSize = 32, SHA256HashSizeBits = 256 } |
Functions | |
| int | SHA256Reset (SHA256Context *) |
| int | SHA256Input (SHA256Context *, const uint8_t *bytes, unsigned int bytecount) |
| int | SHA256Result (SHA256Context *, uint8_t Message_Digest[SHA256HashSize]) |
| int | hmacReset (HMACContext *context, const unsigned char *key, int key_len) |
| int | hmacInput (HMACContext *context, const unsigned char *text, int text_len) |
| int | hmacResult (HMACContext *context, uint8_t digest[SHA256_Message_Block_Size]) |
Macro Definition Documentation
◆ _SHA_enum_
| #define _SHA_enum_ |
Typedef Documentation
◆ HMACContext
| typedef struct HMACContext HMACContext |
◆ SHA224Context
| typedef struct SHA256Context SHA224Context |
◆ SHA256Context
| typedef struct SHA256Context SHA256Context |
Enumeration Type Documentation
◆ anonymous enum
◆ anonymous enum
Function Documentation
◆ hmacInput()
| int hmacInput | ( | HMACContext * | context, |
| const unsigned char * | text, | ||
| int | text_len | ||
| ) |
◆ hmacReset()
| int hmacReset | ( | HMACContext * | context, |
| const unsigned char * | key, | ||
| int | key_len | ||
| ) |
◆ hmacResult()
| int hmacResult | ( | HMACContext * | context, |
| uint8_t | digest[SHA256_Message_Block_Size] | ||
| ) |
◆ SHA256Input()
| int SHA256Input | ( | SHA256Context * | , |
| const uint8_t * | bytes, | ||
| unsigned int | bytecount | ||
| ) |
◆ SHA256Reset()
| int SHA256Reset | ( | SHA256Context * | ) |
◆ SHA256Result()
| int SHA256Result | ( | SHA256Context * | , |
| uint8_t | Message_Digest[SHA256HashSize] | ||
| ) |
Generated by
1.8.15 