From f1d7a0725708f4150b663cea8108a1cff3552de7 Mon Sep 17 00:00:00 2001 From: JohnE Date: Fri, 14 Oct 2016 01:18:28 -0700 Subject: [PATCH] WIP: working to write the picseal files --- libs/{crypto_pub.py => crypto_sig.py} | 3 +-- libs/jpg_bin.py | 4 ---- libs/jpg_bin_w.py | 3 ++- 3 files changed, 3 insertions(+), 7 deletions(-) rename libs/{crypto_pub.py => crypto_sig.py} (97%) diff --git a/libs/crypto_pub.py b/libs/crypto_sig.py similarity index 97% rename from libs/crypto_pub.py rename to libs/crypto_sig.py index 3430b8e..509db43 100644 --- a/libs/crypto_pub.py +++ b/libs/crypto_sig.py @@ -1,5 +1,5 @@ # -# +# This Class Provides Crypto Functions # import logging from Crypto.Signature import PKCS1_v1_5 @@ -7,7 +7,6 @@ from Crypto.PublicKey import RSA from Crypto.Hash import SHA512 class Signature: - # def __init__(self): diff --git a/libs/jpg_bin.py b/libs/jpg_bin.py index 3c65454..a6fbd23 100644 --- a/libs/jpg_bin.py +++ b/libs/jpg_bin.py @@ -27,10 +27,6 @@ class JpgBin: BUF_CHUNK_SIZE = 2048 - markers = { - 'SOS': 0xffd9 - } - def __init__(self): self.data_buf = None self.data_idx = 0 diff --git a/libs/jpg_bin_w.py b/libs/jpg_bin_w.py index 10731f9..13830f6 100644 --- a/libs/jpg_bin_w.py +++ b/libs/jpg_bin_w.py @@ -3,7 +3,8 @@ # class JpgBinWrite: - soi = 0xffd8 + soi_marker = 0xffd8 + picseal_marker = 0xffe0 def __init__(self): pass