My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions
CI_SHA1 Class Reference

Public Member Functions

 generate ($str)
 
 _hex ($str)
 
 _ft ($t, $b, $c, $d)
 
 _kt ($t)
 
 _safe_add ($x, $y)
 
 _rol ($num, $cnt)
 
 _zero_fill ($a, $b)
 

Member Function Documentation

_ft (   $t,
  $b,
  $c,
  $d 
)

Return result based on iteration

private

Returns
string
_hex (   $str)

Convert a decimal to hex

private

Parameters
string
Returns
string
_kt (   $t)

Determine the additive constant

private

Returns
string
_rol (   $num,
  $cnt 
)

Bitwise rotate a 32-bit number

private

Returns
integer
_safe_add (   $x,
  $y 
)

Add integers, wrapping at 2^32

private

Returns
string
_zero_fill (   $a,
  $b 
)

Pad string with zero

private

Returns
string
generate (   $str)

Generate the Hash

public

Parameters
string
Returns
string

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