Esempio n. 1
0
def readKmsResponseV4(data):
    response = kmsRequestV4.ResponseV4(data)
    hashed = generateHash(bytearray(bytes(response['response'])))
    print("Response Hash has expected value:", hashed == response['hash'])
    return response
Esempio n. 2
0
def readKmsResponseV4(data):
	response = kmsRequestV4.ResponseV4(data)
	hashed = generateHash(bytearray(bytes(response['response'])))
	print("Response Hash has expected value:", hashed == response['hash'])
	return response