Re: [RFC PATCH 1/2] crypto: Allow working with key references

2019-06-03 Thread Herbert Xu
On Mon, Jun 03, 2019 at 09:59:53AM +0200, Harald Freudenberger wrote: > > The "p" in paes is because we call it "protected key aes". I think you are > not limited > to the "p". What Herbert tries to point out is that you may define your own > cipher with an unique name and there you can handle you

Re: [RFC PATCH 1/2] crypto: Allow working with key references

2019-06-03 Thread Harald Freudenberger
...@nxp.com, feste...@gmail.com, >> "kernel" , "Sascha Hauer" >> , shawn...@kernel.org, da...@davemloft.net, "david" >> >> Gesendet: Donnerstag, 30. Mai 2019 04:33:57 >> Betreff: Re: [RFC PATCH 1/2] crypto: Allow working with key refere

Re: [RFC PATCH 1/2] crypto: Allow working with key references

2019-05-30 Thread Richard Weinberger
"Sascha Hauer" > , shawn...@kernel.org, da...@davemloft.net, "david" > > Gesendet: Donnerstag, 30. Mai 2019 04:33:57 > Betreff: Re: [RFC PATCH 1/2] crypto: Allow working with key references > On Thu, May 30, 2019 at 12:48:43AM +0200, Richard Weinberger wrote: >> Some

Re: [RFC PATCH 1/2] crypto: Allow working with key references

2019-05-29 Thread Herbert Xu
On Thu, May 30, 2019 at 12:48:43AM +0200, Richard Weinberger wrote: > Some crypto accelerators allow working with secure or hidden keys. > This keys are not exposed to Linux nor main memory. To use them > for a crypto operation they are referenced with a device specific id. > > This patch adds a n

[RFC PATCH 1/2] crypto: Allow working with key references

2019-05-29 Thread Richard Weinberger
Some crypto accelerators allow working with secure or hidden keys. This keys are not exposed to Linux nor main memory. To use them for a crypto operation they are referenced with a device specific id. This patch adds a new flag, CRYPTO_TFM_REQ_REF_KEY. If this flag is set, crypto drivers should tr