예제 #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
예제 #2
0
파일: client.py 프로젝트: mengzxh/py-kms
def readKmsResponseV4(data):
	response = kmsRequestV4.ResponseV4(data)
	hashed = generateHash(bytearray(bytes(response['response'])))
	print("Response Hash has expected value:", hashed == response['hash'])
	return response