GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Functions
octave::crypto Namespace Reference


typedef void *( hash_fptr )(const char *buffer, size_t len, void *res)


std::string hash (hash_fptr hash_fcn, const std::string &str, int result_buf_len)
std::string hash (const std::string &hash_type, const std::string &str)
int md2_digest_size (void)
std::string md2_hash (const std::string &str)
int md4_digest_size (void)
std::string md4_hash (const std::string &str)
int md5_digest_size (void)
std::string md5_hash (const std::string &str)
int sha1_digest_size (void)
std::string sha1_hash (const std::string &str)
int sha224_digest_size (void)
std::string sha224_hash (const std::string &str)
int sha256_digest_size (void)
std::string sha256_hash (const std::string &str)
int sha384_digest_size (void)
std::string sha384_hash (const std::string &str)
int sha512_digest_size (void)
std::string sha512_hash (const std::string &str)

Typedef Documentation

typedef void*( octave::crypto::hash_fptr)(const char *buffer, size_t len, void *res)

Definition at line 34 of file lo-hash.h.

Function Documentation

std::string octave::crypto::hash ( hash_fptr  hash_fcn,
const std::string str,
int  result_buf_len 
std::string octave::crypto::hash ( const std::string hash_type,
const std::string str 
int octave::crypto::md2_digest_size ( void  )

Definition at line 57 of file

References octave_md2_digest_size().

Referenced by md2_hash().

std::string octave::crypto::md2_hash ( const std::string str)

Definition at line 67 of file

References hash(), md2_digest_size(), and octave_md2_buffer_wrapper().

Referenced by hash().

int octave::crypto::md4_digest_size ( void  )

Definition at line 58 of file

References octave_md4_digest_size().

Referenced by md4_hash().

std::string octave::crypto::md4_hash ( const std::string str)

Definition at line 73 of file

References hash(), md4_digest_size(), and octave_md4_buffer_wrapper().

Referenced by hash().

int octave::crypto::md5_digest_size ( void  )

Definition at line 59 of file

References octave_md5_digest_size().

Referenced by md5_hash().

std::string octave::crypto::md5_hash ( const std::string str)

Definition at line 79 of file

References hash(), md5_digest_size(), and octave_md5_buffer_wrapper().

Referenced by hash().

int octave::crypto::sha1_digest_size ( void  )

Definition at line 60 of file

References octave_sha1_digest_size().

Referenced by sha1_hash().

std::string octave::crypto::sha1_hash ( const std::string str)

Definition at line 85 of file

References hash(), octave_sha1_buffer_wrapper(), and sha1_digest_size().

Referenced by hash().

int octave::crypto::sha224_digest_size ( void  )

Definition at line 61 of file

References octave_sha224_digest_size().

Referenced by sha224_hash().

std::string octave::crypto::sha224_hash ( const std::string str)

Definition at line 91 of file

References hash(), octave_sha224_buffer_wrapper(), and sha224_digest_size().

Referenced by hash().

int octave::crypto::sha256_digest_size ( void  )

Definition at line 62 of file

References octave_sha256_digest_size().

Referenced by sha256_hash().

std::string octave::crypto::sha256_hash ( const std::string str)

Definition at line 97 of file

References hash(), octave_sha256_buffer_wrapper(), and sha256_digest_size().

Referenced by hash().

int octave::crypto::sha384_digest_size ( void  )

Definition at line 63 of file

References octave_sha384_digest_size().

Referenced by sha384_hash().

std::string octave::crypto::sha384_hash ( const std::string str)

Definition at line 103 of file

References hash(), octave_sha384_buffer_wrapper(), and sha384_digest_size().

Referenced by hash().

int octave::crypto::sha512_digest_size ( void  )

Definition at line 64 of file

References octave_sha512_digest_size().

Referenced by sha512_hash().

std::string octave::crypto::sha512_hash ( const std::string str)

Definition at line 109 of file

References hash(), octave_sha512_buffer_wrapper(), and sha512_digest_size().

Referenced by hash().