How to generate a UUID in embedded C [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I want to generate guids to name a set of different files. The main restriction I am having is the fact that I need to implement this in an embedded microcontroller with an RTOS.
The main UUID/GUID libraries i've found are linux/windows based, but don't work for my case. Is there a simple, lightweight implementation available I could use? or I would need to generate my own GUID generator?
Edit:
The MCU does have a random number generator and a real time clock.

I solved the issue using GUID. Initially I thought I could use this only on linux based systems but turns out it can also be used for the MCU and the implementation is quite light weight.
The procedure to generate the GUID comes from this website which also provides the sourcecode of the UUID.c library.
Solution provided by #Kamil Cuk .

Related

Is there a C hashing function with no dependencies? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm developing some experimental program that requires hashing strings.
I tried all the source code I could find on the internet but none of it seemed to work without any dependencies, can you please link the source to a cryptographic hashing function that has no dependencies, i.e. something that I can just copy/paste into my code and it would work?
PS I prefer a secure hashing function, but MD5 would be fine for now.
You may want to check Simple MD5 implementation with no dependences.
Also check these proposals: hash function for string.
It is worth to mention that there are other open source implementations like:
Basic implementations of standard cryptography algorithms, like AES and SHA-1 and sphlib an open source library which provides optimized and portable implementations of many hash functions.

Is there any library functions in C to check the Internet connection? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Can you give me a simplest method to check the Internet availability using a C program in Linux?
I have implemented a program to run the system command 'traceroute' in C. Before this I have to check whether the Internet connection is available or not. So can you suggest a method?
Short answer: no. Neither C nor C++ has direct knowledge of networking, or any built-in networking functions.
Depending on what 3rd-party libraries you are using, there may be something you can use, but that depends on the library, it isn't directly part of C.
I can imagine there are libraries out there that might try to ping some internal/external address, perform a name lookup, etc. But if you're on an isolated network, not having the ability to ping, lookup, or cross a firewall to get to a certain location may be perfectly valid, and doesn't indicate a networking problem.

Looking for Simple C Implementation of AES-128 and DES [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need C versions of AES-128 and DES to run on an embedded SPARC processor. I'm trying to measure the electrical power of these algorithms in software and hardware. Is there a website where I could find software implementations? Currently I can compile C code with my cross-compiler so any language implementations other than C would not be useful.
I have implemented DES in hardware before. How much work would people estimate (hours/lines of code) to implement a software version?
Does anybody know how to use the aes_generic.c and des_generic.c built into the Linux kernel in the crypto directory?
You may want to see if LibTomCrypt will meet your needs
Wikipedia has a list of AES implementations. Simple googling also found a DES implementation in C; you'll have to see if it fits your requirements.

Are there any open source C Library (not c++) for Windows Driver Development? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Are there any open source C Library (not c++) for Windows Driver Development ?
I am developing a network device driver that need some functionality such as RegEx, string manipulation, Object Oriented by C and XML and so on...
thanks.
Not aware of any real regular expression libraries. However, depending on what you need FsRtlIsNameInExpression may be of some interest. There's plenty of string manipulation functions in the Safe String Libraries, they just have names that are different to the libc equiavalents.
Please don't do this in a driver. It would be frowned upon in the Windows driver communities.
What keeps you from communicating with a UM module of your product to do such more error-prone operations? Keep the operations, especially risky ones, to a minimum within a driver. When your UM module crashes, it may take down a process, when your driver crashes it will inevitably take down the system.
No question: it's possible. But not everything that is possible should also be done ;)

Are there any mature Binary Decision Diagram tools available? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Are there any Binary Decision Diagram (BDD) libraries for C, or other languages that are tested and have good documentation?
Check the BDD library from CMU.
Also, for basic reference purposes, Pre-Fascicle 1b of The Art of Computer Programming is all about BDDs. Here's a gzipped postscript of it. Knuth has posted a number of the programs he wrote while preparing for it on his Programs to Read page.
Check out CUDD.
For some info on how to set it up in Windows environments try this..
Binary decision diagram Wikipedia entry, in External links section, as a quite complete list of packages.
BDDBDDB is a BDD-based system for resolving logical inferences a la Prolog. It's been used in program analysis, general game playing, and many other domains. It might not be exactly what you're looking for, but it's well-known and well-maintained.

Resources