-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specifying CFLAGS at configure-time nullifies --enable-debug option #3
Comments
This issue was updated by svn:r874 / d7bdc9a. Created issue-3 branch. Original comment by
|
Original comment by |
This issue was closed by svn:r876 / 7fc7e4e. Original comment by
|
Original comment by
|
Add the HKDF test vectors from RFC 5869: HMAC-based Extract-and-Expand Key Derivation Function (HKDF), Appendix A. - Test Case 1: SHA-256 basic test - Test Case 2: SHA-256 with longer inputs/outputs - Test Case 3: SHA-256 with zero-length salt/info - Test Case 4: SHA-1 basic test - Test Case 5: SHA-1 with longer inputs/outputs - Test Case 6: SHA-1 with zero-length salt/info - Test Case 7: SHA-1 with no salt and zero-length info Test case #3 and #6 fail due to an assert() error: "mac_init: Assertion `keylen > 0' failed". Consequently, these two cases are being skipped and will be fixed in a later commit. Note that with libtap, todo() cannot be used here since it is for a test expected to fail with an appropriate error code. Instead, skip() must be used since this failure is caused by an assert() which terminates execution via abort(). Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
The HKDF test vectors for case #3 and #6 in RFC 5869 specify a salt length of 0 octets. The HKDF salt is used as the HMAC key for computing the PRK in the "extraction" phase. In this first phase, mac_init() starts by validating its parameters and assert()ing 'keylen' is > 0. The salt length of 0 octets causes this assertion to needlessly fail. Update the 'keylen' assertion to ensure its value is >= 0. Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Add the HKDF test vectors from RFC 5869: HMAC-based Extract-and-Expand Key Derivation Function (HKDF), Appendix A. - Test Case 1: SHA-256 basic test - Test Case 2: SHA-256 with longer inputs/outputs - Test Case 3: SHA-256 with zero-length salt/info - Test Case 4: SHA-1 basic test - Test Case 5: SHA-1 with longer inputs/outputs - Test Case 6: SHA-1 with zero-length salt/info - Test Case 7: SHA-1 with no salt and zero-length info Test case #3 and #6 fail due to an assert() error: "mac_init: Assertion `keylen > 0' failed". Consequently, these two cases are being skipped and will be fixed in a later commit. Note that with libtap, todo() cannot be used here since it is for a test expected to fail with an appropriate error code. Instead, skip() must be used since this failure is caused by an assert() which terminates execution via abort(). Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
The HKDF test vectors for case #3 and #6 in RFC 5869 specify a salt length of 0 octets. The HKDF salt is used as the HMAC key for computing the PRK in the "extraction" phase. In this first phase, mac_init() starts by validating its parameters and assert()ing 'keylen' is > 0. The salt length of 0 octets causes this assertion to needlessly fail. Update the 'keylen' assertion to ensure its value is >= 0. Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Add the HKDF test vectors from RFC 5869: HMAC-based Extract-and-Expand Key Derivation Function (HKDF), Appendix A. - Test Case 1: SHA-256 basic test - Test Case 2: SHA-256 with longer inputs/outputs - Test Case 3: SHA-256 with zero-length salt/info - Test Case 4: SHA-1 basic test - Test Case 5: SHA-1 with longer inputs/outputs - Test Case 6: SHA-1 with zero-length salt/info - Test Case 7: SHA-1 with no salt and zero-length info Test case #3 and #6 fail due to an assert() error: "mac_init: Assertion `keylen > 0' failed". Consequently, these two cases are being skipped and will be fixed in a later commit. Note that with libtap, todo() cannot be used here since it is for a test expected to fail with an appropriate error code. Instead, skip() must be used since this failure is caused by an assert() which terminates execution via abort(). Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
The HKDF test vectors for case #3 and #6 in RFC 5869 specify a salt length of 0 octets. The HKDF salt is used as the HMAC key for computing the PRK in the "extraction" phase. In this first phase, mac_init() starts by validating its parameters and assert()ing 'keylen' is > 0. The salt length of 0 octets causes this assertion to needlessly fail. Update the 'keylen' assertion to ensure its value is >= 0. Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
What steps will reproduce the problem?
What is the expected output? What do you see instead?
CFLAGS
arising from--enable-debug
should be appended to those explicitly set at configure-time. In addition,NDEBUG
should not be defined.Instead,
CFLAGS
from--enable-debug
are omitted andNDEBUG
is defined.What version of the software are you using? On what operating system?
munge-0.5.9
Debian squeeze/sid 2.6.32-5-amd64
Original issue reported on code.google.com by
chris.m.dunlap
on 6 Jan 2011 at 11:44The text was updated successfully, but these errors were encountered: