1.3.1 BLAKE
Description
The BLAKE algorithm is based on the ChaCha stream cipher. When the BLAKE2 algorithm calculates a hash without a key, it is called an unkeyed hash. The BLAKE2 algorithm can use an optional key ranging from 1 to 64 bytes; if no key is used, then key length is 0. Key length up to 32 bytes for BLAKE2s and 64 bytes for BLAKE2b. Digest length 1 to 32 bytes for BLAKE2s and 1 to 64 bytes for BLAKE2b. This demo application demonstrates the functionality of Crypto v4 BLAKE functions.
Downloading and Building the Application
To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using MPLAB® Code Configurator Content Manager.
Path of the application group within the repository is apps/examples/hash/blake\blake_group.
The following table shows the contents of the project group.
Project Name | Description |
---|---|
pic32ck_sg01_cult.X | MPLABX nonsecure project for PIC32CK SG Curiosity Ultra Development Board |
pic32ck_sg01_cult_secure.X | MPLABX secure project for PIC32CK SG Curiosity Ultra Development Board |
Setting Up the Hardware
PIC32CK SG Curiosity Ultra Development Board
- Connect the Debug USB port on the board to the computer using a micro USB cable.
- Open a serial monitor with baud rate set to 115200, 8-bit data, no parity, 1 stop bit.
Running the Application
- Open the project group.
- Open the nonsecure version of the project.
- Build and program the application using its IDE and observe the serial COM output.
- The program displays which functions are being demonstrated, and prints if they are completed successfully.