py2-kms upload

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

View file

@ -0,0 +1,13 @@
#!/usr/bin/env python
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 str(finalResponse)