other.sdes ========== .. py:module:: other.sdes Attributes ---------- .. autoapisummary:: other.sdes.key Functions --------- .. autoapisummary:: other.sdes.apply_sbox other.sdes.apply_table other.sdes.function other.sdes.left_shift other.sdes.xor Module Contents --------------- .. py:function:: apply_sbox(s, data) .. py:function:: apply_table(inp, table) >>> apply_table("0123456789", list(range(10))) '9012345678' >>> apply_table("0123456789", list(range(9, -1, -1))) '8765432109' .. py:function:: function(expansion, s0, s1, key, message) .. py:function:: left_shift(data) >>> left_shift("0123456789") '1234567890' .. py:function:: xor(a, b) >>> xor("01010101", "00001111") '01011010' .. py:data:: key