Skip to content

Commit 0f757a7

Browse files
committed
Version 0.7.2
1 parent 5e6e998 commit 0f757a7

File tree

324 files changed

+36026
-44831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+36026
-44831
lines changed

CHANGES.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 0.7.2 - September 1, 2022
2+
- Added library version retrieval functions
3+
std::string oqs::oqs_version()
4+
std::string oqs::oqs_cpp_version()
5+
- Bumped GoogleTest version to 1.12.1
6+
https://github.com/google/googletest/commit/58d77fa8070e8cec2dc1ed015d66b454c8d78850
7+
18
Version 0.7.1 - January 5, 2022
29
- Release numbering updated to match liboqs
310
- Integrated the unit tests with the main project, so now the unit tests

CMakeLists.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(oqs_cpp VERSION 0.7.1 LANGUAGES CXX)
2+
set(OQS_CPP_VERSION_NUM 0.7.2)
3+
set(OQS_CPP_VERSION_STR "${OQS_CPP_VERSION_NUM}")
4+
project(oqs_cpp VERSION ${OQS_CPP_VERSION_NUM} LANGUAGES CXX)
35

46
set(CMAKE_CXX_STANDARD 11)
57
set(CMAKE_CXX_STANDARD_REQUIRED ON)
68
enable_testing()
79

8-
# add all examples
10+
# liboqs-cpp version number
11+
add_definitions(-DOQS_CPP_VERSION="${OQS_CPP_VERSION_STR}")
12+
13+
# Add all examples
914
aux_source_directory(examples EXAMPLE_FILES)
1015

11-
# path to liboqs include and lib, modify as needed
16+
# Path to liboqs include and lib, modify as needed
1217
if (NOT WIN32)
1318
set(LIBOQS_INCLUDE_DIR "/usr/local/include" CACHE PATH
1419
"Path to liboqs include directory")
1520
set(LIBOQS_LIB_DIR "/usr/local/lib" CACHE PATH
1621
"Path to liboqs lib directory")
1722
else ()
18-
# increase the stack size to 8MB on Windows
23+
# Increase the stack size to 8MB on Windows
1924
if (MSVC)
2025
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:8388608")
2126
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_CXX_COMPILER_ID}
@@ -47,7 +52,7 @@ include_directories("include")
4752
include_directories(SYSTEM "${LIBOQS_INCLUDE_DIR}")
4853
link_directories("${LIBOQS_LIB_DIR}")
4954

50-
# default build type
55+
# Default build type
5156
if (NOT CMAKE_BUILD_TYPE)
5257
set(CMAKE_BUILD_TYPE Release CACHE STRING
5358
"Choose the type of build, options are: \
@@ -58,13 +63,13 @@ endif ()
5863
#### Unit testing
5964
add_subdirectory(unit_tests/)
6065

61-
# enable all warnings for GNU gcc and Clang/AppleClang
66+
# Enable all warnings for GNU gcc and Clang/AppleClang
6267
if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_CXX_COMPILER_ID}
6368
STREQUAL "GNU")
6469
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Weffc++")
6570
endif ()
6671

67-
# build all executables in ${EXAMPLE_FILES}
72+
# Build all executables in ${EXAMPLE_FILES}
6873
foreach (FILE ${EXAMPLE_FILES})
6974
get_filename_component(TARGET_NAME ${FILE} NAME_WE)
7075
add_executable(${TARGET_NAME} ${FILE})

Doxyfile

