Skip to contentSkip to conversation

New keyctl command and tests

PATCH New Mat Martineau 1 participant 1 message Jun 13, 2017 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

v2 cover New keyctl command and tests

When I first posted the "TEST: Add KDF leading zero test" patch, David asked if a 'keyctl xpadd' command sounded like a good idea. I think it is a useful command - especially considering the awkward syntax used in the dh_compute and restrict tests to pass both key data and an extra command line parameter to pcreate_key:

pcreate_key "-e $escaped_hex_data" user desc $keyring

These patches apply to the 'next' branch of keyutils.git

Mat Martineau (6):
keyctl: Add xpadd command for hexadecimal data
TEST: Add keyctl xpadd tests
Doc: Add 'keyctl xpadd' information
TEST: Add KDF leading zero test
TEST: Refactor Diffie-Hellman tests
TEST: Refactor restriction tests

 keyctl.c                                    |  67 ++++
 man/keyctl.1                                |  19 +-
 tests/keyctl/dh_compute/bad-args/runtest.sh |  70 ++--
 tests/keyctl/dh_compute/valid/runtest.sh    | 200 ++++------
 tests/keyctl/restrict/valid/runtest.sh      | 558 ++++++++++------------------
 tests/keyctl/xpadd/bad-args/runtest.sh      |  86 +++++
 tests/keyctl/xpadd/noargs/runtest.sh        |  31 ++
 tests/keyctl/xpadd/useradd/runtest.sh       |  68 ++++
 tests/toolbox.inc.sh                        |  29 ++
 9 files changed, 589 insertions(+), 539 deletions(-)
 create mode 100644 tests/keyctl/xpadd/bad-args/runtest.sh
 create mode 100644 tests/keyctl/xpadd/noargs/runtest.sh
 create mode 100644 tests/keyctl/xpadd/useradd/runtest.sh
Signature · 1 line
2.13.1