libtomcrypt | fairly comprehensive , modular and portable cryptographic | Hashing library
kandi X-RAY | libtomcrypt Summary
kandi X-RAY | libtomcrypt Summary
Previously the git repository contained doc/crypt.pdf for detailed documentation. This was changed and the file is now only available from the tarball of the appropriate version or from the page .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libtomcrypt
libtomcrypt Key Features
libtomcrypt Examples and Code Snippets
Community Discussions
Trending Discussions on libtomcrypt
QUESTION
I was using libtomcrypt for a project, in particular hashing and signing with RSA some data. Because of memory requirements I wanted to switch to mbedtls. However I noticed an issue when trying to verify with mbedtls a signature generated by libtomcrypt. There is a padding (PKCS#1 PSS) decoding issue.
Because I didn't know which of these libraries was (maybe) having a bug I used openssl to verify.
I successfully verified a signature generated with mbedtls with openssl and I had a verification failure when verifying one generated form libtomcrypt which makes me think libtomcrypt has a bug.
However because It could be a configuration issue so I created a repo with minimal examples with the hope someone could detect an issue coming from me and not from the library itself.
The test repo is here
Thanks for any help received !
...ANSWER
Answered 2019-Apr-11 at 09:46There's one important part missing, you should not be signing the data, but a hash of the data.
Adding this fixes the issue:
QUESTION
I am a C# developer, and spoiled rotten when it comes to references and dependencies. I am working on a small project now in Visual C++ (Visuial Studio 2017
), where I want to use the libtomcrypt and libtommath libraries. I've created a small project and added the 2
projects to my solution:
I have also added my includes:
And I added the dependencies:
However, I still can't build:
...ANSWER
Answered 2018-Jul-26 at 22:51The error message indicates that the compiler can't find the file tomcrypt.h
while compiling one of your source files. From the message I would guess that you have a line like the following in your source file:
QUESTION
I'm working on stm32f469 doing some bare metal code to try to use the libtomcrypt / libtomfastmath libraries. The code I'm trying to debug has been checked by valgrind and is working on many platforms like macos, raspberrypi, ios, android.
To keep things simple, I am doing the following which is calling this function int register_hash(const struct ltc_hash_descriptor *hash)
with a const static variable by giving it's adress : register_hash(&sha256_desc)
. The problem is, once I am inside the function, the hash
pointer is NULL
and I cannot figure out why.
I was thinking It would be a stack overflow so I pre-filled the stack with the constant value 0xdeadbeef
and I checked if all these values were erased or not and the result is the stack is not overflowed.
When debugging, I can verify the value at the address returned by &sha256_desc
and the memory is not corrupted there either.
I am not doing dynamic allocations nor buffer filling that could be overflowing and corrupting the memory.
I'm compiling with arm-none-eabi-gcc
, version 7-2017-q4-major.
I am mainly looking for some possible sources of issue as I am running out of ideas.
...ANSWER
Answered 2018-Jul-04 at 16:27Thanks to @Ctx's comment I solved the issue by compiling all the files in one place instead of compiling a static library later linked to my program.
I don't know what was the problem and because I have new issues blocking me I won't try to investigate further.
QUESTION
I am working on encryption in CONTIKI OS and COOJA simulator which i tired to use the library libtomcrypt. I include the library into CONTIKI folder but when i tired to call the rsa_make_key function it given me this error. Thanks in advance and hope to heard from you guys soon.
...ANSWER
Answered 2017-Jan-18 at 08:18I suppose that either tomcrypt.h
or `tomcrypt_pk.h" file gets included several times and that therefore the same things get defined several times.
To try out if this is the reason, I'd add the following lines at the top and at the end of tomcrypt.h
, respectively.
At the top:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libtomcrypt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page