摘要: pair<int, int> generate() { return {1, 2}; } auto [a, b] = generate(); // a=1, b=2 在刷算法题时遇到这种写法,这种语法称为 “结构化绑定声明”(Structured binding declaration) 右值可以是 阅读全文
posted @ 2022-08-02 20:22 neumy 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Basing Cryptography on Intractable Computation read The Joy of Cryptography 如何定义一个安全的加密算法? 我们经常讨论如何进行加密,如何设计算法来从理论上保证“不可破解”。但是从实践上来说,假如对方能够以无限的算力来猜测,那 阅读全文
posted @ 2022-08-02 17:18 neumy 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Secret Sharing Scheme read from The Joy of Cryptography 定义:一个TSSS (t out-of n threshold secret-sharing scheme)包含了以下的一些操作: Share(拆分):随机性的,其需要能够将一条Messa 阅读全文
posted @ 2022-08-02 15:36 neumy 阅读(94) 评论(0) 推荐(0) 编辑