Questions tagged [mhash]

Mhash is a free (under GNU Lesser GPL) library which provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures.

Mhash is a free (under GNU Lesser GPL) library which provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures. The HMAC support implements the basics for message authentication, following RFC 2104.

10 questions
3
votes
1 answer

Compile a program using mhash

I am trying to use lessfs and learning how it uses mhash to produce its cryptographic fingerprints, so I am taking a look at mhash to see how it handles the hashing algorithms, so I am trying to run some of the examples provided in the program, but…
humblebeast
  • 303
  • 3
  • 16
2
votes
0 answers

Install php7 mash with apt-get install

Is it possible to install mhash with apt-get? I've tried sudo apt-get install php7.0-mhash, but this doesn't work. Php document says that I must compile PHP with --with-mhash[=DIR] parameter, but I wish I don't have to compile php7.0 from source.…
Brian
  • 12,145
  • 20
  • 90
  • 153
1
vote
3 answers

How can I transfer data from unsigned char * to char * safely?

I am willing to transfer data from unsigned char hash[512 + 1] to char res[512 + 1] safely. My C hashing library MHASH returns a result so it can be printed as listed below. for (int i = 0; i < size /*hash block size*/; i++) printf("%.2x",…
1
vote
1 answer

Tracing Mhash Files (Hashing)

I am trying to trace how this open source program, mhash computes it's hashing I can run the program successfully by using using the following commands: gcc -o example example.c -lmhash (also, mhash is currently installed, and I am running Ubuntu…
humblebeast
  • 303
  • 3
  • 16
1
vote
1 answer

How to compile mcrypt for OS X Mavericks 10.9

I'm having a heck of a time trying to compile mcrypt for OS X Mavericks. I need mcrypt for a website I'm helping develop. I installed Mavericks and then command-line tools for XCode using: xcode-select --install That ran an installer. Then I…
sehummel
  • 5,476
  • 24
  • 90
  • 137
1
vote
1 answer

Alternative to mhash_keygen_s2k()

The mcrypt_encrypt manual page says that: It is recommended to use the mhash functions to create a key from a string. But the introduction of the mhash manual says that: Note: This extension is obsoleted by Hash. However, the closest thing I…
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
0
votes
2 answers

Changing a c code to work line by line

#include #include #include int main(void) { int i; MHASH td; unsigned char buffer; unsigned char *hash; td = mhash_init(MHASH_WHIRLPOOL); if (td == MHASH_FAILED)…
Sebastian Heyn
  • 387
  • 3
  • 15
0
votes
1 answer

Problems running Apache and PHP with the mcrypt and mhash extensions

Here's my problem: I'm trying to install PHP and Apache on a 64-bit windows environment. I started out with 64-bit Apache 2.4.10 and 64-bit PHP 5.5.20. Everything installed great and then I found out I needed to use the mcrypt and mhash extensions.…
Steve K
  • 387
  • 1
  • 8
  • 22
0
votes
1 answer

Req: More specifics on how to calculate CRC of a large file

Regrettably, What is the correct way of calculating a large CRC32 is not sufficient for me to understand how to implement calculation of a crc on a file of size 1kb <= x <= 128kb. The mhash library conceals the issue, and is thus suitable and…
Shellsunde
  • 76
  • 10
0
votes
1 answer

php-mhash installation

How to install php-mhash in fedora14 ? I tried below to install but it is not working properly . yum -y install php-mhash* It says No package php-mhash* available. Please help me. Resolved : I followed the below process ,Now our applications is…
srinivas
  • 61
  • 1
  • 3
  • 8