This code is used in Elliptic curve Cryptography for image Encryption at https://free-thesis.com/product/image-encryption-decryption-using-ecc/