Python Args By Reference

Paul Rubin http
Wed May 11 01:58:01 EDT 2005


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>     state = [A,B,C,D,E,F,G,H]
>     magic = [0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 
>              0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, 0xD807AA98 ]
> 
>     def P(state, i, magic):
>        a,b,c,d,e,f,g,h = state[i:] + state[:i]
>        temp1 = h + S3(e) + F1(e,f,g) + K + x

Woops, K is supposed to say magic[i].  



More information about the Python-list mailing list