I hereby claim:
- I am computator on github.
- I am rlifshay (https://keybase.io/rlifshay) on keybase.
- I have a public key whose fingerprint is 5FB1 B3B3 C8E9 5665 CCD6 0088 ADC0 D1AE 5D36 4431
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function const_time_strcmp($a, $b) { | |
// inputs must be strings | |
if(!is_string($a) || !is_string($b)) | |
return false; | |
// strings must be the same length | |
if(strlen($a) !== strlen($b)) | |
return false; | |
// result will be all zero if values are equal | |
$c = $a ^ $b; | |
// add up the byte values. if result is zero then strings are identical |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
# disable serial port to increase boot speed | |
config.vm.provider "virtualbox" do |v| | |
v.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ] | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update |