Tu-Deng 函数

Tu-Deng Conjecture论文下载
论文名称:A conjecture about binary strings and its applications on constructing Boolean functions with optimal algebraic immunity
1. Tu-Deng Conjecture
这里写图片描述
2. Construction1
这里写图片描述
这里写图片描述
3. Construction1 optimal algebraic immunity n/2
4.Construction1 Algebraic degree n/2
5. Construction1 Bent Function

//此为magma代码
//计算涂邓猜想构造1函数非线性度
//k:=2;
for k:=1 to 12 by 1 do
G<x>:=GF(2,k);
Z:=IntegerRing();
g:=[];
for tt:=0 to 2^k-2 by 1 do //初始化g的真值表全为0
bin1:=Eltseq(x^tt, GF(2)); toInt1 := [Z | bin1 [j] : j in {1.. k by 1}];
k1:=&+[toInt1[i]*(2^(i-1)): i in [1..k]]; g[k1]:=0;
end for;
for tt:=0 to 2^(k-1)-1 by 1 do //根据g的支撑架生成g的真值表
bin2:=Eltseq(x^tt, GF(2)); toInt2 := [Z | bin2 [j] : j in {1.. k by 1}];
k2:=&+[toInt2[i]*(2^(i-1)): i in [1..k]]; g[k2]:=1;
end for;
//g:=[0] cat g;
n:=2*k;
F<w>:=GF(2,n);
f:=[];
for tt:=0 to 2^n-2 by 1 do //初始化f的真值表全为0
bin3:=Eltseq(w^tt, GF(2)); toInt3 := [Z | bin3 [j] : j in {1.. n by 1}];
k3:=&+[toInt3[i]*(2^(i-1)): i in [1..n]]; f[k3]:=0;
end for;
for tt:=0 to 2^k-2 by 1 do //由f(x,y)=g(xy^(2^k-2))生成f的真值表
    for dd:=0 to 2^k-2 by 1 do 
    bin4:=Eltseq(x^tt, GF(2)); toInt4 := [Z | bin4 [j] : j in {1.. k by 1}];
    bin5:=Eltseq(x^dd, GF(2)); toInt5 := [Z | bin5 [j] : j in {1.. k by 1}];
    bin6:=Eltseq(x^(tt+dd*(2^k-2)), GF(2)); toInt6 := [Z | bin6 [j] : j in {1.. k by 1}];
    toIntw:=toInt4 cat toInt5;
    k4:=&+[toIntw[i]*(2^(i-1)): i in [1..n]]; 
    k5:=&+[toInt6[i]*(2^(i-1)): i in [1..k]];
    value:=g[k5];
    f[k4]:=value;
    end for;
end for;
f**重点内容**:=[0] cat f;
a:= [1-2*f[i]:i in [1..2^n]];
for tt:=1 to n by 1 do // butterfly algorithm
    t:=2^n div 2^tt;
for j:=0 to 2^tt-1 by 2 do
for l:=1 to t by 1 do
        a[t*j+l]:=a[t*j+l]+a[t*(j+1)+l];
        a[t*(j+1)+l]:=a[t*j+l]-2*a[t*(j+1)+l];
end for;
end for;
end for;
b:=[Abs (a[i]):i in [1..2^n]];
nl:=2^(n-1)-Max(b) div 2;
nl;
end for;
#单变元表示sagemath代码
from sage.crypto.boolean_function import BooleanFunction
k=4
n=2*k
F.<v>=GF(2^n)
f=[0]*(2^n)
suppfg=[x for x in range(2^(k-1))]
for i in range(2^k):
    for j in range(2^k):
        modij=(i-j) % (2^k-1)
        if modij in  suppfg:
            k1=(v^((2^k+1)*i)+(v^(2^k-1)*v^((2^k+1)*j))).integer_representation()
            f[k1]=1

B=BooleanFunction(f)
B.nonlinearity()

6. Construction 2
这里写图片描述
7.Construction2 optimal algebraic immunity n/2
8.the low bound of nonlinearity
这里写图片描述
9.the real value of Construction2 nonlinearity

