2012年6月26日

模逆stein算法(sram)

摘要: input:two integers u,moutput:u inv mod ms1:if u and m are both even, then no inv,over; else if m is even, swap u and m,f <=1;s2:n1<=u, n2 <= m, a1 <=1, b1 <=0 ,a2 <= 0,b2 <=1;s3:if n1 is even, then "if a1 is even, then s4; else s5"; else s6;s4:n1 <= n1 /2, a1<=a1 阅读全文

posted @ 2012-06-26 08:35 好记性不如烂笔头 阅读(540) 评论(0) 推荐(0) 编辑

导航