textproc/p5-String-Compare-ConstantTime 0.321nb7 NetBSD
Perl5 module for timing side-channel protected string compare
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- textproc, perl5
- Package size
- 10.3 KiB, 23.4 KiB installed
Description
This module provides one function, equals (not exported by default).
You should pass this function two strings of the same length. It will return true if they are string-wise identical and false otherwise, just like eq. However, comparing any two differing strings will take a fixed amount of time, unlike eq.
NOTE: If the lengths of the strings are different, equals will return false right away.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | textproc/p5-String-Compare-ConstantTime | 0.321nb7 |
| FreeBSD | textproc/p5-String-Compare-ConstantTime | 0.321 |
| DragonFly | textproc/p5-String-Compare-ConstantTime | 0.321 |
Install
Binary package:
pkgin install p5-String-Compare-ConstantTime
From pkgsrc:
cd /usr/pkgsrc/textproc/p5-String-Compare-ConstantTime && make install clean