GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-hash.h File Reference
#include "octave-config.h"
#include <string>
Include dependency graph for lo-hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

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

Functions

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

Typedef Documentation

◆ hash_fptr

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

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

Function Documentation

◆ hash() [1/2]

OCTAVE_API std::string hash ( const std::string &  hash_type,
const std::string &  str 
)

◆ hash() [2/2]

◆ md2_digest_size()

OCTAVE_API int md2_digest_size ( void  )

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

References octave_md2_digest_size().

Referenced by md2_hash().

◆ md2_hash()

OCTAVE_API std::string md2_hash ( const std::string &  str)

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

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

Referenced by hash().

◆ md4_digest_size()

OCTAVE_API int md4_digest_size ( void  )

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

References octave_md4_digest_size().

Referenced by md4_hash().

◆ md4_hash()

OCTAVE_API std::string md4_hash ( const std::string &  str)

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

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

Referenced by hash().

◆ md5_digest_size()

OCTAVE_API int md5_digest_size ( void  )

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

References octave_md5_digest_size().

Referenced by md5_hash().

◆ md5_hash()

OCTAVE_API std::string md5_hash ( const std::string &  str)

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

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

Referenced by hash().

◆ sha1_digest_size()

OCTAVE_API int sha1_digest_size ( void  )

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

References octave_sha1_digest_size().

Referenced by sha1_hash().

◆ sha1_hash()

OCTAVE_API std::string sha1_hash ( const std::string &  str)

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

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

Referenced by hash().

◆ sha224_digest_size()

OCTAVE_API int sha224_digest_size ( void  )

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

References octave_sha224_digest_size().

Referenced by sha224_hash().

◆ sha224_hash()

OCTAVE_API std::string sha224_hash ( const std::string &  str)

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

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

Referenced by hash().

◆ sha256_digest_size()

OCTAVE_API int sha256_digest_size ( void  )

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

References octave_sha256_digest_size().

Referenced by sha256_hash().

◆ sha256_hash()

OCTAVE_API std::string sha256_hash ( const std::string &  str)

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

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

Referenced by hash().

◆ sha384_digest_size()

OCTAVE_API int sha384_digest_size ( void  )

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

References octave_sha384_digest_size().

Referenced by sha384_hash().

◆ sha384_hash()

OCTAVE_API std::string sha384_hash ( const std::string &  str)

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

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

Referenced by hash().

◆ sha512_digest_size()

OCTAVE_API int sha512_digest_size ( void  )

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

References octave_sha512_digest_size().

Referenced by sha512_hash().

◆ sha512_hash()

OCTAVE_API std::string sha512_hash ( const std::string &  str)

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

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

Referenced by hash().