Lines changed: 336 additions & 183 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2020 Open Quantum Safe
3+
Copyright (c) 2019-2022 Open Quantum Safe
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ and [Michele Mosca](http://faculty.iqc.uwaterloo.ca/mmosca/) at the University
194194
of Waterloo.
195195

196196
liboqs-cpp was developed by [Vlad Gheorghiu](http://vsoftco.github.io) at
197-
evolutionQ and University of Waterloo.
197+
softwareQ Inc. and University of Waterloo.
198198

199199
### Support
200200

@@ -203,7 +203,7 @@ Amazon Web Services and the Canadian Centre for Cyber Security.
203203

204204
We'd like to make a special acknowledgement to the companies who have dedicated
205205
programmer time to contribute source code to OQS, including Amazon Web Services,
206-
evolutionQ, and Microsoft Research.
206+
evolutionQ, softwareQ, and Microsoft Research.
207207

208208
Research projects which developed specific components of OQS have been supported
209209
by various research grants, including funding from the Natural Sciences and

RELEASE.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
liboqs-cpp version 0.7.1
1+
liboqs-cpp version 0.7.2
22
========================
33

44
About
@@ -13,15 +13,14 @@ The **Open Quantum Safe (OQS) project** has the goal of developing and prototypi
1313
Release notes
1414
=============
1515

16-
This release of liboqs-cpp was released on January 5, 2022. Its release page on GitHub is https://github.com/open-quantum-safe/liboqs-cpp/releases/tag/0.7.1.
16+
This release of liboqs-cpp was released on September 1, 2022. Its release page on GitHub is https://github.com/open-quantum-safe/liboqs-cpp/releases/tag/0.7.2.
1717

1818
What's New
1919
----------
2020

21-
This is the ninth release of liboqs-cpp.
21+
This is the 10th release of liboqs-cpp.
2222

2323
This is an incremental minor change release.
2424

2525
For a list of changes
26-
see [CHANGES.txt](https://github.com/open-quantum-safe/liboqs-cpp/blob/main/CHANGES.txt)
27-
.
26+
see [CHANGES.txt](https://github.com/open-quantum-safe/liboqs-cpp/blob/main/CHANGES.txt).

examples/kem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
int main() {
1212
std::cout << std::boolalpha;
13+
std::cout << "liboqs version: " << oqs::oqs_version() << '\n';
14+
std::cout << "liboqs-cpp version: " << oqs::oqs_cpp_version() << '\n';
1315
std::cout << "Enabled KEMs:\n" << oqs::KEMs::get_enabled_KEMs();
1416

1517
std::string kem_name = "Kyber512";

examples/rand.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ int main() {
2121
entropy_seed[20] = 200;
2222
entropy_seed[47] = 150;
2323
oqs::rand::randombytes_nist_kat_init_256bit(entropy_seed);
24+
25+
std::cout << "liboqs version: " << oqs::oqs_version() << '\n';
26+
std::cout << "liboqs-cpp version: " << oqs::oqs_cpp_version() << '\n';
27+
2428
std::cout << std::setw(18) << std::left;
2529
std::cout << "NIST-KAT: " << oqs::rand::randombytes(32) << '\n';
2630

examples/sig.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
int main() {
1111
std::cout << std::boolalpha;
12+
std::cout << "liboqs version: " << oqs::oqs_version() << '\n';
13+
std::cout << "liboqs-cpp version: " << oqs::oqs_cpp_version() << '\n';
1214
std::cout << "Enabled signatures:\n" << oqs::Sigs::get_enabled_sigs();
1315

1416
oqs::bytes message = "This is the message to sign"_bytes;

include/common.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ using byte = std::uint8_t; ///< byte (unsigned)
2626
using bytes = std::vector<byte>; ///< vector of bytes (unsigned)
2727
using OQS_STATUS = C::OQS_STATUS; ///< bring OQS_STATUS into the oqs namespace
2828

29+
/**
30+
* \brief liboqs version string
31+
* \return liboqs version string
32+
*/
33+
inline std::string oqs_version() { return oqs::C::OQS_version(); }
34+
35+
/**
36+
* \brief liboqs-cpp version string
37+
* \return liboqs-cpp version string
38+
*/
39+
inline std::string oqs_cpp_version() { return OQS_CPP_VERSION; }
40+
2941
/**
3042
* \brief Sets to zero the content of \a v by invoking the liboqs
3143
* OQS_MEM_cleanse() function. Use it to clean "hot" memory areas, such as

0 commit comments

Comments
 (0)