1
0
mirror of https://github.com/ThunderEX/py-kms.git synced 2025-04-18 07:44:00 +03:00

redirect struct, uuid, os.path

This commit is contained in:
ThunderEX 2017-08-18 20:37:24 +08:00
parent 23e17cd44f
commit 79277cddf6
No known key found for this signature in database
GPG Key ID: B958D483564EFDA4
5 changed files with 21 additions and 6 deletions

View File

@ -2,9 +2,13 @@ import binascii
import filetimes
import kmsPidGenerator
import os
import os.path
import sys
import time
import uuid
try:
import uuid
except ImportError:
import upy.uuid as uuid
from structure import Structure

View File

@ -3,7 +3,10 @@ try:
except ImportError:
import upy.fakerandom as random
import time
import uuid
try:
import uuid
except ImportError:
import upy.uuid as uuid
APP_ID_WINDOWS = uuid.UUID("55C92734-D682-4D71-983E-D6EC3F16059F")
APP_ID_OFFICE14 = uuid.UUID("59A52881-A989-479D-AF46-F275C6370663")

View File

@ -1,4 +1,7 @@
import struct
try:
import struct
except ImportError:
import ustruct as struct
from kmsBase import errorCodes, kmsBase
class kmsRequestUnknown(kmsBase):

View File

@ -1,7 +1,10 @@
import os
import hashlib
import hmac
import struct
try:
import struct
except ImportError:
import ustruct as struct
import pyaes
from kmsBase import kmsResponseStruct
from kmsRequestV5 import kmsRequestV5

View File

@ -50,8 +50,10 @@
# See the README.md for API details and general information.
import struct
try:
import struct
except ImportError:
import ustruct as struct
__all__ = ["AES", "AESModeOfOperationCTR", "AESModeOfOperationCBC", "AESModeOfOperationCFB",
"AESModeOfOperationECB", "AESModeOfOperationOFB", "AESModesOfOperation", "Counter"]