45 lines
780 B
Plaintext
45 lines
780 B
Plaintext
[[[ Picseal ]]]
|
|
|
|
|
|
[[ Debug ]]
|
|
|
|
$ exiv2 -ps image.jpg
|
|
|
|
|
|
|
|
[[ 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)
|
|
|
|
[ seal ]
|
|
sha-512,public-key
|
|
|
|
|
|
[[ ]]
|
|
libexiv2-14 (= 0.25-2.1), libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 5.2)
|
|
|