multell.m

来自「vigenere密码解密的matlab实现」· M 代码 · 共 33 行

M
33
字号
function y = multell(p,M,a,b,n);% This function prints the Mth multiple of p on the elliptic%  curve with coefficients a and b mod n.z1=M;y=[inf inf];while (z1 ~=0),    while (mod(z1,2) ==0),        z1=(z1/2);        p=addell(p,p,a,b, n)        if (length(p)==0),           y=[];           disp('Multell found a factor of n and exited');           z1           return;        end;    end;  %end while    z1=z1-1;    y=addell(y,p,a,b,n)    if (length(y)==0),       disp('Multell found a factor of n and exited');       z1       return;     end; end;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?