N
N
naruto_hokagi2018-04-12 11:07:32
Python
naruto_hokagi, 2018-04-12 11:07:32

How to implement the addition of a sequence of bits modulo 2 ^ 32?

I'm trying to implement GOST28147-89 in python, but I don't know how to implement modulo addition, can someone tell me)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2018-04-12
@res2001

What has xor already been disabled in python?
https://docs.python.org/3/reference/expressions.ht...

R
Ruslan., 2018-04-12
@LaRN

c = (a+b)%4294967296

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question