Messages in this thread Patch in this message | | | Date | Tue, 19 Dec 2006 13:59:16 +0300 | From | Evgeniy Polyakov <> | Subject | Re: [ANN] Acrypto asynchronous crypto layer 2.6.19 release. |
| |
On Tue, Dec 19, 2006 at 11:51:01AM +0100, Andreas Jellinghaus (aj@ciphirelabs.com) wrote: > Evgeniy Polyakov wrote: > >You can change it in async_provider in compilation time or I can create > >module version. There is an item in related todo list to use crypto > >contexts, they were created exactly for such kind of things (actually > >for hardware devices which do not support realtime key changes). > > ok, what do I need to change to get aes-cbc-essiv:sha256 support > so I can use acrypto with my current dm-crypt'ed partitions?
For AES CBC only set of supported operations should be extended. Something like patch below:
diff --git a/acrypto/async_provider.c b/acrypto/async_provider.c index ac11708..186cc5c 100644 --- a/acrypto/async_provider.c +++ b/acrypto/async_provider.c @@ -48,6 +48,12 @@ static struct acrypto_capability prov_caps[] = { {ACRYPTO_OP_ENCRYPT, ACRYPTO_TYPE_AES_128, ACRYPTO_MODE_CBC, 1000}, {ACRYPTO_OP_DECRYPT, ACRYPTO_TYPE_AES_128, ACRYPTO_MODE_CBC, 1000}, + + {ACRYPTO_OP_ENCRYPT, ACRYPTO_TYPE_AES_192, ACRYPTO_MODE_CBC, 1000}, + {ACRYPTO_OP_DECRYPT, ACRYPTO_TYPE_AES_192, ACRYPTO_MODE_CBC, 1000}, + + {ACRYPTO_OP_ENCRYPT, ACRYPTO_TYPE_AES_256, ACRYPTO_MODE_CBC, 1000}, + {ACRYPTO_OP_DECRYPT, ACRYPTO_TYPE_AES_256, ACRYPTO_MODE_CBC, 1000}, }; static int prov_cap_number = sizeof(prov_caps)/sizeof(prov_caps[0]); -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |