Guest User

Untitled

a guest
Feb 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. F2X.<x> = GF(2)[]
  2. aespoly = x^8 + x^4 + x^3 + x + 1
  3. f256.<a> = GF(256, modulus=aespoly)
  4. 2*f256(1) # 0
  5.  
  6. (a+1)^255 # 1
  7.  
  8. (a+1)^(255/3) # a^7 + a^5 + a^4 + a^3 + a^2 + 1
  9.  
  10. a.minpoly()
  11.  
  12. a.minpoly().factor()
  13.  
  14. (x^64 + 1).factor()
  15.  
  16. (x^1000 + x^678 + x^2 + 1).factor()
Add Comment
Please, Sign In to add comment