summaryrefslogtreecommitdiffstats
path: root/ncr-int.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename CONFIG_AS*YM*METRIC, push into headersMiloslav Trmač2010-09-061-0/+24
|
* Algorithm to OID discovery moved to a single place.Nikos Mavrogiannopoulos2010-09-061-1/+1
|
* run scripts/Lindent.Nikos Mavrogiannopoulos2010-09-061-24/+27
|
* Use the ncr_algorithm_t as an identifier for storage data. This will allowNikos Mavrogiannopoulos2010-09-051-6/+6
| | | | | keys tied to RSA-transparent, to be used for RSA operations as well (once keys are made tied to an algorithm).
* Added flag: NCR_KEY_FLAG_ALLOW_TRANSPARENT_HASHNikos Mavrogiannopoulos2010-09-051-1/+1
|
* Rationalized the key wrapping format. It currently is:Nikos Mavrogiannopoulos2010-09-051-3/+20
| | | | | | | | | | | PackedData ::= SEQUENCE { version INTEGER { v1(0) } algorithm OBJECT IDENTIFIER, type INTEGER { secret_key(0), public(1), private(2) }, data OCTET STRING } Unfortunately there are not assigned OIDs for all algorithms we support.
* Drop a redundant prototype.Miloslav Trmač2010-09-021-2/+0
|
* export ncr_key_clear(). And disallow key derivation from wrapping keys.Nikos Mavrogiannopoulos2010-08-311-0/+2
|
* Merge branch 'pk-transparent-hash'Miloslav Trmač2010-08-271-1/+3
|\ | | | | | | | | Conflicts: ncr-int.h
| * Implement PK signatures with transparent hashesMiloslav Trmač2010-08-271-1/+8
| |
* | Move session_item_st definition to ncr-sessions.cMiloslav Trmač2010-08-251-26/+0
| | | | | | | | It is not used anywhere else.
* | Make some session functions staticMiloslav Trmač2010-08-251-3/+0
| |
* | Simplify key flag updatesMiloslav Trmač2010-08-251-1/+1
|/
* Merge branch 'bugfixes' into nlattrMiloslav Trmač2010-08-251-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: cryptodev_main.c examples/ncr.c examples/pk.c ncr-int.h ncr-key-wrap.c ncr-key.c ncr.c ncr.h
| * Reject prohibited key flags immediatelyMiloslav Trmač2010-08-241-1/+1
| | | | | | | | Silently ignoring user's requests is unexpected.
| * Provide file_operations::unlocked_ioctl.Miloslav Trmač2010-08-241-1/+1
| | | | | | | | | | | | file_operations::ioctl is no longer supported in recent kernels. compat_ioctl is not running under the BKL, so the code has to do its own locking anyway (although not everything currently does).
| * Drop unnecessary "file *" argument to ncr_ioctl()Miloslav Trmač2010-08-241-2/+1
| |
* | Replace ncr_algorithm_t by NLA_NUL_STRINGMiloslav Trmač2010-08-241-2/+22
| |
* | Convert *_SESSION_*Miloslav Trmač2010-08-241-5/+37
| |
* | Convert *_KEY_STORAGE_UNWRAPMiloslav Trmač2010-08-241-1/+3
| |
* | Convert *_KEY_STORAGE_WRAPMiloslav Trmač2010-08-241-1/+3
| |
* | Convert *_KEY_UNWRAPMiloslav Trmač2010-08-241-1/+2
| |
* | Convert *_KEY_WRAPMiloslav Trmač2010-08-241-1/+2
| |
* | Convert *_KEY_DEINITMiloslav Trmač2010-08-241-1/+1
| |
* | Convert *_KEY_IMPORTMiloslav Trmač2010-08-241-1/+2
| |
* | Convert *_KEY_EXPORTMiloslav Trmač2010-08-241-1/+2
| |
* | Convert *_KEY_GET_INFOMiloslav Trmač2010-08-241-1/+3
| |
* | Convert *_KEY_DERIVEMiloslav Trmač2010-08-241-1/+2
| |
* | Convert *_KEY_GENERATE_PAIRMiloslav Trmač2010-08-241-1/+3
| |
* | Convert *_KEY_GENERATEMiloslav Trmač2010-08-241-1/+2
| |
* | Convert *_KEY_INITMiloslav Trmač2010-08-241-1/+1
| |
* | Simplify algorithm lookup by nlaMiloslav Trmač2010-08-241-0/+3
| |
* | Add compat_ioctl infrastructureMiloslav Trmač2010-08-241-0/+2
| |
* | Drop unnecessary "file *" argument to ncr_ioctl()Miloslav Trmač2010-08-241-2/+1
|/
* Improvements in key wrapping. Allowed symmetric keys to wrap assymetric ones.Nikos Mavrogiannopoulos2010-08-211-0/+1
|
* export ncr_key_clear(). And disallow key derivation from wrapping keys.Nikos Mavrogiannopoulos2010-08-211-0/+2
|
* Added KEY_WRAPPING flag that allows a key to be used for wrapping other keys.Nikos Mavrogiannopoulos2010-08-191-0/+1
| | | | | Only superuser can enable this flag. Prevent short keys to wrap longer ones. Added initial stuff for supporting wrapping of private and public keys.
* Merge branch 'bugfixes'Miloslav Trmač2010-08-071-1/+1
|\ | | | | | | | | Conflicts: ncr-int.h
| * Use a struct mutex for session_item_st.mem_mutexMiloslav Trmač2010-08-071-1/+2
| | | | | | | | Suggested by scripts/checkpatch.pl
* | Merge branch 'master' into replace-listsMiloslav Trmač2010-07-301-1/+1
|\| | | | | | | | | | | | | Conflicts: ncr-int.h ncr-key.c ncr.c
| * NCR_CIPHER_MAX_KEY_LEN no longer exist in userspace API.Nikos Mavrogiannopoulos2010-07-281-0/+1
| |
| * Drop a duplicate prototypeMiloslav Trmač2010-07-281-1/+0
| |
| * Drop left-over code for data objectsMiloslav Trmač2010-07-281-1/+0
| |
* | Finally remove the unused list_sem_st.Miloslav Trmač2010-07-281-5/+0
| |
* | Merge branch 'bugfixes' into replace-listsMiloslav Trmač2010-07-281-1/+0
|\ \ | | | | | | | | | | | | | | | Conflicts: ncr-int.h ncr.c
| * | Drop left-over code for data objectsMiloslav Trmač2010-07-271-1/+0
| |/
* | Store all types of limits together.Miloslav Trmač2010-07-281-0/+1
| | | | | | | | | | | | A process/user that uses one type of crypto primitive is likely to use other types as well. This saves memory and simplifies lookup in the common case.
* | Use <linux/idr.h> for session ID allocation and lookupMiloslav Trmač2010-07-281-3/+2
| |
* | Use <linux/idr.h> for key ID allocation and lookupMiloslav Trmač2010-07-281-2/+4
| |
* | Use ncr_lists instead of list_sem_st in intefacesMiloslav Trmač2010-07-271-23/+23
|/ | | | | | | | | | | | | | Should result in no functionality change. This makes the code marginally more effective (reducing the number of "&lst->key" and "&lst->sessions" operations in the code, and moving them toward dereferences where they can be combined with member accesses), and more type-safe (prevents mixing the key and session list in most places because they the difference is only in the low-level accessor functions). Most importantly, this allows replacing list_sem_st without having to touch most of the functions again.