Designing an ASIP for Cryptographic Pairings over Barreto-Naehrig Curves