GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::crypto Namespace Reference

Typedefs

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

Functions

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

◆ hash_fptr

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

◆ hash() [1/2]

◆ hash() [2/2]

std::string octave::crypto::hash ( const std::string hash_type,
const std::string str 
)

◆ md2_digest_size()

int octave::crypto::md2_digest_size ( void  )

Definition at line 57 of file lo-hash.cc.

References octave_md2_digest_size().

Referenced by md2_hash().

◆ md2_hash()

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

Definition at line 67 of file lo-hash.cc.

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

Referenced by hash().

◆ md4_digest_size()

int octave::crypto::md4_digest_size ( void  )

Definition at line 58 of file lo-hash.cc.

References octave_md4_digest_size().

Referenced by md4_hash().

◆ md4_hash()

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

Definition at line 73 of file lo-hash.cc.

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

Referenced by hash().

◆ md5_digest_size()

int octave::crypto::md5_digest_size ( void  )

Definition at line 59 of file lo-hash.cc.

References octave_md5_digest_size().

Referenced by md5_hash().

◆ md5_hash()

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

Definition at line 79 of file lo-hash.cc.

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

Referenced by hash().

◆ sha1_digest_size()

int octave::crypto::sha1_digest_size ( void  )

Definition at line 60 of file lo-hash.cc.

References octave_sha1_digest_size().

Referenced by sha1_hash().

◆ sha1_hash()

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

Definition at line 85 of file lo-hash.cc.

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

Referenced by hash().

◆ sha224_digest_size()

int octave::crypto::sha224_digest_size ( void  )

Definition at line 61 of file lo-hash.cc.

References octave_sha224_digest_size().

Referenced by sha224_hash().

◆ sha224_hash()

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

Definition at line 91 of file lo-hash.cc.

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

Referenced by hash().

◆ sha256_digest_size()

int octave::crypto::sha256_digest_size ( void  )

Definition at line 62 of file lo-hash.cc.

References octave_sha256_digest_size().

Referenced by sha256_hash().

◆ sha256_hash()

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

Definition at line 97 of file lo-hash.cc.

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

Referenced by hash().

◆ sha384_digest_size()

int octave::crypto::sha384_digest_size ( void  )

Definition at line 63 of file lo-hash.cc.

References octave_sha384_digest_size().

Referenced by sha384_hash().

◆ sha384_hash()

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

Definition at line 103 of file lo-hash.cc.

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

Referenced by hash().

◆ sha512_digest_size()

int octave::crypto::sha512_digest_size ( void  )

Definition at line 64 of file lo-hash.cc.

References octave_sha512_digest_size().

Referenced by sha512_hash().

◆ sha512_hash()

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

Definition at line 109 of file lo-hash.cc.

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

Referenced by hash().