//此为magma代码
//计算涂邓猜想构造2函数非线性度
//k:=3;
for k:=2 to 12 by 1 do 
G<x>:=GF(2,k);
Z:=IntegerRing();
g:=[];
for tt:=0 to 2^k-2 by 1 do //初始化g的真值表全为0
bin1:=Eltseq(x^tt, GF(2)); toInt1 := [Z | bin1 [j] : j in {1.. k by 1}];
k1:=&+[toInt1[i]*(2^(i-1)): i in [1..k]]; g[k1]:=0;
end for;
for tt:=0 to 2^(k-1)-1 by 1 do //根据g的支撑架生成g的真值表
bin2:=Eltseq(x^tt, GF(2)); toInt2 := [Z | bin2 [j] : j in {1.. k by 1}];
k2:=&+[toInt2[i]*(2^(i-1)): i in [1..k]]; g[k2]:=1;
end for;
//g:=[0] cat g;
n:=2*k;
F<w>:=GF(2,n);
f:=[];
for tt:=0 to 2^n-2 by 1 do //初始化f的真值表全为0
bin3:=Eltseq(w^tt, GF(2)); toInt3 := [Z | bin3 [j] : j in {1.. n by 1}];
k3:=&+[toInt3[i]*(2^(i-1)): i in [1..n]]; f[k3]:=0;
end for;
for tt:=0 to 2^k-2 by 1 do //由f(x,y)=g(xy^(2^k-2))//生成f的真值表
    for dd:=0 to 2^k-2 by 1 do 
    bin4:=Eltseq(x^tt, GF(2)); toInt4 := [Z | bin4 [j] : j in {1.. k by 1}];
    bin5:=Eltseq(x^dd, GF(2)); toInt5 := [Z | bin5 [j] : j in {1.. k by 1}];
    bin6:=Eltseq(x^((tt+dd*(2^k-2)) mod (2^k-1)), GF(2)); toInt6 := [Z | bin6 [j] : j in {1.. k by 1}];
    toIntw:=toInt4 cat toInt5;
    k4:=&+[toIntw[i]*(2^(i-1)): i in [1..n]]; 
    k5:=&+[toInt6[i]*(2^(i-1)): i in [1..k]];
    value:=g[k5];
    f[k4]:=value;
    end for;
end for;

for dd:=2^(k-1)-1 to 2^k-2 by 1 do //当x=0,y属于{x^i|i=2^(k-1)-1,...2^k-2};
    bin7:=Eltseq(x^dd, GF(2)); toInt7 := [Z | bin7 [j] : j in {1.. k by 1}];
    k7:=&+[toInt7[i]*(2^(i-1)): i in [1..k]]; f[k7]:=1;
end for;
f:=[0] cat f;
a:= [1-2*f[i]:i in [1..2^n]];
for tt:=1 to n by 1 do // butterfly algorithm
    t:=2^n div 2^tt;
for j:=0 to 2^tt-1 by 2 do
for l:=1 to t by 1 do
        a[t*j+l]:=a[t*j+l]+a[t*(j+1)+l];
        a[t*(j+1)+l]:=a[t*j+l]-2*a[t*(j+1)+l];
end for;
    end for;
end for;
b:=[Abs (a[i]):i in [1..2^n]];
nl:=2^(n-1)-Max(b) div 2;
nl;
end for;
#此为sagemath代码
from sage.crypto.boolean_function import BooleanFunction
k=13
n=2*k
g.<w>=GF(2^k)
g=[0]*(2^k)
for tt in range(0,2^(k-1)):
    g[(w^tt).integer_representation()]=1
f=[0]*(2^n)
#x!=0,y!=0
for tt in range(0,2^k-1):
    for dd in range(0,2^k-1):
        k1=((w^tt)*(w^(dd*(2^k-2)))).integer_representation()
       # k1=(w^(tt+dd)).integer_representation()
        k2=((w^tt).integer_representation())*(2^k)+(w^dd).integer_representation()
        f[k2]=g[k1]

#x=0,y属于{(alpha)^i|i=2^(k-1)-1,...,2^k-2}
for tt in range(2^(k-1)-1,2^k-1):
    k3=(w^tt).integer_representation()
    f[k3]=1

B=BooleanFunction(f)
B.nonlinearity()

程序计算结果
这里写图片描述
10. construction2 Immunity against fast algebraic attacks
n=4: (1,1)
n=6: (1,3),(2,3)
n=8: (1,4),(2,4),(3,3)
n=10: (1,5),(2,5),(3,5),(4,4)
n=12: (1,6),(2,6),(3,6),(4,6),(5,5)
抵抗快速代数攻击能力比较差,特别是e比较小的情况下

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MATLAB是一种高级的计算机编程语言和环境,用于数值计算、数据分析、绘图和模拟。它具有丰富的函数库,可以用于各种不同的领域和应用。在你的引用中,有几个与MATLAB函数相关的内容。 引用中的MATLAB代码展示了如何使用heaviside函数在MATLAB中进行傅里叶变换和逆傅里叶变换。heaviside函数是一个阶跃函数,当输入大于等于零时为1,否则为0。 引用提到了一门名为"Computer Programming with MATLAB"的课程,并在Coursera上提供有中文字幕的教学视频。这门课程旨在教授使用MATLAB进行计算机编程。 引用中展示了如何使用MATLAB生成一个信号,该信号是一个单位阶跃函数u(t-1),在t=1时从0跃变到1。通过定义x的范围和步长,使用heaviside函数将x-1作为输入,可以生成一个包含u(t-1)信号的图形。 综上所述,MATLAB是一门强大的计算机编程语言和环境,它具有丰富的函数库,可以用于各种数值计算、数据分析和模拟。您可以使用MATLAB中的函数来执行各种操作,如傅里叶变换、生成信号等。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [MATLAB以符号形式表示门函数的傅里叶正反变换。](https://blog.csdn.net/Deng7326/article/details/127817987)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [matlab函数教学 视频 有中文字幕](https://download.csdn.net/download/github_37412255/10115543)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [Matlab中产生门函数----Heaviside函数的调用方法](https://blog.csdn.net/weixin_43790761/article/details/124892389)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值