| dp14txss Vitis Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List

Functions
aes.c File Reference

## Overview

This code is the implementation of the AES algorithm and the CTR, CBC, and CCM modes of operation it can be used in.

AES is, specified by the NIST in in publication FIPS PUB 197, availible at:

- http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf . The CBC and CTR modes of operation are specified by NIST SP 800-38 A, available at:
- http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf . The CCM mode of operation is specified by NIST SP80-38 C, available at:
- http://csrc.nist.gov/publications/nistpubs/800-38C/SP800-38C_updated-July20_2007.pdf

     MODIFICATION HISTORY:

     Ver   Who  Date     Changes

     1.00  MH   10/30/15 First Release
     1.01  MH   01/28/17 Fixed warnings and errors.

## Functions
void | XHdcp22Cmn_Aes128Encrypt (const u8 *Data, const u8 *Key, u8 *Output)
| This function encrypts 128 bits data with a key of size 128 bits. More...
void | XHdcp22Cmn_Aes128Decrypt (const u8 *Data, const u8 *Key, u8 *Output)
| This function encrypts 128 bits data with a key of size 128 bits. More...

## Function Documentation

void XHdcp22Cmn_Aes128Decrypt | ( | const u8 * | Data,
|  | const u8 * | Key,
|  | u8 * | Output
| ) |  |

This function encrypts 128 bits data with a key of size 128 bits.

Parameters

  Input | is the 16 byte ciphertext
  Key | is the user supplied input key
  Output | is the 16 byte plaintext

Returns
  None.

Note
  None.

void XHdcp22Cmn_Aes128Encrypt | ( | const u8 * | Data,
|  | const u8 * | Key,
|  | u8 * | Output
| ) |  |

This function encrypts 128 bits data with a key of size 128 bits.

Parameters

  Input | is the 16 byte plaintext
  Key | is the user supplied input key
  Output | is the 16 byte ciphertext

Returns
  None.

Note
  None.