1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter 2. Kernel Crypto API Architecture</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Kernel Crypto API"><link rel="up" href="index.html" title="Linux Kernel Crypto API"><link rel="prev" href="ch01s02.html" title="Terminology"><link rel="next" href="ch02s02.html" title="Ciphers And Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 2. Kernel Crypto API Architecture</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch02s02.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="Architecture"></a>Chapter 2. Kernel Crypto API Architecture</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="Architecture.html#idp1094533588">Cipher algorithm types</a></span></dt><dt><span class="sect1"><a href="ch02s02.html">Ciphers And Templates</a></span></dt><dt><span class="sect1"><a href="ch02s03.html">Synchronous And Asynchronous Operation</a></span></dt><dt><span class="sect1"><a href="ch02s04.html">Crypto API Cipher References And Priority</a></span></dt><dt><span class="sect1"><a href="ch02s05.html">Key Sizes</a></span></dt><dt><span class="sect1"><a href="ch02s06.html">Cipher Allocation Type And Masks</a></span></dt><dt><span class="sect1"><a href="ch02s07.html">Internal Structure of Kernel Crypto API</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s07.html#idp1094420740">Generic AEAD Cipher Structure</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#idp1094433436">Generic Block Cipher Structure</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#idp1094434500">Generic Keyed Message Digest Structure</a></span></dt></dl></dd></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1094533588"></a>Cipher algorithm types</h2></div></div></div><p> 2 The kernel crypto API provides different API calls for the 3 following cipher types: 4 5 </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>Symmetric ciphers</p></li><li class="listitem"><p>AEAD ciphers</p></li><li class="listitem"><p>Message digest, including keyed message digest</p></li><li class="listitem"><p>Random number generation</p></li><li class="listitem"><p>User space interface</p></li></ul></div><p> 6 </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s02.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch02s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Terminology </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Ciphers And Templates</td></tr></table></div></body></html> 7