Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1399172
| From | David Howells <dhowells@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH RESEND v5 0/6] crypto: algif - add akcipher |
| Date | 2016-05-11 16:30 +0200 |
| Message-ID | <rxDjc-1to-31@gated-at.bofh.it> (permalink) |
| References | <rvxBf-6mz-3@gated-at.bofh.it> |
| Organization | Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 |
Tadeusz Struk <tadeusz.struk@intel.com> wrote: > This is the same v5 version as before rebased on top of > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-asym-keyctl I've just reposted this. The interface you're using should be the same, I think, but the details underneath have changed. Also, you can now supply private keys to the kernel if they're PKCS#8 encoded and keyctls are supplied that do encryption, decryption, signing and verifying, e.g.: j=`openssl pkcs8 -in ~/pkcs7/firmwarekey2.priv -topk8 -nocrypt -outform DER | \ keyctl padd asymmetric foo @s` echo -n abcdefghijklmnopqrst >/tmp/data keyctl pkey_encrypt $j 0 /tmp/data enc=pkcs1 >/tmp/enc keyctl pkey_decrypt $j 0 /tmp/enc enc=pkcs1 >/tmp/dec cmp /tmp/data /tmp/dec keyctl pkey_sign $j 0 /tmp/data enc=pkcs1 hash=sha1 >/tmp/sig keyctl pkey_verify $j 0 /tmp/data /tmp/sig enc=pkcs1 hash=sha1 David
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH RESEND v5 0/6] crypto: algif - add akcipher Tadeusz Struk <tadeusz.struk@intel.com> - 2016-05-05 22:00 +0200
[PATCH RESEND v5 6/6] crypto: AF_ALG - add support for key_id Tadeusz Struk <tadeusz.struk@intel.com> - 2016-05-05 22:00 +0200
Re: [PATCH RESEND v5 6/6] crypto: AF_ALG - add support for key_id Stephan Mueller <smueller@chronox.de> - 2016-05-06 17:00 +0200
[PATCH RESEND v5 5/6] crypto: algif_akcipher - add ops_nokey Tadeusz Struk <tadeusz.struk@intel.com> - 2016-05-05 22:00 +0200
Re: [PATCH RESEND v5 0/6] crypto: algif - add akcipher David Howells <dhowells@redhat.com> - 2016-05-11 16:30 +0200
csiph-web