You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/01/06 21:55:56 UTC
[GitHub] [incubator-nuttx-apps] a-lunev opened a new pull request #963: crypto/libtomcrypt: added CONFIG_LIBTOMCRYPT_HASHSUM option to build hashsum app
a-lunev opened a new pull request #963:
URL: https://github.com/apache/incubator-nuttx-apps/pull/963
## Summary
Added hashsum app build option based on libtomcrypt.
## Impact
## Testing
```
$ ./tools/configure.sh -l sim:tcpblaster
$ make menuconfig (enable CONFIG_SCHED_ATEXIT and CONFIG_LIBTOMCRYPT_HASHSUM)
$ make
$ ./nuttx
NuttShell (NSH) NuttX-10.2.0
nsh> help
help usage: help [-v] [<cmd>]
. cd exec ifconfig mkdir printf set truncate
[ cp exit ifdown mkfifo ps sleep uname
? cmp false ifup mkrd put source umount
arp dirname free kill mount pwd test unset
basename dd get losetup mv readlink telnetd usleep
break df help ln nslookup rm time wget
cat echo hexdump ls poweroff rmdir true xd
Builtin Apps:
ftpc tcpecho telnet tcpclient hashsum
ping6 ntpcstart ntpcstop ping nsh
ntpcstatus sh
nsh> hashsum
usage: hashsum -a algorithm [-c] [file...]
-c Check the hash(es) of the file(s) written in [file].
(-a not required)
Algorithms:
tiger md2 md4 md5 sha1
sha224 sha256 sha384 sha512 sha512-224
sha512-256 sha3-224 sha3-256 sha3-384 sha3-512
rmd128 rmd160 rmd256 rmd320 whirlpool
blake2s-128 blake2s-160 blake2s-224 blake2s-256 blake2b-160
blake2b-256 blake2b-384 blake2b-512 chc_hash
nsh> echo 1234 > /tmp/test.bin
nsh> hashsum -a md5 /tmp/test.bin
e7df7cd2ca07f4f1ab415d457a6e1c13 */tmp/test.bin
nsh> hashsum -a sha1 /tmp/test.bin
1be168ff837f043bde17c0314341c84271047b31 */tmp/test.bin
nsh> poweroff
```
Compare with Linux:
```
$ echo 1234 | md5sum
e7df7cd2ca07f4f1ab415d457a6e1c13 -
$ echo 1234 | sha1sum
1be168ff837f043bde17c0314341c84271047b31 -
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx-apps] xiaoxiang781216 merged pull request #963: crypto/libtomcrypt: added CONFIG_LIBTOMCRYPT_HASHSUM option to build hashsum app
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #963:
URL: https://github.com/apache/incubator-nuttx-apps/pull/963
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org