py3-kms upload

This commit is contained in:
Matteo ℱan 2018-02-28 23:27:12 +01:00 committed by GitHub
parent 1d9f221bd1
commit fb67af7870
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 4739 additions and 0 deletions

View 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*