mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
bfc941deb4
84faa631a5
Refactor memory allocation for the symmetric ciphers context structures.5781341d99
Use the OpenSSL HMAC implementation, and thus also the OpenSSL EVP_sha1() implementation. Experiments show about a 1.5x speedup on Intel CPUs with AVX2.fb95445019
When building with OpenSSL, pass the AES_ICM key to the EVP context (and thus, do AES key expansion) in srtp_cipher_init, not srtp_cipher_set_iv. This means that AES key expansion is done once per key, rather than once per packet, resulting in a 2-3x speedup for AES-128.1acba56991
When building with OpenSSL, pass the AES_GCM key to the EVP context (and thus, do AES key expansion) in srtp_cipher_init, not srtp_cipher_set_iv. Improves AES_GCM performance 2x-3x.0b45423678
Changes for OpenSSL 1.1.0 compatibility. In OpenSSL 1.1.0, EVP_CIPHER_CTX, HMAC_CTX, and EVP_MD_CTX are opaque types, and have to be allocated with *_new methods and deallocated with *_free. EVP_CIPHER_CTX_new/free is present in OpenSSL 1.0.1 and later, but HMAC_CTX_new and EVP_MD_CTX_new are new in OpenSSL 1.1.0. Use the _new unconditionally for ciphers, and conditionally use the old or new APIs for HMAC and MD. No noticible performance change for older OpenSSL. PR: 228866
41 lines
774 B
Makefile
41 lines
774 B
Makefile
# Created by: Alexander Brovikov <alexander@brovikov.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libsrtp
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.6.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
|
COMMENT= Secure RTP (SRTP) Reference Implementation
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BROKEN_SSL= openssl-devel
|
|
|
|
PORTSCOUT= limit:^1\.
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cisco
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-openssl
|
|
USES= cpe localbase gmake pathfix pkgconfig ssl
|
|
CPE_VENDOR= cisco
|
|
USE_LDCONFIG= yes
|
|
|
|
ALL_TARGET= all shared_library
|
|
TEST_TARGET= runtest
|
|
TEST_ENV= LD_LIBRARY_PATH=${WRKSRC}
|
|
|
|
.if ! defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+=--disable-debug
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} '/pkg-config.*openssl/d' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.mk>
|