# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ OpenSSL interface for hashlib module """ class HASH(object): """ A hash is an object used to calculate a checksum of a string of information. Methods: update() -- updates the current digest with an additional string digest() -- return the current digest value hexdigest() -- return the current digest as a string of hexadecimal digits copy() -- return a copy of the current hash object Attributes: name -- the hash algorithm being used by this object digest_size -- number of bytes in this hashes output """ block_size = property(None, None, None, ) def copy(self): """ Return a copy of the hash object. """ pass def digest(self): """ Return the digest value as a bytes object. """ pass digest_size = property(None, None, None, ) def hexdigest(self): """ Return the digest value as a string of hexadecimal digits. """ pass name = property(None, None, None, ) def update(self, obj): """ Update this hash object's state with the provided string. """ pass class HASHXOF(HASH): """ A hash is an object used to calculate a checksum of a string of information. Methods: update() -- updates the current digest with an additional string digest(length) -- return the current digest value hexdigest(length) -- return the current digest as a string of hexadecimal digits copy() -- return a copy of the current hash object Attributes: name -- the hash algorithm being used by this object digest_size -- number of bytes in this hashes output """ def digest(self, length): """ Return the digest value as a bytes object. """ pass digest_size = property(None, None, None, ) def hexdigest(self, length): """ Return the digest value as a string of hexadecimal digits. """ pass class HMAC(object): """ The object used to calculate HMAC of a message. Methods: update() -- updates the current digest with an additional string digest() -- return the current digest value hexdigest() -- return the current digest as a string of hexadecimal digits copy() -- return a copy of the current hash object Attributes: name -- the name, including the hash algorithm used by this object digest_size -- number of bytes in digest() output """ block_size = property(None, None, None, ) def copy(self): """ Return a copy ("clone") of the HMAC object. """ pass def digest(self): """ Return the digest of the bytes passed to the update() method so far. """ pass digest_size = property(None, None, None, ) def hexdigest(self): """ Return hexadecimal digest of the bytes passed to the update() method so far. This may be used to exchange the value safely in email or other non-binary environments. """ pass name = property(None, None, None, ) def update(self, msg): """ Update the HMAC object with msg. """ pass class UnsupportedDigestmodError(ValueError): pass __doc__ = 'OpenSSL interface for hashlib module' __file__ = '/home/shared/src/ide/build-files/build-temp/runtimes-release/__os__/linux-arm64/runtime-python3.12/lib/python3.12/lib-dynload/_hashlib.cpython-312-aarch64-linux-gnu.so' __loader__ = None __name__ = '_hashlib' __package__ = '' __spec__ = None _constructors = None def compare_digest(a, b): """ Return 'a == b'. This function uses an approach designed to prevent timing analysis, making it appropriate for cryptography. a and b must both be of the same type: either str (ASCII only), or any bytes-like object. Note: If a and b are of different lengths, or if an error occurs, a timing attack could theoretically reveal information about the types and lengths of a and b--but not their values. """ return None def get_fips_mode(): """ Determine the OpenSSL FIPS mode of operation. For OpenSSL 3.0.0 and newer it returns the state of the default provider in the default OSSL context. It's not quite the same as FIPS_mode() but good enough for unittests. Effectively any non-zero return value indicates FIPS mode; values other than 1 may have additional significance. """ pass def hmac_digest(key, msg, digest): """ Single-shot HMAC. """ pass def hmac_new(key, msg=b'', digestmod=None): """ Return a new hmac object. """ pass def new(name, string=b'', usedforsecurity=True): """ Return a new hash object using the named algorithm. An optional string argument may be provided and will be automatically hashed. The MD5 and SHA1 algorithms are always supported. """ pass def openssl_md5(string=b'', usedforsecurity=True): """ Returns a md5 hash object; optionally initialized with a string """ pass openssl_md_meth_names = None def openssl_sha1(string=b'', usedforsecurity=True): """ Returns a sha1 hash object; optionally initialized with a string """ pass def openssl_sha224(string=b'', usedforsecurity=True): """ Returns a sha224 hash object; optionally initialized with a string """ pass def openssl_sha256(string=b'', usedforsecurity=True): """ Returns a sha256 hash object; optionally initialized with a string """ pass def openssl_sha384(string=b'', usedforsecurity=True): """ Returns a sha384 hash object; optionally initialized with a string """ pass def openssl_sha3_224(string=b'', usedforsecurity=True): """ Returns a sha3-224 hash object; optionally initialized with a string """ pass def openssl_sha3_256(string=b'', usedforsecurity=True): """ Returns a sha3-256 hash object; optionally initialized with a string """ pass def openssl_sha3_384(string=b'', usedforsecurity=True): """ Returns a sha3-384 hash object; optionally initialized with a string """ pass def openssl_sha3_512(string=b'', usedforsecurity=True): """ Returns a sha3-512 hash object; optionally initialized with a string """ pass def openssl_sha512(string=b'', usedforsecurity=True): """ Returns a sha512 hash object; optionally initialized with a string """ pass def openssl_shake_128(string=b'', usedforsecurity=True): """ Returns a shake-128 variable hash object; optionally initialized with a string """ pass def openssl_shake_256(string=b'', usedforsecurity=True): """ Returns a shake-256 variable hash object; optionally initialized with a string """ pass def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): """ Password based key derivation function 2 (PKCS #5 v2.0) with HMAC as pseudorandom function. """ pass def scrypt(password, salt=None, n=None, r=None, p=None, maxmem=0, dklen=64): """ scrypt password-based key derivation function. """ pass