Rust Cryptography API的可用性如何?
How Usable are Rust Cryptography APIs?
摘要:
上下文:加密API的可用性差是漏洞的严重来源。目的:我们想知道Rust中存在什么样的加密库以及它们的可用性。方法:我们通过系统搜索探索了Rust的加密库,对主要库进行了探索性研究,并对其中两个库进行了有28名学生参与的对照实验。结果:只有一半的主要库明确关注可用性和防误用性,这反映在它们当前的API中。我们发现,参与者使用rust-crypto更成功,我们认为rust-crypto在实验前比ring可用性更低。结论:我们讨论了API设计见解,并就文档的细节和结构、作为现有低级库包装器的高级API以及用于改进Rust新兴加密库的精选高质量示例代码,为Rust中加密库的设计提出了建议。
英文摘要:
Context: Poor usability of cryptographic APIs is a severe source of vulnerabilities. Aim: We wanted to find out what kind of cryptographic libraries are present in Rust and how usable they are. Method: We explored Rust's cryptographic libraries through a systematic search, conducted an exploratory study on the major libraries and a controlled experiment on two of these libraries with 28 student participants. Results: Only half of the major libraries explicitly focus on usability and misuse resistance, which is reflected in their current APIs. We found that participants were more successful using rust-crypto which we considered less usable than ring before the experiment. Conclusion: We discuss API design insights and make recommendations for the design of crypto libraries in Rust regarding the detail and structure of the documentation, higher-level APIs as wrappers for the existing low-level libraries, and selected, good-quality example code to improve the emerging cryptographic libraries of Rust.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。