A Pascal interface to cryptodev API found in some Unix systems
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
cryptodev.pas
cryptodevtest.c
cryptodevtest.pas
cryptodevtest.sh
linuxioctl.pas
speed.pas

README.md

CryptoDev-P

This is a Pascal interface to use the cryptodev module for Linux using the Free Pascal Compiler.

It also contains a 1:1 conversion of the Linux ioctl.h headers, and the conversion of the cryptodev.h header.

Since the API is the same, it should work with OpenBSD and FreeBSD but this was never tested. Patches and feedback is welcomed!

Also contains test code to test the header unit's validity against the C equivalent. It was tested and proven to work on x86, x86_64, ARM and 32bit PowerPC.

CryptoDev Linux

For more information about the cryptodev-linux module itself, see:

http://cryptodev-linux.org/

How To Use

Use the provided cryptodevtest.sh to test the validity of the header for your system. The speed.pas example should then build simply using:

fpc speed.pas