mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-16 16:14:50 -04:00
py3-kms upload
This commit is contained in:
parent
1d9f221bd1
commit
fb67af7870
19 changed files with 4739 additions and 0 deletions
13
py3-kms/kmsRequestUnknown.py
Normal file
13
py3-kms/kmsRequestUnknown.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import struct
|
||||
|
||||
from kmsBase import kmsBase
|
||||
|
||||
class kmsRequestUnknown(kmsBase):
|
||||
def getResponse(self):
|
||||
finalResponse = bytearray()
|
||||
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
||||
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
||||
finalResponse.extend(bytearray(struct.pack('<I', self.errorCodes['SL_E_VL_KEY_MANAGEMENT_SERVICE_ID_MISMATCH'])))
|
||||
return finalResponse.decode('utf-8').encode('utf-8') #*2to3*
|
Loading…
Add table
Add a link
Reference in a new issue