# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 77318 2011-03-27 07:18:48Z ryandesign@macports.org $

PortSystem          1.0

name                pbc
version             0.5.11
categories          security
platforms           darwin
maintainers         googlemail.com:jgilab openmaintainer
license             LGPL-3

description         The Pairing-Based Cryptography Library

long_description    ${description}\
                    \n\nPairing-based cryptography is a relatively young area \
                    of cryptography that revolves around a certain function \
                    with special properties. \
                    \n\nThe PBC (Pairing-Based Cryptography) library is a free \
                    C library built on the GMP library that performs the \
                    mathematical operations underlying pairing-based \
                    cryptosystems. \
                    \n\nThe PBC library is designed to be the backbone of \
                    implementations of pairing-based cryptosystems, thus \
                    speed and portability are important goals. It provides \
                    routines such as elliptic curve generation, elliptic \
                    curve arithmetic and pairing computation. Thanks to the \
                    GMP library, despite being written in C, pairings times \
                    are reasonable.

homepage            http://crypto.stanford.edu/pbc/
master_sites        ${homepage}files/

checksums           sha1    8b99533afad4df5edf0e3f23a6603cbd23080206 \
                    rmd160  f00faf33e64efa1de4180cc8a83fc82fc904ab02

depends_lib         port:gmp
