ISARA Radiate Security Solution Suite Toolkit Edition 1.5

The ISARA Radiate Security Solution Suite provides a set of cryptographic primitives that let you develop software resistant to attacks by quantum computers. These primitives include:

  • Hash algorithms:

    • BLAKE2b (256 bit and 512 bit)

    • SHA2 (Secure Hash Algorithm 2; 256 bit, 384 bit and 512 bit)

    • SHA3 (Secure Hash Algorithm 3; 256 bit and 512 bit)

  • Message authentication codes:

    • HMAC (Hash based Message Authentication Code)

    • Poly1305

  • Random number generators:

    • HMAC-DRBG (HMAC Deterministic Random Bit Generator)

    • SHAKE (128 bit and 256 bit)

  • Key derivation functions:

    • RFC-5869

    • NIST SP 800-56A Alternative 1 Concatenation

    • PBKDF2 (Password Based Key Derivation Function 2)

  • Digital signature schemes:

    • Dilithium

    • HSS (Hierarchical Signature Scheme)

    • Rainbow

    • XMSS (eXtended Merkle Signature Scheme)

  • Key agreement schemes:

    • ECDH (supporting NIST P256, P384, P521, and Curve25519)

    • FrodoDH

    • LUKE (Lattice based Unique Key Establishment)

    • NewHopeDH

    • SIDH (Supersingular Isogeny Diffie-Hellman)

  • Key encapsulation mechanisms:

    • FrodoKEM

    • Kyber

    • McEliece QC-MDPC (Quasi-Cyclic Moderate Density Parity-Check)

    • NTRUPrime

    • SIKE (Supersingular Isogeny Key Exchange)

  • Symmetric cipher:

    • ChaCha20 symmetric

Change Log

Changes Since 1.4

New features:

  • HSS and XMSS now support the BDS tree strategy, resulting is significantly smaller private keys and a separate state at the cost of more processing time during Sign() operations. There’s also a verify-only strategy for efficiently verifying signatures.

  • HSS and XMSS now support detaching subsets of the private key’s state; this lets you split the range of one-time signatures. Refer to the Developer’s Guide for details.

  • Rainbow now supports six variants.

  • The library now supports a watchdog callback for long-running operations.

  • Library version information is now exposed in iqr_version.h, and a function has been added to verify that your library matches the headers you’re using. The version sample demonstrates this.

  • Hash: SHA2-384

  • Key agreement scheme: FrodoDH

  • Key encapsulation mechanisms: FrodoKEM, SIKE

  • SIDH now supports both the p503 and p751 variants.

Changed features:

  • The signature scheme formerly known as LMS is now HSS, and is compatible with the IETF draft. Currently only one level of hyper-tree is supported.

  • HSS implementation updated to version 13 of the IETF draft specification.

  • XMSS is now compatible with the IETF RFC.

  • HSS and XMSS now manage their own state rather than requiring the user to manage an index. This state needs to be stored safely after every Sign() operation (or every Detach() operation if you’re splitting state).

  • Rainbow key generation is now significantly faster.

  • Several algorithms have been updated to be compatible with the NIST competition submissions: Dilithium, Kyber, NTRUPrime, Rainbow

  • The NIST SP 800-56A Alternative 1 KDF is now known as NIST SP 800-56C Option 1 due to a new release of that specification.

  • Clarified that the McEliece QC-MDPC KEM is CPA secure but not CCA2 secure.

Changes Since 1.3

New features:

  • Digital signature scheme: XMSS

Changed features:

  • Significantly faster SIDH implementation.

  • LMS implementation updated to version 8 of the IETF draft specification.

  • KDF APIs marked "Deprecated"; they’ll receive a "generic" KDF API (to allow streaming) in a future toolkit release.

Changes Since 1.2

New features:

  • Digital signature schemes: Dilithium, Rainbow

  • Hash: BLAKE2b (256 bit and 512 bit)

  • Key agreement schemes: ECDH, SIDH

  • Key encapsulation mechanisms: Kyber, McEliece QC-MDPC, NTRUPrime

  • FIPS 140 certification (Implementation Under Test as of 2017-07-07)

  • LMS now supports a tree height of 25.

  • iqr_HashRegisterCallbacks() performs a known-answer test for BLAKE2b, SHA2, and SHA3 to make sure the specified implementation works as expected.

Changed features:

  • Tuned assembly language versions of some functions on supported processors. (ChaCha20 and SHA2-256 on x86-64 platforms.)

  • LMS now requires at least 64 bytes of digest for signing operations.

  • LMS implementation updated to version 7 of the IETF draft specification.

  • The I value ("identifier") in LMS parameters is now entirely internal, you don’t need to specify it when creating LMS parameter objects.

  • Samples re-organized and now build with single cmake instead of a shell script.

  • KDF APIs marked "Deprecated"; they’ll receive a "generic" KDF API (to allow streaming) in a future toolkit release.

