OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
/dev/crypto

From: Michal Ludvig (michal-bsdlogix.cz)
Date: Tue Aug 03 2004 - 08:36:22 CDT


Hi all,

could anyone please explain (or give some links) why the "unusual"
semantics of /dev/crypto usage was chosen?

I don't really understand why it is necessary to first open the device and
obtain a file descriptor and then issue an ioctl(CRIOGET) to get another
one for the actual crypto operations. Why is this approach better that
opening the device everytime it is needed?

Thanks!

Michal Ludvig
--
* A mouse is a device used to point at the xterm you want to type in.
* Personal homepage - http://www.logix.cz/michal