Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by mahgust

  1. EVP Functions was used according this OpenSSL version https://www.openssl.org/docs/man1.0.2/man3/EVP_DigestInit.html OpenSSL_add_all_digests(); md = EVP_get_digestbyname(argv[1]); mdctx = EVP_MD_CTX_create(); EVP_DigestInit_ex(mdctx, md, NULL); EVP_DigestUpdate(mdctx, mess1, strlen(mess1)); EVP_DigestFinal_ex(mdctx, md_value, &md_len); EVP_MD_CTX_destroy(mdctx); EVP_cleanup();
  2. Thanks a lot, guys! EVP is working now! md4 md5 sha1 sha224 sha256 sha384 sha512 can be calculated. Quite convinient and fast utility for file integrity check can be created in this way. Should we point NI to this (hash calc through EVP interface) via Idea Exchange ? MD5_my7.vi
  3. //new 3.0 openssl lib has new-free definitions mdctx = EVP_MD_CTX_new(); EVP_MD_CTX_free(mdctx); //old 1.0 openssl lib has create-destroy definitions mdctx = EVP_MD_CTX_create(); EVP_MD_CTX_destroy(mdctx); Lib in LV2014 operates in create/destroy definitions. I've tried to implement create-destroy without structure definition only with pointer, but it leads to LV crash. Could you suggest what is wrong with my code ? Thx! Untitled 1.vi
  4. New version with sequence Init -> Update -> Final. P.S. I tried EVP interface but is in stuck with EVP_MD_CTX structure definition in LV. https://github.com/theos/headers/blob/master/openssl/evp.h MD5_my5.vi
  5. Yes, it seems like for a large files it should be done in this way http://websites.umich.edu/~x509/ssleay/md5.html
  6. Direct MD5 call was used from NIlibeay32.dll instead of EVP_Digest interface
  7. ShaunR, thanks for the idea sharing! Hoovah, code is attached (was deleted because of memory error with large >1GB files, use new version (MD5_my5.vi) posted in message below).
  8. Hoovah, thanks a lot! I tested FastSum utility for MD5 from http://fastsum.com/download.php and it's very fast, maybe even faster than http://www.etree.org/md5com.html It's also free for Command Line Edition. I'll try to rebuild your code around it.
  9. Hoovah, This is quite old topic but it's still very actual. Could you upload fast MD5 calc for large files to this topic again ? All links above does not working anymore. Thanks!
  10. Hi! zeller2.vi and zeller.vi has different results. zeller.vi has correct one. Check today date 11may18 it is friday. Thanks!
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.