'Tests that both types of signatures are ok.'

def testSHA256(self):

    key = rdf_crypto.EncryptionKey.GenerateKey()
    message = 'Hello    World!'
    h = rdf_crypto.HMAC(key)
    signature_sha1 = h.HMAC(message)
    signature_sha256 = h.HMAC(message, use_sha256=True)
    self.assertNotEqual(signature_sha1, signature_sha256)
    h.Verify(message, signature_sha1)
    h.Verify(message, signature_sha256)
