[C.C++] ecc c语言实现,ECC加密算法C实现.docx

717 0
Honkers 2025-3-7 19:52:21 | 显示全部楼层 |阅读模式

using System;

using System.Collections.Generic;

using System.Globalization;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication3

{

class Class1

{

point A = new point(11, 4);

point B = new point(120, 41);//公钥

public const int k = 9;

public const int a = 5;

public const int b = 37;

public const int p = 127;

public const int r = 7;

public struct point

{

public int x;

public int y;

public point(int x, int y)

{

this.x = x;

this.y = y;

}

public point(point p)

{

this.x = p.x;

this.y = p.y;

}

}

public int getX_1(int x, int mod)

{

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Honkers

荣誉红客

关注
  • 4009
    主题
  • 36
    粉丝
  • 0
    关注
这家伙很懒,什么都没留下!

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行