Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question #6

Closed
BingleiM opened this issue Jan 13, 2020 · 2 comments
Closed

question #6

BingleiM opened this issue Jan 13, 2020 · 2 comments

Comments

@BingleiM
Copy link

BingleiM commented Jan 13, 2020

谢谢

@muzipiao
Copy link
Owner

  1. 首先 C2 是密文长度,长度和原文长度相等,原文32字节,则C2长度32字节(16 进制编码后 64 字节),所以 C2 是没办法固定的;
  2. C1 长度是椭圆曲线上的一个随机点,每个点是 BigNum 类型,BigNum 转 16 进制编码为 64 字节,所以 C1 长度(16进制编码方式)固定为 128 字节,16进制解码后就变为 64 字节了。
  3. C3 是 Hash 值,固定长度 32 字节,转 Hex 编码(16 进制)后为固定 64 字节。

@muzipiao
Copy link
Owner

muzipiao commented Jan 14, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants