\doxysection{aes\+\_\+wrap.\+h}
\label{aes__wrap_8h_source}\index{src/gsm/milenage/aes\_wrap.h@{src/gsm/milenage/aes\_wrap.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{10 \textcolor{comment}{/*}}
\DoxyCodeLine{11 \textcolor{comment}{ * Copyright (c) 2003-\/2007, Jouni Malinen <j@w1.fi>}}
\DoxyCodeLine{12 \textcolor{comment}{ *}}
\DoxyCodeLine{13 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{14 \textcolor{comment}{ * it under the terms of the GNU General Public License version 2 as}}
\DoxyCodeLine{15 \textcolor{comment}{ * published by the Free Software Foundation.}}
\DoxyCodeLine{16 \textcolor{comment}{ *}}
\DoxyCodeLine{17 \textcolor{comment}{ * Alternatively, this software may be distributed under the terms of BSD}}
\DoxyCodeLine{18 \textcolor{comment}{ * license.}}
\DoxyCodeLine{19 \textcolor{comment}{ *}}
\DoxyCodeLine{20 \textcolor{comment}{ * SPDX-\/License-\/Identifier: GPL-\/2.0 OR BSD-\/3-\/Clause}}
\DoxyCodeLine{21 \textcolor{comment}{ *}}
\DoxyCodeLine{22 \textcolor{comment}{ * See README and COPYING for more details.}}
\DoxyCodeLine{23 \textcolor{comment}{ */}}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{26 }
\DoxyCodeLine{27 \textcolor{keywordtype}{int} \_\_must\_check aes\_wrap(\textcolor{keyword}{const} u8 *kek, \textcolor{keywordtype}{int} n, \textcolor{keyword}{const} u8 *plain, u8 *cipher);}
\DoxyCodeLine{28 \textcolor{keywordtype}{int} \_\_must\_check aes\_unwrap(\textcolor{keyword}{const} u8 *kek, \textcolor{keywordtype}{int} n, \textcolor{keyword}{const} u8 *cipher, u8 *plain);}
\DoxyCodeLine{29 \textcolor{keywordtype}{int} \_\_must\_check omac1\_aes\_128\_vector(\textcolor{keyword}{const} u8 *key, \textcolor{keywordtype}{size\_t} num\_elem,}
\DoxyCodeLine{30                                       \textcolor{keyword}{const} u8 *addr[], \textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} *len,}
\DoxyCodeLine{31                                       u8 *mac);}
\DoxyCodeLine{32 \textcolor{keywordtype}{int} \_\_must\_check omac1\_aes\_128(\textcolor{keyword}{const} u8 *key, \textcolor{keyword}{const} u8 *data, \textcolor{keywordtype}{size\_t} data\_len,}
\DoxyCodeLine{33                                u8 *mac);}
\DoxyCodeLine{34 \textcolor{keywordtype}{int} \_\_must\_check aes\_128\_encrypt\_block(\textcolor{keyword}{const} u8 *key, \textcolor{keyword}{const} u8 *in, u8 *out);}
\DoxyCodeLine{35 \textcolor{keywordtype}{int} \_\_must\_check aes\_128\_ctr\_encrypt(\textcolor{keyword}{const} u8 *key, \textcolor{keyword}{const} u8 *nonce,}
\DoxyCodeLine{36                                      u8 *data, \textcolor{keywordtype}{size\_t} data\_len);}
\DoxyCodeLine{37 \textcolor{keywordtype}{int} \_\_must\_check aes\_128\_eax\_encrypt(\textcolor{keyword}{const} u8 *key,}
\DoxyCodeLine{38                                      \textcolor{keyword}{const} u8 *nonce, \textcolor{keywordtype}{size\_t} nonce\_len,}
\DoxyCodeLine{39                                      \textcolor{keyword}{const} u8 *hdr, \textcolor{keywordtype}{size\_t} hdr\_len,}
\DoxyCodeLine{40                                      u8 *data, \textcolor{keywordtype}{size\_t} data\_len, u8 *tag);}
\DoxyCodeLine{41 \textcolor{keywordtype}{int} \_\_must\_check aes\_128\_eax\_decrypt(\textcolor{keyword}{const} u8 *key,}
\DoxyCodeLine{42                                      \textcolor{keyword}{const} u8 *nonce, \textcolor{keywordtype}{size\_t} nonce\_len,}
\DoxyCodeLine{43                                      \textcolor{keyword}{const} u8 *hdr, \textcolor{keywordtype}{size\_t} hdr\_len,}
\DoxyCodeLine{44                                      u8 *data, \textcolor{keywordtype}{size\_t} data\_len, \textcolor{keyword}{const} u8 *tag);}
\DoxyCodeLine{45 \textcolor{keywordtype}{int} \_\_must\_check aes\_128\_cbc\_encrypt(\textcolor{keyword}{const} u8 *key, \textcolor{keyword}{const} u8 *iv, u8 *data,}
\DoxyCodeLine{46                                      \textcolor{keywordtype}{size\_t} data\_len);}
\DoxyCodeLine{47 \textcolor{keywordtype}{int} \_\_must\_check aes\_128\_cbc\_decrypt(\textcolor{keyword}{const} u8 *key, \textcolor{keyword}{const} u8 *iv, u8 *data,}
\DoxyCodeLine{48                                      \textcolor{keywordtype}{size\_t} data\_len);}

\end{DoxyCode}
