Advertisement
AnthonyCagliano

Untitled

Mar 28th, 2023
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. lea hl, ix - 16 ; tmp in hl
  2. ld b, 16
  3. or a ; reset carry
  4. .loop_mul2:
  5. rl (hl)
  6. inc hl
  7. djnz .loop_mul2
  8.  
  9. ; now xor with polynomial if tmp degree too high
  10. ; method below is constant-time
  11.  
  12. sbc a, a
  13. and a, 10000111b
  14. xor a, (ix - 16)
  15. ld (ix - 16), a
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement