summaryrefslogtreecommitdiffstats
path: root/examples/ncr_lib.c
Commit message (Collapse)AuthorAgeFilesLines
* Port key wrapping tests to *_lib.cMiloslav Trmač2010-08-241-2/+52
|
* Don't assume <ncr.h> includes <stdint.h>Miloslav Trmač2010-08-241-0/+1
|
* Drop a few unnecessary #includes from examplesMiloslav Trmač2010-08-241-3/+0
|
* Provide a nicer example on including <ncrypto.h>Miloslav Trmač2010-08-241-2/+2
|
* Implement missing algorithm-specific keygen paramsMiloslav Trmač2010-08-241-2/+2
| | | | | | Rename ncr_key_generate_params_set_bits to ncr_key_generate_params_set_secret_bits in the process, an incompatible change.
* Support output data in NCRIO_SESSION_UPDATEMiloslav Trmač2010-08-241-2/+2
|
* Use NCR_KEY_INVALID for clarityMiloslav Trmač2010-08-241-1/+1
|
* Remove somewhat confusing castsMiloslav Trmač2010-08-241-4/+4
| | | | | | | | | | | | "luckily" DIAGNOSTIC_DUMP does not quote its arguments, so DIAGNOSTIC_DUMP((int)array, size) expanded into ... fprintf(stderr, "%.2x:", (int)(int)array[out_index]); ... Still, it would break with more meticulous parenthesising, and the macro invocations appear to be casting an array to int.
* Don't set the master key in an example program.Miloslav Trmač2010-08-241-2/+0
| | | | | That is an operation reserved for root, and should be done during system initialization.
* Fix and reenable unwrapping testMiloslav Trmač2010-08-241-2/+3
|
* Use the correct wrapping keyMiloslav Trmač2010-08-241-2/+2
| | | | ... as specified in the RFC3394 test vector in section 4.1.
* Remove an unused variableMiloslav Trmač2010-08-241-2/+0
|
* Add Jan's port of ncr.c to libcryptodev.Jan Chadima2010-08-241-0/+476