INNER CODE UNIT · Python

build_random_key_derivation

KnifeXRage/Godot-Secure · Godot Secure Scripts/universal/Godot Secure AES-256 Universal v6.py:55

def build_random_key_derivation():
    operands = ["key_ptr[i]", "Security::TOKEN[i]"]

    base_ops = [
        "({a} ^ {b})",
        "({a} + {b})",
        "({a} | {b})",
        "({a} & {b})",
        "(({a} << {shift}) | ({a} >> {rshift}))",
        "(({a} ^ {b}) + {const})",
        "(({a} + {b}) ^ {const})",
    ]

    chain_ops = [
        "({expr} ^ {value})",
        "({expr} + {value})",
        "({expr} | {value})",
        "(({expr} << {shift}) | ({expr} >> {rshift}))",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…