mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-09 17:40:32 +00:00
aae40f506a
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. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
13 lines
217 B
Bash
13 lines
217 B
Bash
#!/bin/sh
|
|
|
|
OUTPUT=$($(dirname $0)/mhash)
|
|
MHASH_MD5="0x750c783e6ab0b503eaa86e310a5db738"
|
|
|
|
if [ x"$OUTPUT" = x"$MHASH_MD5" ]; then
|
|
echo "PASS: mhash ptest"
|
|
exit 0
|
|
else
|
|
echo "FAIL: mhash ptest"
|
|
exit 1
|
|
fi
|