Nettle C Program for generating pbkdf2-sha512 hash
All checks were successful
Run tests / run_tests (push) Successful in 1m15s
All checks were successful
Run tests / run_tests (push) Successful in 1m15s
This commit is contained in:
parent
3ec207ea9b
commit
b7fdfe57e6
5 changed files with 184 additions and 0 deletions
20
modules/pbkdf2-sha512.nix
Normal file
20
modules/pbkdf2-sha512.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{pkgs ? import <nixpkgs> {}, ...}:
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
name = "genhash";
|
||||
version = "69.0.0";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gcc
|
||||
nettle
|
||||
];
|
||||
|
||||
phases = ["buildPhase"];
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out
|
||||
gcc $src -o $out/${name} -lnettle
|
||||
echo $out
|
||||
'';
|
||||
|
||||
src = ./pbkdf2-sha512.c;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue