Skip to content
altera-fpgaPublic

About

Altera FPGA Crypto Services Library

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

FPGA Crypto Services Library (LibFCS)

This repository contains the FPGA Crypto Service which is made platform independent.

FPGA Crypto Services (FCS)

This library provides all the crypto services provided by FPGA to use it over HPS software stack. Following are the services provided:

  • Session management
  • Key management
  • Vendor Authorized Boot (VAB)
  • Counter Set
  • Bitstream Pre-authentication
  • Provision Data
  • Platform Attestation
  • Secure Data Object Service (SDOS)
  • Random Number Generator
  • AES
  • SHA2/HMAC
  • ECDSA
  • ECDH
  • HKDF

Pre-requisite:

  1. cmake - 3.24.0 (build configuration tool)
  2. arm gnu linaro toolchain (for linux aarch64 platform)
  3. make (build tool)

Compilation steps

cmake -S . -B build -DARCH=linux_aarch64

cmake --build build

Note: use -DARCH=freertos_aarch64 while building it for FreeRTOS

This will generate the necessary build files and compile the library for the specified architecture and operating system. The compiled binaries will be available in the build directory.

Debug build

For debug build please add -DCMAKE_BUILD_TYPE=Debug to the configuration step in build process.

Tools

fcs_prepare

The commands below are used to build the fcs_prepare tool, which is utilized for generating keys and certificates for FCS (Flexible Cryptographic Services). More details about tools ( fcs_prepare) are available in the README

Building fcs_prepare tool

Steps:

  1. Configure the build system to include the fcs_prepare tool: cmake -S . -B build -DBUILD_FCS_PREPARE=ON
  2. Build the project: cmake --build build

The fcs_prepare tool is intended to be run on the host machine to generate the necessary cryptographic keys and certificates for FCS

About

Altera FPGA Crypto Services Library

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages