예제 #1
0
def xor_masking_C(network,state,steps):
    states = [boolfuncs_c.xor_masking_c(network.adjacency,network.mask,state)]
    for counter in xrange(steps-1):
        state = network.state[-1]
        newstate = boolfuncs_c.xor_masking_c(network.adjacency,network.mask,state)
        states = num.append(states,[newstate],axis=0)
    return states
예제 #2
0
def xor_masking_C(network, state, steps):
    states = [
        boolfuncs_c.xor_masking_c(network.adjacency, network.mask, state)
    ]
    for counter in xrange(steps - 1):
        state = network.state[-1]
        newstate = boolfuncs_c.xor_masking_c(network.adjacency, network.mask,
                                             state)
        states = num.append(states, [newstate], axis=0)
    return states