mahgust
-
Posts
14 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by mahgust
-
-
Hi!
I'm able to check on M1 Monterey, could you share the app ?
It's interesting how it works since you are first one who start working with LV on so fresh Mac OS version. -
Speaking about plan "B", I hope that NI will change their decision and will provide perpetual licenses again.
Subscription is a way for big industrial companies, but for individuals, small companies and start-ups it isn't an option.
Labview was invented as tool for engineers which helps do their job, not just another tool for marketing stuff, it would be nice keep it in mind.- 2
-
In carrot and stick method NI chose stick.
Active IDE improvement and grow, new features lead users to go to newer versions. (Just an example - Win11/Ubuntu/Mac M1 support in time).
Switching to subscriptions is an option for SW-only products, for HW products going to subscription can be wrong choice imho.
This is just "engineering" point of view, marketing staff at NI have different one)
-
EVP Functions was used according this OpenSSL version
https://www.openssl.org/docs/man1.0.2/man3/EVP_DigestInit.htmlOpenSSL_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(); -
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 ?
- 1
-
2 hours ago, Rolf Kalbermatter said:
Since you don't access the internal elements in the struct at all from LabVIEW you just can treat it all as a pointer sized integer.
In fact since OpenSSL 1.0.0 all those structs are considered opaque in terms of external users of the API and should never be referenced in any way other than through published OpenSSL functions. In terms of an external API user these contexts are meant to be simply a handle (a pointer to private data whose contents is unknown).
EVP_MD_CTX_create() creates the context -> just configure it to return a pointer sized integer.
Then pass this to all other EVP functions again as pointer sized integer.
And of course don't forget to call the EVP_MD_CTX_free() function at the end to avoid memory leaks.
//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!
-
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- 2
-
10 minutes ago, hooovahh said:
Unfortunately I get "Not Enough Memory to complete this operation" error when I try it on my 1GB+ file. I suspect the other functions in that call library node are needed like Init, Update, and Final.
Yes, it seems like for a large files it should be done in this way
-
3 hours ago, ShaunR said:
Yuck. Cmd line Try using the EVP_Digest interface of the NIlibeay32.dll You can even have progress events if you want to be fancy
I don't know why NI didn't use it
Direct MD5 call was used from NIlibeay32.dll instead of EVP_Digest interface
-
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).- 1
-
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.
-
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! -
Hi!
zeller2.vi and zeller.vi has different results.
zeller.vi has correct one.
Check today date 11may18 it is friday.
Thanks!
Failure to run a LabVIEW 2021 standalone app on macOS Monterey
in Apple Macintosh
Posted
Sorry, no luck, app doesn't work.