File nut/include/contrib/crypto/sha1.h


Included Files


Preprocessor definitions

* \file sha1.h * \author Daniel Otte * \email daniel.otte@rub.de * \date 2006-10-08 * \license GPLv3 or later * \brief SHA-1 declaration. * \ingroup SHA-1 *

#define SHA1_H_

\def SHA1_BLOCK_BYTES * definees the size of a SHA-1 input block in bytes

#define SHA1_HASH_BITS 160

#define SHA1_HASH_BYTES

#define SHA1_BLOCK_BITS 512

#define SHA1_BLOCK_BYTES


Typedef sha1_ctx_t

\typedef sha1_ctx_t * \brief SHA-1 context type * * A vatiable of this type may hold the state of a SHA-1 hashing process

typedef struct {...} sha1_ctx_t

struct  
   {  
      uint32_t h[5];  
      uint64_t length;  
   }