Skip to content

Commit eb55cbc

Browse files
committed
Version 0.12.0
Signed-off-by: Vlad Gheorghiu <vsoftco@gmail.com>
1 parent 377b54d commit eb55cbc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ C library, which is a C library for quantum-resistant cryptographic algorithms.
1515

1616
The wrapper is written in standard C++11, hence in the following it is assumed
1717
that you have access to a C++11 compliant compiler. liboqs-cpp has been
18-
extensively tested on Linux, macOS and Windows platforms. Continuous integration
19-
is provided via GitHub actions.
18+
extensively tested on Linux, macOS, FreeBSD and Windows platforms. Continuous
19+
integration is provided via GitHub actions.
2020

2121
The project contains the following files and directories:
2222

include/oqs_cpp.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,10 @@ class Signature {
655655
* \return Message signature
656656
*/
657657
bytes sign_with_ctx_str(const bytes& message, const bytes& context) const {
658+
if (!context.empty() && !alg_details_.sig_with_ctx_support)
659+
throw std::runtime_error(
660+
"Signing with context string not supported");
661+
658662
if (secret_key_.size() != alg_details_.length_secret_key)
659663
throw std::runtime_error(
660664
"Incorrect secret key length, make sure you "
@@ -710,6 +714,10 @@ class Signature {
710714
bool verify_with_ctx_str(const bytes& message, const bytes& signature,
711715
const bytes& context,
712716
const bytes& public_key) const {
717+
if (!context.empty() && !alg_details_.sig_with_ctx_support)
718+
throw std::runtime_error(
719+
"Verifying with context string not supported");
720+
713721
if (public_key.size() != alg_details_.length_public_key)
714722
throw std::runtime_error("Incorrect public key length");
715723

0 commit comments

Comments
 (0)