pluto  1
Small utility library for UUIDs, SHA1, and Encryption
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
plt::SHA1 Class Reference

SHA1 functionality of Pluto. More...

#include <TinySHA1.h>

Public Types

typedef uint32_t digest32_t[5]
 digest32
 
typedef uint8_t digest8_t[20]
 digest8
 

Public Member Functions

 SHA1 ()
 Default Constructor of SHA1.
 
 SHA1 (const SHA1 &s)
 Copy Constructor of SHA1.
 
const SHA1operator= (const SHA1 &s)
 equals operator More...
 
SHA1reset ()
 reset the SHA1 More...
 
SHA1processByte (uint8_t octet)
 processes byte of SHA1sum
 
SHA1processBlock (const void *const start, const void *const end)
 processes block of SHA1sum
 
SHA1processBytes (const void *const data, size_t len)
 processes the bytes of a SHA1
 
const uint32_t * getDigest (digest32_t digest)
 gets digest of SHA1
 
const uint8_t * getDigestBytes (digest8_t digest)
 gets the digests bytes of the SHA1
 

Static Public Member Functions

static uint32_t LeftRotate (uint32_t value, size_t count)
 equals operator More...
 

Protected Member Functions

void processBlock ()
 processes block of SHA1
 

Detailed Description

SHA1 functionality of Pluto.

SHA1 is used to create a hash for a given data set this hash is normally used as an ID.

Member Function Documentation

static uint32_t plt::SHA1::LeftRotate ( uint32_t  value,
size_t  count 
)
inlinestatic

equals operator

Sets 2 hashes equal to eachother

const SHA1& plt::SHA1::operator= ( const SHA1 s)
inline

equals operator

Sets 2 hashes equal to eachother

SHA1& plt::SHA1::reset ( )
inline

reset the SHA1

clears the stored hash


The documentation for this class was generated from the following file: