summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/isa-l-crypto/package.py
blob: 35748d41d60a37c6615baf423dab0f58677b5040 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 2013-2023 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.package import *


class IsaLCrypto(AutotoolsPackage):
    """ISA-L_crypto is a collection of optimized low-level functions
    targeting storage applications. ISA-L_crypto includes:

    - Multi-buffer hashes - run multiple hash jobs together on one
      core for much better throughput than single-buffer versions.
      + SHA1, SHA256, SHA512, MD5
    - Multi-hash - Get the performance of multi-buffer hashing with
      a single-buffer interface.
    - Multi-hash + murmur - run both together.
    - AES - block ciphers
      + XTS, GCM, CBC
    - Rolling hash - Hash input in a window which moves through the input
    """

    homepage = "https://github.com/intel/isa-l_crypto"
    url = "https://github.com/intel/isa-l_crypto/archive/v2.22.0.tar.gz"
    git = "https://github.com/intel/isa-l_crypto.git"
    maintainers("hyoklee")

    license("BSD-3-Clause")

    version("master", branch="master")

    # Current
    version("2.24.0", sha256="1b2d5623f75c94562222a00187c7a9de010266ab7f76e86b553b68bb654d39be")
    version("2.23.0", sha256="4827bc3e281d19a434deaa17a172f22f38c113ffc65f5df4348062165cb89eb8")
    version("2.22.0", sha256="c6503b455bdf0efcad74fdae4e9b30465e0e208cff2b0b34fd8f471553455527")

    depends_on("autoconf", type="build")
    depends_on("automake", type="build")
    depends_on("libtool", type="build")
    depends_on("m4", type="build")
    depends_on("yasm@1.2.0:", type="build")
    depends_on("nasm@2.13:", type="build")

    def configure_args(self):
        config_args = ["--enable-shared"]

        return config_args