NanoPBC: implementing cryptographic pairings on an 8-bit platform