Removed features:

  • McEliece QC-MDPC has been removed as an asymmetric encryption scheme.

  • The "BoringSSL" variant of NewHope has been removed, as it no longer exists in the wild.

  • The iqr_LMSGetRemainingSignatureCount() function has been removed.

Changes Since 1.1

  • NewHope’s iqr_NewHopeGetResponderPublicKeyAndSecret and LUKE’s iqr_LUKEGetResponderPublicKeyAndSecret now have proper camel case.

  • HMAC now responds properly to error conditions.

  • LMS samples updated to support Height 15 trees.

Changes Since 1.0

  • LMS APIs marked "Deprecated" as they’ll be changing due to the latest IETF draft.

  • Hash implementations now have initialize() and cleanup() methods.

  • MACs (HMAC and Poly1305) now use a generic API similar to Hashes.

  • LMS IETF parameters and XDR encodings have been removed; they belong in a higher-level library. Removed iqr_LMSCreateParamsIETF() and iqr_LMSGetIETFTypes().

  • iqr_LMSGetSignatureSize() was changed to iqr_LMSGetSignatureComponentSizes(), which is slightly different.

  • iqr_LMSSign() and iqr_LMSVerify() APIs changed to reflect the removal of XDR encoding.

  • LUKE and NewHope algorithms now have a simplified Responder API.

  • The RNG in iqr_Context has been removed, along with the iqr_RNGRegisterCallbacks() function. iqr_RNGCreate() now takes a callback structure directly.

  • FreeBSD (versions 10 and 11) is now a supported platform.

  • Windows is now a supported platform.

Contents

The toolkit is organized into several directories:

  • doc — API documentation (doc/library/index.html) and Developer’s Guide (doc/guide/guide.html).

  • include — toolkit headers.

  • one or more lib_cpu directories — toolkit static and shared libraries optimized for the given CPU family.

  • samples — Sample programs demonstrating how to use the toolkit.

Getting Help

The latest version of the toolkit documentation is available on ISARA’s website:

For information about reporting security issues, please read the SECURITY document.

Using the Toolkit

After unpacking the toolkit archive, you can start using it by adding the following command-line arguments to your compiler:

-I/path/to/isara_toolkit/include \
-L/path/to/isara_toolkit/lib_cpu \
-liqr_toolkit

where cpu is one of the available CPUs in your archive. For example, the linux archive includes these versions of the libraries:

  • lib_core2 - Intel Core 2 CPUs

  • lib_sandybridge - Intel Sandybridge CPUs

  • lib_skylake - Intel Skylake CPUs

  • lib_x86-64 - 64 bit AMD and Intel CPUs

Note
If you’re linking against the shared library, you will need to link against the math library (-lm option).

If you require a version of the library tuned for a specific CPU, please contact ISARA’s sales team.

Building the Samples

Note
Before building the samples, copy one of the CPU-specific versions of the toolkit libraries into a lib directory. For example, to build the samples for Intel Core 2 or better CPUs, copy the contents of lib_core2 into lib.

To build the samples:

cd /path/to/isara_toolkit/samples/algorithm/sample_name
cmake .
make

For more details and tool requirements, please refer to the Developer’s Guide (doc/guide/guide.html) documentation.

Note
Don’t build the samples on macOS using gcc 8, they will crash before main() due to a problem with -fstack-protector-all. Use clang to produce Mac binaries.

System Requirements

Recommended:

  • Android 7.0 (Nougat) or newer (API level 24 or higher)

  • iOS 10 or newer

  • Linux (Ubuntu 16.04 LTS or newer, CentOS 7 or newer; 64 bit platforms)

  • macOS 10.11 or newer

  • Windows 10 (64 bit platforms)

Minimum:

  • Android 6.0 (Marshmallow) or newer (API level 23 or higher)

  • iOS 8.1 or newer

  • Linux (Ubuntu 14.04 LTS or newer, Debian 8 or newer; 64 bit platforms)

  • macOS 10.10 or newer

  • Windows 7 or newer (32 bit and 64 bit platforms)

Supported CPUs by OS:

  • Android: x86, x86_64, armeabi-v7a, arm64-v8a

  • iOS: x86, x86_64, armv7, armv7s, arm64

  • Linux: x86_64, core2, sandybridge, skylake, 32 bit powerpc

  • macOS: x86_64, core2, sandybridge, skylake

  • Windows: x86_64, core2, sandybridge, skylake

Additional CPU-specific builds can also be created on demand; please contact ISARA’s sales team.

The ISARA Radiate Security Solution Suite is licensed for use:

Copyright © 2015-2018, ISARA Corporation, All Rights Reserved.

The code and other content set out herein is not in the public domain, is considered a trade secret and is confidential to ISARA Corporation. Use, reproduction or distribution, in whole or in part, of such code or other content is strictly prohibited except by express written permission of ISARA Corporation. Please contact ISARA Corporation at info@isara.com for more information.

Sample code (and only the sample code) is covered by the Apache 2.0 license:

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Patent Information

Portions of this software are covered by US Patents 9,614,668, 9,660,978, 9,673,977, and 9,698,986.