# Path: subspace/pyelliptic/openssl.py
# class CipherName:
# class _OpenSSL:
#     def __init__(self, name, pointer, blocksize):
#     def __str__(self):
#     def get_pointer(self):
#     def get_name(self):
#     def get_blocksize(self):
#     def __init__(self, library):
#     def _set_ciphers(self):
#     def _set_curves(self):
#     def BN_num_bytes(self, x):
#     def get_cipher(self, name):
#     def get_curve(self, name):
#     def get_curve_by_id(self, id):
#     def rand(self, size):
#     def malloc(self, data, size):


from .openssl import OpenSSL
        return False
    result = 0
    for x, y in zip(a, b):
        result |= ord(x) ^ ord(y)
    return result == 0


def equals(a, b):
    if isinstance(a, str):
        return _equals_str(a, b)
    else:
        return _equals_bytes(a, b)


def hmac_sha256(k, m):
    """
    Compute the key and the message with HMAC SHA5256
    """
    key = OpenSSL.malloc(k, len(k))
    d = OpenSSL.malloc(m, len(m))
    md = OpenSSL.malloc(0, 32)
    i = OpenSSL.pointer(OpenSSL.c_int(0))
    OpenSSL.HMAC(OpenSSL.EVP_sha256(), key, len(k), d, len(m), md, i)
    return md.raw


def hmac_sha512(k, m):
    """
    Compute the key and the message with HMAC SHA512
    """

# Path: subspace/pyelliptic/openssl.py
# class CipherName:
# class _OpenSSL:
#     def __init__(self, name, pointer, blocksize):
#     def __str__(self):
#     def get_pointer(self):
#     def get_name(self):
#     def get_blocksize(self):
#     def __init__(self, library):
#     def _set_ciphers(self):
#     def _set_curves(self):
#     def BN_num_bytes(self, x):
#     def get_cipher(self, name):
#     def get_curve(self, name):
#     def get_curve_by_id(self, id):
#     def rand(self, size):
#     def malloc(self, data, size):


# Path: subspace/pyelliptic/hash.py
from .openssl import OpenSSL

        return False
    result = 0
    for x, y in zip(a, b):
        result |= ord(x) ^ ord(y)
    return result == 0


def equals(a, b):
    if isinstance(a, str):
        return _equals_str(a, b)
    else:
        return _equals_bytes(a, b)


def hmac_sha256(k, m):
    """
    Compute the key and the message with HMAC SHA5256
    """
    key = OpenSSL.malloc(k, len(k))
    d = OpenSSL.malloc(m, len(m))
    md = OpenSSL.malloc(0, 32)
    i = OpenSSL.pointer(OpenSSL.c_int(0))
    OpenSSL.HMAC(OpenSSL.EVP_sha256(), key, len(k), d, len(m), md, i)
    return md.raw


def hmac_sha512(k, m):
    """
    Compute the key and the message with HMAC SHA512
    """

    key = OpenSSL.malloc(k, len(k))