GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-hash.cc File Reference
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <string>
#include "hash-wrappers.h"
#include "lo-error.h"
#include "lo-hash.h"
#include "oct-locbuf.h"

Go to the source code of this file.

Functions

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

Function Documentation

◆ hash() [1/2]

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

◆ hash() [2/2]

std::string hash ( hash_fptr  hash_fcn,
const std::string &  str,
int  result_buf_len 
)

◆ md2_digest_size()

int md2_digest_size ( )

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

References octave_md2_digest_size().

Referenced by md2_hash().

◆ md2_hash()

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()

int md4_digest_size ( )

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

References octave_md4_digest_size().

Referenced by md4_hash().

◆ md4_hash()

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()

int md5_digest_size ( )

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

References octave_md5_digest_size().

Referenced by md5_hash().

◆ md5_hash()

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()

int sha1_digest_size ( )

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

References octave_sha1_digest_size().

Referenced by sha1_hash().

◆ sha1_hash()

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()

int sha224_digest_size ( )

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

References octave_sha224_digest_size().

Referenced by sha224_hash().

◆ sha224_hash()

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()

int sha256_digest_size ( )

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

References octave_sha256_digest_size().

Referenced by sha256_hash().

◆ sha256_hash()

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()

int sha384_digest_size ( )

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

References octave_sha384_digest_size().

Referenced by sha384_hash().

◆ sha384_hash()

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()

int sha512_digest_size ( )

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

References octave_sha512_digest_size().

Referenced by sha512_hash().

◆ sha512_hash()

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().