arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.04138cs.CRcs.SE
收藏

论线性类型在编译期正确强制使用随机数(nonce)方面的有用性

On the usefulness of linear types for correct nonce use enforcement during compile time

Richard Ostertág

AI总结:

本文提出利用线性类型和静态类型检查,在编译期强制每次函数调用生成新的唯一随机数,以防止因 nonce 重用导致的安全漏洞。

摘要:

密码算法和协议通常需要唯一的随机数作为参数(例如随机数 nonce)。未能满足这一要求会导致实现存在漏洞,并可能造成安全破坏。我们展示了如何利用线性类型和静态类型检查来强制每次函数调用时正确生成新的唯一随机数。

英文摘要:

Cryptographic algorithms and protocols often need unique random numbers as parameters (e.g. nonces). Failure to satisfy this requirement lead to vulnerable implementation and can result in security breach. We show how linear types and static type checking can be used to enforce the correct generation of a new unique random number for each function invocation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