All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] Cipher infrastructure
@ 2015-01-30 10:57 Tomasz Bursztyka
  2015-01-30 10:57 ` [PATCH 1/2] cipher: Add a basic infrastructure for kernel based cipher operations Tomasz Bursztyka
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tomasz Bursztyka @ 2015-01-30 10:57 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 1345 bytes --]

Hi,

Went quickly through the cipher proposal, to get a somehow working implementation.
Seems to work with aes, but not with arc4.

And now I wonder if we should not provide an initialization vector for some ciphers? (like arc4).

I thought I could set one IV per socket once, but it does not seems so. (thus there is
nothing related to IV in this RFC).

So, should I set iv elements in struct l_cipher, so I could set one one encrypting/decrypting?
It's just a bit annoying with cmsg handling, but I got nice example with libkapi (though this
one mandate the user to provide the iv. I tought we could handle randomly generated ones?)

libkapi is kind of nice as it uses vmsplice and so on. It's just a lot of code, I don't
think we want something that complex.

Tomasz Bursztyka (2):
  cipher: Add a basic infrastructure for kernel based cipher operations
  unit: Add unit test for the cipher infrastructure

 Makefile.am        |  11 ++-
 ell/cipher.c       | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 ell/cipher.h       |  51 +++++++++++++
 ell/ell.h          |   1 +
 unit/test-cipher.c | 109 +++++++++++++++++++++++++++
 5 files changed, 384 insertions(+), 3 deletions(-)
 create mode 100644 ell/cipher.c
 create mode 100644 ell/cipher.h
 create mode 100644 unit/test-cipher.c

-- 
2.0.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-03  8:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30 10:57 [RFC 0/2] Cipher infrastructure Tomasz Bursztyka
2015-01-30 10:57 ` [PATCH 1/2] cipher: Add a basic infrastructure for kernel based cipher operations Tomasz Bursztyka
2015-01-30 10:57 ` [PATCH 2/2] unit: Add unit test for the cipher infrastructure Tomasz Bursztyka
2015-02-02 18:44 ` [RFC 0/2] Cipher infrastructure Denis Kenzior
2015-02-03  8:07   ` Tomasz Bursztyka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.