32 lines
620 B
Plaintext
32 lines
620 B
Plaintext
[[[ Picseal ]]]
|
|
|
|
|
|
[[ MVP Plan ]]
|
|
|
|
[ C ]
|
|
libexiv --> exif read/write
|
|
libwolfss --> crypto generation
|
|
|
|
[ Functions ]
|
|
# load image file
|
|
picseal.init(image_file)
|
|
|
|
# create pub/priv key pair
|
|
# add new public key to exif
|
|
# store priv key in memory
|
|
picseal.add_new_key(CIPHER_TYPE)
|
|
|
|
# hash the image, encrypt hash with priv-key
|
|
# hash the image & specific exif tags, encrypt hash with priv-key
|
|
# add signatures to exif
|
|
picseal.seal_image(HASH_TYPE)
|
|
|
|
# write the image with public key, and signature
|
|
picseal.write_pub(FILE_HANDLE)
|
|
|
|
|
|
# write the image with private key, and signature
|
|
# ADD PIN??
|
|
picseal.write_priv(FILE_HANDLE)
|
|
|