]> granicus.if.org Git - transmission/commit
#4400, #5462: Move RC4 helpers to crypto-utils
authorMike Gelfand <mikedld@mikedld.com>
Thu, 4 Dec 2014 12:37:08 +0000 (12:37 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 4 Dec 2014 12:37:08 +0000 (12:37 +0000)
commitd424ed143e86fef323cfac091c8498a549f8d310
treee62ecd04e55343af89909f80ad9fc70c2b61f896
parent4cfe7e7ddbc7a9d03d7e160c62f46f926e2699e8
#4400, #5462: Move RC4 helpers to crypto-utils

On a way to factoring out OpenSSL support to a standalone file to ease
addition of other crypto libraries support in the future, move helpers
providing RC4 ciphering to crypto-utils.{c,h}. OpenSSL-related
functionality (RC4 context management) is moved to crypto-utils-openssl.c.

Add new tr_rc4_ctx_t type and functions to be implemented by crypto
backends:
* tr_rc4_new - allocate RC4 context,
* tr_rc4_free - free the context,
* tr_rc4_set_key - set cipher key,
* tr_rc4_process - cipher memory block.
libtransmission/crypto-utils-openssl.c
libtransmission/crypto-utils.h
libtransmission/crypto.c
libtransmission/crypto.h