Comment #2 on issue 116 by
jtu...@gmail.com: make "usekey" available and
Examples of usage for "usekey" that will produce all wire formats, if
implemented for C++/java along with issue 115, then test data production
could be produced and changed from a single borne shell script.
$KEYPROG usekey --location="${TESTDATA}/aes"
--destination="${TESTDATA}/aes/1.out" --format=crypt "This is some test
data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.out" --format=sign "This is some test
data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.timeout" --format=sign-timeout "This is
some test data" 2012-12-21T11:11:00Z
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.unversioned"
--format=sign-unversioned "This is some test data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.attached" --format=sign-attached "This is
some test data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.secret.attached"
--format=sign-attached "This is some test data" "secret"
$KEYPROG usekey --location="${TESTDATA}/rsa.public"
--destination="${TESTDATA}/rsa/2.session.material"
--destination2="${TESTDATA}/rsa/2.session.ciphertext"
--format=crypt-session "This is some test data"
$KEYPROG usekey --location="${TESTDATA}/rsa.public"
--location2="${TESTDATA}/dsa"
--destination="${TESTDATA}/rsa/2.signedsession.material"
--destination2="${TESTDATA}/rsa/2.signedsession.ciphertext"
--format=crypt-signedsession "This is some test data"