flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > ultimate xor use

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Furs



Joined: 04 Mar 2016
Posts: 2625
Furs 19 Apr 2025, 20:11
If you have a one-time pad, XOR is the most efficient way to encrypt/decrypt with it.
Post 19 Apr 2025, 20:11
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4227
Location: vpcmpistri
bitRAKE 20 Apr 2025, 05:21
bitRAKE's Complex:
Code:
        popcnt rcx, rax
        ror rax, cl ; eax/ax/al
        xor rax, rcx    
Obviously, in a loop, zero produces zero - a cycle of length of one.

A) Find RAX input producing cycles of other lengths: 2,3,4,...

B) We can see that for a complex of bit length N, that 2 is always a tail of cycle zero. This tail is of length one. For what N does the next longer tail of zero occur?

C) For a complex of bit length N, what is the longest tail length?
Post 20 Apr 2025, 05:21
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.