Update bug
This commit is contained in:
parent
4cc59010df
commit
80474626c5
Binary file not shown.
|
@ -3,16 +3,16 @@
|
||||||
"key_ops": [
|
"key_ops": [
|
||||||
"decrypt"
|
"decrypt"
|
||||||
],
|
],
|
||||||
"p": "qlnU___GmUty5AejAC0s3w",
|
"p": "wzK2-wTf7umzANlX_GpNPw",
|
||||||
"q": "zd0o1V2uxS3KNbrA_xDrpQ",
|
"q": "0C4-I-J9jl_qK4NaelLtAQ",
|
||||||
"pub": {
|
"pub": {
|
||||||
"kty": "DAJ",
|
"kty": "DAJ",
|
||||||
"alg": "PAI-GN1",
|
"alg": "PAI-GN1",
|
||||||
"key_ops": [
|
"key_ops": [
|
||||||
"encrypt"
|
"encrypt"
|
||||||
],
|
],
|
||||||
"n": "iP0aSeUu_s_4gTEjhls8hI-7FYk_YLdKa_88_YQ-oLs",
|
"n": "nrx3KnoDI7bspt0XVcPhOgVqLgV_S6Nruyw2CSoboD8",
|
||||||
"kid": "Paillier public key generated by pheutil on 2021-03-14 03:25:45"
|
"kid": "Paillier public key generated by pheutil on 2021-04-01 22:09:04"
|
||||||
},
|
},
|
||||||
"kid": "Paillier private key generated by pheutil on 2021-03-14 03:25:45"
|
"kid": "Paillier private key generated by pheutil on 2021-04-01 22:09:04"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"key_ops": [
|
"key_ops": [
|
||||||
"encrypt"
|
"encrypt"
|
||||||
],
|
],
|
||||||
"n": "iP0aSeUu_s_4gTEjhls8hI-7FYk_YLdKa_88_YQ-oLs",
|
"n": "nrx3KnoDI7bspt0XVcPhOgVqLgV_S6Nruyw2CSoboD8",
|
||||||
"kid": "Paillier public key generated by pheutil on 2021-03-14 03:25:45"
|
"kid": "Paillier public key generated by pheutil on 2021-04-01 22:09:04"
|
||||||
}
|
}
|
||||||
|
|
2
run.py
2
run.py
|
@ -120,6 +120,6 @@ if __name__ == "__main__":
|
||||||
fp_arr = FingerCode(fp_img_path).result
|
fp_arr = FingerCode(fp_img_path).result
|
||||||
enroll(fp_arr)
|
enroll(fp_arr)
|
||||||
elif opt == 2:
|
elif opt == 2:
|
||||||
fp_img_new = "./dataset/110_2.tif"
|
fp_img_new = "./dataset/101_2.tif"
|
||||||
fp_arr_new = FingerCode(fp_img_new).result
|
fp_arr_new = FingerCode(fp_img_new).result
|
||||||
validate(conn, fp_arr_new)
|
validate(conn, fp_arr_new)
|
1282
sample.json
1282
sample.json
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
||||||
from .partial_homomorphic_encr import PartialHomomorphicEncryption
|
from .paillier import Paillier
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
paillier = PartialHomomorphicEncryption(256)
|
paillier = Paillier(256)
|
||||||
paillier.generate_key_pair()
|
paillier.generate_key_pair()
|
Loading…
Reference in New Issue