Help with Crypto++

64 views
Skip to first unread message

Inês

unread,
Nov 27, 2020, 7:33:16 PM11/27/20
to Crypto++ Users
Hi everyone,

I am new to Crypto++ and I'm having some problems, I'd like to know if you could give me some help. The matter is the following, I have already compiled/installed crypto++ which I've cloned from github. 

Now, while running this command "cryptest tv chacha" the following errors appear:

CryptoPP::Exception caught: ObjectFactoryRegistry: could not find factory for algorithm ChaCha
Skipping to next test.

CryptoPP::Exception caught: Unexpected error during validation test

This also happen with "cryptest tv all" and "cryptest v".

Also, if I run this command "./cryptest.exe b 60 1.5" at a certain point almost when it is finishing the retrieving of the html page this error appears:
"<TBODY style="background: white;">
Exception caught: AES/GCM: message length exceeds maximum"

As I am new to this library I am a little confused and don't know what to expect. If any of you kind souls could give me some help I would be very grateful as I have to use this for a project.

Best regards,
Ines.

Jeffrey Walton

unread,
Nov 28, 2020, 7:37:59 AM11/28/20
to Crypto++ Users List
I've seen that before on Linux. It sounds like a newer version of
cryptest.exe is being used with an older version of the library. It is
the Linux version of DLL Hell.

If possible, use either one or the other. Otherwise, use something to
set your library path, like the linker's $ORIGIN option or
LD_LIBRARY_PATH at runtime.

Jeff

Inês

unread,
Nov 28, 2020, 5:06:14 PM11/28/20
to Crypto++ Users
Isn't cryptest inside the library? I have the most recent library version

Inês

unread,
Nov 28, 2020, 8:03:31 PM11/28/20
to Crypto++ Users
Can you give me some help? I am so confused.

On Saturday, November 28, 2020 at 12:37:59 PM UTC Jeffrey Walton wrote:

Uri Blumenthal

unread,
Nov 28, 2020, 9:26:48 PM11/28/20
to cryptop...@googlegroups.com
Run cryptest.exe like this:

LD_LIBRARY_PATH=.:${LD_LIBRARY_PATH} ./cryptest.exe TV all



On Nov 28, 2020, at 20:03, Inês <inesl...@gmail.com> wrote:

Can you give me some help? I am so confused.
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/cb3510a5-8703-497e-a028-f4cdb4f9ce5bn%40googlegroups.com.

Inês

unread,
Nov 29, 2020, 7:06:33 AM11/29/20
to Crypto++ Users
nice that worked! Is there any way to set the path so that I don-t have to run all that command everytime?

Inês

unread,
Nov 29, 2020, 5:55:27 PM11/29/20
to Crypto++ Users
I've tried this one:  LD_LIBRARY_PATH=.:${LD_LIBRARY_PATH} ./cryptest.exe b 60 2.1

and still got the error though... "Exception caught: AES/GCM: message length exceeds maximum"

Inês

unread,
Dec 2, 2020, 9:35:36 AM12/2/20
to Crypto++ Users
I solved by reducing the time of each cyle.

One more question, is it possible to had algorithms to this library? I need PRESENT and RSA algorithms benchmarks

On Saturday, November 28, 2020 at 12:37:59 PM UTC Jeffrey Walton wrote:

Jeffrey Walton

unread,
Dec 2, 2020, 9:17:54 PM12/2/20
to Crypto++ Users List
On Wed, Dec 2, 2020 at 9:35 AM Inês <inesl...@gmail.com> wrote:
>
> I solved by reducing the time of each cycle.

That was probably a good choice. 60 seconds was a bit much. I've found
3 seconds is enough to gather a good statistic.

Also see https://www.cryptopp.com/wiki/Benchmarks.

> One more question, is it possible to had algorithms to this library? I need PRESENT and RSA algorithms benchmarks

RSA is already present.

We probably won't add PRESENT. It's a 64-bit block cipher optimized
for hardware. There's not much demand for it, either.

You can find a C implementation for PRESENT at
http://www.lightweightcrypto.org/implementations.php. Also see
https://duckduckgo.com/?q=PRESENT+cipher+site:github.com.

Jeff

Inês

unread,
Dec 3, 2020, 10:58:12 AM12/3/20
to Crypto++ Users
Why does RSA have different metrics (Milliseconds/Op and Megabytes/Op and how it differs from the  other as AES?

Inês

unread,
Dec 4, 2020, 7:02:08 AM12/4/20
to Crypto++ Users
@Jeffrey Can you help me with something? Is it possible to see the memory usage of the executed algorithms?

Inês

unread,
Dec 6, 2020, 7:07:16 AM12/6/20
to Crypto++ Users
And monitor the data lenght. I am trying to build a graph like this
Reply all
Reply to author
Forward
0 new messages