In the documentation of the charm-crypto library, in the implemented schemes there is often a paragraph like this: `
groupObj = PairingGroup('SS512')
k = groupObj.random(GT)
where k is the <pairing.Element> data to be encrypted. How can I convert an integer to an element similar to k so that after decoding I can convert it back to an integer. Can the method X=1000m+i,1<=i<=999 such that exist (X,y) belongs to the ECC curve and calculate m = P.X//1000 be implemented here? Can anyone help me do this?
pairing.Element corresponds to an integer in charm-crypto
ádw12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.