RA Flexible Software Package Documentation  Release v5.9.0

 
Using Ocrypto

Overview

Ocrypto is a lightweight software crypto implementation by Oberon.

Limitations

The Ocrypto library is only to be used with RA2E1 devices.

RA FSP Licensed Algorithms

Below is a table that lists the Ocrypto algorithms licensed for use with RA FSP. Consider this table when referencing the below section - Additional Information

Algorithm API Header Files
SHA (224, 256, 384, 512) ocrypto_sha224.h
ocrypto_sha256.h
ocrypto_sha384.h
ocrypto_sha512.h
HMAC (SHA256, SHA512) ocrypto_hmac_sha256.h
ocrypto_hmac_sha512.h
AES-CMAC ocrypto_aes_cmac.h
AES (CTR, CBC, ECB, GCM) ocrypto_aes_cbc.h
ocrypto_aes_cbc_pkcs.h
ocrypto_aes_ctr.h
ocrypto_aes_ecb.h
ocrypto_aes_gcm.h
ocrypto_aes_key.h
ECDSA / Deterministic ECDSA (P256) ocrypto_ecdsa_p256.h
ocrypto_ecdsa_p256_det_sign.h
ECDH (P256) ocrypto_ecdh_p256.h

API Examples

Ocrypto Library Examples

For examples of how to use Ocrypto APIs, see Ocrypto test code under ra/oberon/ocrypto/tests/. These tests are not meant to be built or run in FSP and have been compiled out by the macro OCRYPTO_REFERENCE_TEST_CODE_DOES_NOT_BUILD by default.

Additional Information

Document Summary
Ocrypto - Side Channel Safety Statement Side Channel Safety Statement for the Oberon Ocrypto stack
Ocrypto - Function Overview Function Overview for the Oberon Ocrypto stack