How Usable Are Rust Cryptography APIs?
Authors:
- Kai MindermannKMKai Mindermann
- Philipp KeckPKPhilipp Keck
- Stefan WagnerStefan Wagner
- 1 July 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 143-154
Abstract
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.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- Usability and Security Effects of Code Examples on Crypto APIs2018
- Comparing the Usability of Cryptographic APIs2017
- Developers are Not the Enemy!: The Need for Usable Security APIsIEEE Security & Privacy, 2016
- Are easily usable security libraries possible and how should experts work together to create them?2016
- Why does cryptographic software fail?2014
- Rethinking SSL development in an appified world2013
- An empirical study of cryptographic misuse in android applications2013
- Why eve and mallory love android2012
- The most dangerous code in the world2012