jpbc

Save and load asymmetric keys from jPBC

对着背影说爱祢 提交于 2019-12-12 09:18:40
问题 I want similar functionality as prescribe Easy way to store/restore encryption key for decrypting string in java But my case is different. In the above link they are using javax.crypto.* but in my case I am using org.bouncycastle.crypto.* and it.unisa.dia.gas.crypto.jpbc.fe.abe.gghsw13.generators.* I want to store master-secret-key, public-key and private-key in different files and also retrieve those keys from files. How to do it ? Below is the code where I left TODO s. Working code can be

Save and load asymmetric keys from jPBC

谁都会走 提交于 2019-12-04 18:25:57
I want similar functionality as prescribe Easy way to store/restore encryption key for decrypting string in java But my case is different. In the above link they are using javax.crypto.* but in my case I am using org.bouncycastle.crypto.* and it.unisa.dia.gas.crypto.jpbc.fe.abe.gghsw13.generators.* I want to store master-secret-key, public-key and private-key in different files and also retrieve those keys from files. How to do it ? Below is the code where I left TODO s. Working code can be found on github . import it.unisa.dia.gas.crypto.circuit.BooleanCircuit; import it.unisa.dia.gas.crypto