Threefish cipher objects have two methods:
In addition they have the following attributes:
Encryption and decryption of a block of 32 bytes:
>>> from skein import threefish
>>> t = threefish(b'key of 32,64 or 128 bytes length', b'tweak: 16 bytes ')
>>> t.block_size, t.block_bits
(32, 256)
>>> c = t.encrypt_block(b'block of data,same length as key')
>>> c
b'\x1c\xbf\x83\xbeoW\xd8\xe0f\xba\xb2\xea\x0e\x91\x0b\n\x06,\xd5:\x97\x9a\x11IaEGM\xc0\xe8\x9e\x86'
>>> t.decrypt_block(c)
b'block of data,same length as key'
Changing the tweak leads to a different cipher text:
>>> t.tweak = b'some other tweak'
>>> c = t.encrypt_block(b'block of data,same length as key')
>>> c
b'3gE(9X|_\xab\x87\xe5\xc7\xcc\xa6m\xc4e\x06\xcb\xdbBg\xf2\xe6A\xb9\x86o\xecW\xe6\xfd'
>>> t.decrypt_block(c)
b'block of data,same length as key'