You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Graham Leggett <mi...@sharp.fm> on 2014/12/01 01:58:04 UTC

[Patch] apr-crypto: support for symmetric keys (for HLS)

Hi all,

The HLS protocol calls for the ability to do aes128 encryption using a symmetrical key.

The attached patch introduces the apr_crypto_key() function that deprecates the apr_crypto_passphrase() function, and allows either passphrases or symmetrical secrets to be passed to the crypto API. This keeps the option open to support other types of keys in future.

In addition, the apr_crypto_get_block_key_types() and apr_crypto_get_block_key_modes() functions used to return a hash of void *’s to an integer. They now return a hash of void *’s to structures where the first member is the same integer, followed by additional information about the cipher (like the key length). This should make this backportable to apr-util v1.6.

The mod_crypto module that provides HLS support will be posted to the dev@htpd list.

Regards,
Graham
—

Re: [Patch] apr-crypto: support for symmetric keys (for HLS)

Posted by Graham Leggett <mi...@sharp.fm>.
On 01 Dec 2014, at 2:58 AM, Graham Leggett <mi...@sharp.fm> wrote:

> The HLS protocol calls for the ability to do aes128 encryption using a symmetrical key.

This updated patch caters for IV sizes that are not equal to the block size.

Regards,
Graham
—