This project aims at using the Ring Oscillator as a Physical Unclonable Function (PUF) for the password management scheme.
You can find the report published on Arxiv at this link.
The goal is to use the Physical behavior of a Ring Oscillator (RO) such as reistance and capacitance values to generate random frequencies. Later, these frequencies were used for the comparison to generate binary stream. The binary stream is given to a hash function to generate a hash value. In authentication, if the hash value is different from what registered before then it doesn't if the password is the same or not. Since, it means the device is different, it is not going to authenticate with that.
The RO is implemented in both hardware and software (simulation). A Raspberry Pi is used to measure the frequuency of different channels and extract the exact value. Later, those values are given to a server(Laptop or PC) from the Raspberry Pi to generate the binary stream and the hash value. Also, the password management scheme is implemented in the Computer. The interface between the Computer and the Raspberry Pi is TCP/IP using CAT5/6 cable. The IP addresses are set manually in both R Pi and PC. This design is demonstrated here:
To analyze the RO, first, we developed that in a simulation environment (Proteus Environment) to import electronics components such as rasistrors, MUX, DE-MUX, Capacitors, Op-Amps, NAND gates, Inverters, etc. The simulation environment is Proteus Labcenter. It is possible to implement that in other simulators as well. The design is depicted in:
Also, the file is available here at Design.
To implement the RO on breadboard, we used different ressistors, capacitors, and ICs of 74HC04 and 74HC00 for NOT and NAND gates. The structure of this RO is displayere here:
To read the frequency values from the hardware and compare it with the Raspberry Pi measurement, we used a logic analyzer for different channels. Here is the output of the logic analyzer displayed in computer via a USB interface:
This logic analyzer is available on many websites such as Amazon: HiLetgo USB Logic Analyzer Device With EMI Ferrite Ring USB Cable 24MHz 8CH 24MHz 8 Channel UART IIC SPI Debug.
- os
- time
- socket
- RPi.GPIO
- DataHash
- The Python file is used on Raspberry Pi to read the output of the hardware for different channel of frequencies. This file is called calculate.py.
- The password management scheme is implemented in Matlab and called passwordMngmnt.m.
- To generate the hash value, we used an available hash function from math works DataHash.m. However, a new version of this hash function is available on MathWorks.
The Graphical User Interface (GUI) is designed in Matlab for the user to test the password management scheme. The designed GUI is demonstrated here:
The design file is called tutorialApp.mlapp.
If you find the code or the article useful, please cite our paper using this BibTeX:
@article{shamsoshoara2019ring,
title={Ring oscillator and its application as physical unclonable function (puf) for password management},
author={Shamsoshoara, Alireza},
journal={arXiv preprint arXiv:1901.06733},
year={2019}
}