Skip to contentSkip to conversation

IPsec books and how to add async hardware encryption ?

DISCUSSION Dean Jenkins 2 participants 4 messages Oct 31, 2008 – Nov 3, 2008 Crypto API

lore
Share & tools
lore
#0 lore raw

Hi,

I am having difficulty finding a book that describes IPsec that includes IKEv2 and is preferably aimed at using Linux crypto. Can anyone recommend such a book ?

Also, how do I find info on the cypto APIs eg. how to use cryptd (2.6.24 kernel) ?

I'm working on a project that uses an embedded hardware encryption engine that needs to use async off-load. Is cryptd the entity for async hardware crypto off-loading ?

Thanks,

Dean
MontaVista Software

#1 lore raw

Hi.

Quoted 3 lines · Dean Jenkins

I am having difficulty finding a book that describes IPsec that includes IKEv2 and is preferably aimed at using Linux crypto. Can anyone recommend such a book ?

There is no such book I believe.

Quoted 6 lines

Also, how do I find info on the cypto APIs eg. how to use cryptd (2.6.24 kernel) ?

I'm working on a project that uses an embedded hardware encryption engine that needs to use async off-load. Is cryptd the entity for async hardware crypto off-loading ?

cryptd is an software engine example of how hardware driver could be implemented.

Signature · 1 line
	Evgeniy Polyakov
#2 lore raw

Hi Evgeniy,

Quoted 9 lines
Quoted 6 lines

Also, how do I find info on the cypto APIs eg. how to use cryptd (2.6.24 kernel) ?

I'm working on a project that uses an embedded hardware encryption engine that needs to use async off-load. Is cryptd the entity for async hardware crypto off-loading ?

cryptd is an software engine example of how hardware driver could be implemented.

Are you saying that to implement an async hardware driver I could use the APIs used by cryptd and create my own hwcryptd ?

If yes, is there any documentation for the APIs used by cryptd ?

Thanks,

Regards,
Dean Jenkins
MontaVista Software

#3 lore raw

Hi Dean.

Quoted 5 lines · Dean Jenkins
Quoted 2 lines

cryptd is an software engine example of how hardware driver could be implemented.

Are you saying that to implement an async hardware driver I could use the APIs used by cryptd and create my own hwcryptd ?

Yes for the APIs used in cryptd, but usually hardware driver does not need to have any threads attached, since completion of the event is handled in the interrupt handler.

Quoted 1 line

If yes, is there any documentation for the APIs used by cryptd ?

No, there is no documentation except source code.
In some files you can even find this comments:

* HEAVY TODO: needs to kick Herbert XU to write documentation.

Herbert is a crypto maintainer who created async crypto interfaces you found in cryptd. You can also check hardware crypto drivers in drivers/crypto/ directory.

Signature · 1 line
	Evgeniy Polyakov