def derive_openssl(key, salt):
    key = key[0:-16]
    key_and_iv = b('')
    prev = b('')
    while len(key_and_iv) < 32:
        prev = MD5.new(prev + key + salt).digest()  # ?
        key_and_iv += prev
    return key_and_iv[0:16], key_and_iv[16:]
dataset/ETHPy150Open Gr1N/1pwd/onepyssword/logic.py/derive_openssl/original