Linux Kernel Crypto API User Space Interface Library

Stephan Mueller


      
     

This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

For more details see the file COPYING in the source distribution of Linux.


Table of Contents

1. libkcapi - Linux Kernel Crypto API User Space Interface Library
Version Number Schema
Purpose Of AF_ALG
2. Programming Guidelines
Convenience Functions
Synchronous Symmetric Cipher API
Asynchronous Symmetric Cipher API
AEAD Cipher API
Aynchronous AEAD Cipher API
AEAD Memory Structure
Message Digest API
Asymmetric Cipher API
Zero Copy
Memory Allocation
Asynchronous I/O Use Cases and Libkcapi
Multiple Staged Cipher Operations
Multiple Separate Cipher Operations
Kernel Interfaces
Kernel Configuration
Example Code
3. Programming Interface
Common API
Symmetric Cipher API - Generic
Synchronous Symmetric Cipher API - One Shot
Symmetric Cipher API - Convenience
Asynchronous Symmetric Cipher API - One Shot
Synchronous Symmetric Cipher API - Stream
AEAD Cipher API - Generic
Synchronous AEAD Cipher API - One Shot
Aynchronous AEAD Cipher API - One Shot
Synchronous AEAD Cipher API - Stream
Message Digest Cipher API - Generic
Message Digest Cipher API - One Shot
Message Digest Cipher API - Convenience
Message Digest Cipher API - Stream
Random Number API
Random Number API - Convenience
Asymmetric Cipher API - Generic
Synchronous asymmetric Cipher API - One Shot
Aynchronous asymmetric Cipher API - One Shot
Asymmetric Cipher API - Stream
Key Protocol Primitives API - Generic
Synchronous Key Protocol Primitives API - One Shot
Asynchronous Key Protocol Primitives API - One Shot
Key Derivation Functions