apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject [Patch] apr-crypto: support for symmetric keys (for HLS)
Date Mon, 01 Dec 2014 00:58:04 GMT
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
—

Mime
View raw message