bug? #412

Closed
opened 2018-06-21 20:05:31 -05:00 by phy0292 · 1 comment
phy0292 commented 2018-06-21 20:05:31 -05:00 (Migrated from github.com)

Prerequisites

Description

[Description of the issue]
If you put
Register_all_ciphers();
Moved to
Register_all_prngs();
Behind, abnormalities occur.

Steps to Reproduce

In demo / ltcrypt.c,
    Register_all_ciphers();
    Register_all_hashes();
    Register_all_prngs();
Change into
    Register_all_hashes();
    Register_all_prngs();
    Register_all_ciphers();
An exception occurred while running the program after compilation.
Compile with vs2017 or bcc2007 in windows 10 operating system

Version

1.18.1

<!-- Do you want to ask a question? Are you looking for support? The Mailing list is the best place for getting support: https://groups.google.com/forum/#!forum/libtom This is a very generic template, remove items that do not apply. For completed items, change [ ] to [x]. --> ### Prerequisites * [ ] Checked the developer manual * [ ] Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=repo%3Alibtom%2Flibtomcrypt * [ ] Checked that your issue isn't related to TomsFastMath's limitation that PK operations can by default only be done with max. 2048bit keys ### Description [Description of the issue] If you put Register_all_ciphers(); Moved to Register_all_prngs(); Behind, abnormalities occur. ### Steps to Reproduce <!-- Please either describe your issue or even better, provide a functional code example reproducing your issue. --> In demo / ltcrypt.c,     Register_all_ciphers();     Register_all_hashes();     Register_all_prngs(); Change into     Register_all_hashes();     Register_all_prngs();     Register_all_ciphers(); An exception occurred while running the program after compilation. Compile with vs2017 or bcc2007 in windows 10 operating system ### Version 1.18.1
sjaeckel commented 2018-06-22 03:25:18 -05:00 (Migrated from github.com)

Yes, it correctly fails.

On my platform with:

LTC_ARGCHK 'chc_register(find_cipher_any("aes", 8, 16)) == CRYPT_OK' failure on line 98 of file src/misc/crypt/crypt_register_all_hashes.c

That's because there are inter-dependencies of ciphers, hashes and prng's and the order has to stay the same for the full feature-set!

Yes, it correctly fails. On my platform with: ``` LTC_ARGCHK 'chc_register(find_cipher_any("aes", 8, 16)) == CRYPT_OK' failure on line 98 of file src/misc/crypt/crypt_register_all_hashes.c ``` That's because there are inter-dependencies of ciphers, hashes and prng's and the order has to stay the same for the full feature-set!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libtom/libtomcrypt#412
No description provided.