1*fea2d86aSMarcel Cornu /**********************************************************************
2*fea2d86aSMarcel Cornu Copyright(c) 2024 Intel Corporation All rights reserved.
3*fea2d86aSMarcel Cornu
4*fea2d86aSMarcel Cornu Redistribution and use in source and binary forms, with or without
5*fea2d86aSMarcel Cornu modification, are permitted provided that the following conditions
6*fea2d86aSMarcel Cornu are met:
7*fea2d86aSMarcel Cornu * Redistributions of source code must retain the above copyright
8*fea2d86aSMarcel Cornu notice, this list of conditions and the following disclaimer.
9*fea2d86aSMarcel Cornu * Redistributions in binary form must reproduce the above copyright
10*fea2d86aSMarcel Cornu notice, this list of conditions and the following disclaimer in
11*fea2d86aSMarcel Cornu the documentation and/or other materials provided with the
12*fea2d86aSMarcel Cornu distribution.
13*fea2d86aSMarcel Cornu * Neither the name of Intel Corporation nor the names of its
14*fea2d86aSMarcel Cornu contributors may be used to endorse or promote products derived
15*fea2d86aSMarcel Cornu from this software without specific prior written permission.
16*fea2d86aSMarcel Cornu
17*fea2d86aSMarcel Cornu THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18*fea2d86aSMarcel Cornu "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19*fea2d86aSMarcel Cornu LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20*fea2d86aSMarcel Cornu A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21*fea2d86aSMarcel Cornu OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22*fea2d86aSMarcel Cornu SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23*fea2d86aSMarcel Cornu LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24*fea2d86aSMarcel Cornu DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25*fea2d86aSMarcel Cornu THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26*fea2d86aSMarcel Cornu (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27*fea2d86aSMarcel Cornu OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*fea2d86aSMarcel Cornu **********************************************************************/
29*fea2d86aSMarcel Cornu
30*fea2d86aSMarcel Cornu #include <stdlib.h>
31*fea2d86aSMarcel Cornu #include "isal_crypto_api.h"
32*fea2d86aSMarcel Cornu
33*fea2d86aSMarcel Cornu /* Set library version */
34*fea2d86aSMarcel Cornu const char *isal_crypto_version_str = ISAL_CRYPTO_VERSION_STR;
35*fea2d86aSMarcel Cornu const unsigned isal_crypto_version = ISAL_CRYPTO_VERSION;
36*fea2d86aSMarcel Cornu
37*fea2d86aSMarcel Cornu const char *
isal_crypto_get_version_str(void)38*fea2d86aSMarcel Cornu isal_crypto_get_version_str(void)
39*fea2d86aSMarcel Cornu {
40*fea2d86aSMarcel Cornu return isal_crypto_version_str;
41*fea2d86aSMarcel Cornu }
42*fea2d86aSMarcel Cornu
43*fea2d86aSMarcel Cornu unsigned
isal_crypto_get_version(void)44*fea2d86aSMarcel Cornu isal_crypto_get_version(void)
45*fea2d86aSMarcel Cornu {
46*fea2d86aSMarcel Cornu return isal_crypto_version;
47*fea2d86aSMarcel Cornu }
48