# aesenc

AES encryption

## Example

     echo "This is an AES crypto test ... " > plain.txt && \
           gst-launch-1.0 filesrc location=plain.txt ! \
           aesenc key=1f9423681beb9a79215820f6bda73d0f iv=e9aa8e834d8d70b7e0d254ff670dd718 ! \
           aesdec key=1f9423681beb9a79215820f6bda73d0f iv=e9aa8e834d8d70b7e0d254ff670dd718 ! \
           filesink location=dec.txt && \
           cat dec.txt

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseTransform
                        ╰──aesenc

## Factory details

Authors: – Rabindra Harlalka

Classification: – `Generic/Filter`

Rank – primary

Plugin – aes

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    ANY

Presence – always

Direction – sink

Object type – GstPad

### `src`

    ANY

Presence – always

Direction – src

Object type – GstPad

## Properties

### cipher

    “cipher” GstAesCipher *

AES cipher mode (key length and mode) Currently, 128 and 256 bit keys are supported, in "cipher block chaining" (CBC) mode

Flags : Read / Write

Default value : aes-128-cbc (0)

### iv

    “iv” gchararray

AES encryption initialization vector (hexadecimal)

Flags : Read / Write

### key

    “key” gchararray

AES encryption key (hexadecimal)

Flags : Read / Write

### per-buffer-padding

    “per-buffer-padding” gboolean

If true, each buffer will be padded using PKCS7 padding If false, only the final buffer in the stream will be padded (by OpenSSL) using PKCS7

Flags : Read / Write

Default value : true

### serialize-iv

    “serialize-iv” gboolean

If true, store initialization vector in first 16 bytes of first buffer

Flags : Read / Write

Default value : false

## Named constants

### GstAesCipher

#### Members

`aes-128-cbc` (0) – AES 128 bit cipher key using CBC method
`aes-256-cbc` (1) – AES 256 bit cipher key using CBC method

The results of the search are