summaryrefslogtreecommitdiffstats
path: root/examples/pk.c
Commit message (Collapse)AuthorAgeFilesLines
* Examples directory renamed -> testsNikos Mavrogiannopoulos2010-09-071-1725/+0
|
* run scripts/Lindent.Nikos Mavrogiannopoulos2010-09-061-241/+275
|
* Fix DH testMiloslav Trmač2010-09-061-1/+1
|
* Added flag: NCR_KEY_FLAG_ALLOW_TRANSPARENT_HASHNikos Mavrogiannopoulos2010-09-051-2/+2
|
* Run DH key exchange for 100 times for testing.Nikos Mavrogiannopoulos2010-09-051-200/+226
|
* Merge branch 'pk-transparent-hash'Miloslav Trmač2010-08-271-0/+245
|\ | | | | | | | | Conflicts: ncr-int.h
| * Add transparent hash signature examplesMiloslav Trmač2010-08-271-0/+245
| |
* | Merge remote branch 'origin/newapi'Miloslav Trmač2010-08-271-13/+7
|\ \ | |/ |/| | | | | | | | | | | | | Conflicts: examples/ncr.c examples/pk.c ncr-key-wrap.c ncr-key.c ncr.h
| * Added ENCRYPT, UNWRAPPING and VERIFY key flagsNikos Mavrogiannopoulos2010-08-251-1/+1
| |
| * The RFC5649 wrapping algorithm now includes a DER encoding of the data to ↵Nikos Mavrogiannopoulos2010-08-251-1/+1
| | | | | | | | distinguish between keys of different types. This prevents keys being unwrapped in a wrong type.
* | Fix wrapping test conversionsMiloslav Trmač2010-08-251-3/+6
| |
* | Merge branch 'bugfixes' into nlattrMiloslav Trmač2010-08-251-0/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cryptodev_main.c examples/ncr.c examples/pk.c ncr-int.h ncr-key-wrap.c ncr-key.c ncr.c ncr.h
| * | Make it possible to import private keysMiloslav Trmač2010-08-241-0/+1
| |/
* | Replace ncr_wrap_algorithm_t by NLA_NUL_STRINGMiloslav Trmač2010-08-251-5/+5
| |
* | Replace ncr_derive_t by NLA_NUL_STRINGMiloslav Trmač2010-08-241-3/+3
| |
* | Replace ncr_algorithm_t by NLA_NUL_STRINGMiloslav Trmač2010-08-241-35/+42
| |
* | Convert *_SESSION_*Miloslav Trmač2010-08-241-100/+234
| |
* | Convert *_KEY_UNWRAPMiloslav Trmač2010-08-241-8/+22
| |
* | Convert *_KEY_WRAPMiloslav Trmač2010-08-241-27/+38
| |
* | Convert *_KEY_IMPORTMiloslav Trmač2010-08-241-13/+31
| |
* | Convert *_KEY_EXPORTMiloslav Trmač2010-08-241-59/+54
| |
* | Convert *_KEY_DERIVEMiloslav Trmač2010-08-241-17/+43
| |
* | Convert *_KEY_GENERATE_PAIRMiloslav Trmač2010-08-241-41/+125
| |
* | Convert *_KEY_INITMiloslav Trmač2010-08-241-10/+20
|/
* more textNikos Mavrogiannopoulos2010-08-211-1/+4
|
* Improvements in key wrapping. Allowed symmetric keys to wrap assymetric ones.Nikos Mavrogiannopoulos2010-08-211-2/+29
|
* Added KEY_WRAPPING flag that allows a key to be used for wrapping other keys.Nikos Mavrogiannopoulos2010-08-191-0/+116
| | | | | Only superuser can enable this flag. Prevent short keys to wrap longer ones. Added initial stuff for supporting wrapping of private and public keys.
* Use types from <linux/types.h> for public headers.Miloslav Trmač2010-08-081-0/+1
| | | | | | | | | | | | | When included in the kernel tree, <inttypes.h> is not available, so <linux/types.h> has to be used. <linux/types.h> does not provide the uintNN_t and size_t types when installed to /usr/include/linux (package kernel-headers on Fedora). Therefore, use the types from <linux/types.h> that are available in userspace. Also fix user-space users of the headers not to assume that they provide the <stdint.h> types.
* Implemented Diffie Hellman Key exchange.Nikos Mavrogiannopoulos2010-07-271-1/+151
|
* Added Diffie Hellman key generation.Nikos Mavrogiannopoulos2010-07-271-0/+79
|
* removed the data type.Nikos Mavrogiannopoulos2010-07-261-101/+47
|
* No need for ncr-direct. All session operations are being done on keys or on ↵Nikos Mavrogiannopoulos2010-07-251-135/+50
| | | | userspace data.
* Added a support for reading session data directly from userspace.Nikos Mavrogiannopoulos2010-07-241-12/+18
|
* Simplified the session_op structure and combined the OP_SIGN with the OP_DIGESTNikos Mavrogiannopoulos2010-07-241-12/+12
| | | | for digest algorithms.
* Splitted key from key_params structure. Also separated dsa from rsa ↵Nikos Mavrogiannopoulos2010-07-231-18/+18
| | | | structure in params.
* Append_flag was removed.Nikos Mavrogiannopoulos2010-07-231-4/+0
|
* Revert "initial support for userspace data."Nikos Mavrogiannopoulos2010-07-231-7/+4
| | | | This reverts commit e7828004e40592c8cffc9235f72440c802905e16.
* Revert "Modified NCR-USER API to "simplify" and allow setting of size of ↵Nikos Mavrogiannopoulos2010-07-231-0/+7
| | | | | | data structure without special system call." This reverts commit 5689c9734223fb349bba526d620823a803c3b67e.
* Modified NCR-USER API to "simplify" and allow setting of size of data ↵Nikos Mavrogiannopoulos2010-07-211-7/+0
| | | | structure without special system call.
* initial support for userspace data.Nikos Mavrogiannopoulos2010-07-211-4/+7
|
* Public Keys are being exported to SubjectPublicKeyInfo format, instead of ↵Nikos Mavrogiannopoulos2010-07-191-15/+100
| | | | custom formats. For RSA keys the PKCS #1 format can be used as well.
* Fixed RSA encryption and decryption.Nikos Mavrogiannopoulos2010-07-191-65/+212
|
* Corrected RSA signature generation/verification.Nikos Mavrogiannopoulos2010-07-141-3/+297
| | | | Added Test for RSA and DSA signature generation and verification.
* Several fixes. RSA key generation tested and works.Nikos Mavrogiannopoulos2010-07-071-10/+18
|
* Added test program for key generation.Nikos Mavrogiannopoulos2010-07-071-0/+345