summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-11-14 17:04:08 +0800
committerGitHub <noreply@github.com>2020-11-14 10:04:08 +0100
commit4a75871d7015c72e7d10b1464859cd5b61c8c840 (patch)
tree1a3232681e518f4eb6ed309cc9c08817d08f8fb7 /var
parent2c43cf5b222598a4779939de185800b42d775408 (diff)
downloadspack-4a75871d7015c72e7d10b1464859cd5b61c8c840.tar.gz
spack-4a75871d7015c72e7d10b1464859cd5b61c8c840.tar.bz2
spack-4a75871d7015c72e7d10b1464859cd5b61c8c840.tar.xz
spack-4a75871d7015c72e7d10b1464859cd5b61c8c840.zip
argon2: new package at v20190702 (#19917)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/argon2/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/argon2/package.py b/var/spack/repos/builtin/packages/argon2/package.py
new file mode 100644
index 0000000000..6d5e1abf04
--- /dev/null
+++ b/var/spack/repos/builtin/packages/argon2/package.py
@@ -0,0 +1,23 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Argon2(MakefilePackage):
+ """Argon2 is a password-hashing function that summarizes the state
+ of the art in the design of memory-hard functions and can be used
+ to hash passwords for credential storage, key derivation, or other
+ applications."""
+
+ homepage = "https://password-hashing.net/"
+ url = "https://github.com/P-H-C/phc-winner-argon2/archive/20190702.tar.gz"
+
+ version('20190702', sha256='daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c')
+ version('20171227', sha256='eaea0172c1f4ee4550d1b6c9ce01aab8d1ab66b4207776aa67991eb5872fdcd8')
+ version('20161029', sha256='fe0049728b946b58b94cc6db89b34e2d050c62325d16316a534d2bedd78cd5e7')
+
+ def install(self, spec, prefix):
+ make('PREFIX={0}'.format(prefix), 'install')