Contiki-NG
Loading...
Searching...
No Matches

Software implementation of SHA-256. More...

#include "lib/sha-256.h"
#include "net/ipv6/uip.h"
#include "sys/cc.h"
#include <string.h>

Go to the source code of this file.

Functions

void sha_256_hmac_init (const uint8_t *key, size_t key_len)
 Initiates a stepwise HMAC-SHA-256 computation.
 
void sha_256_hmac_update (const uint8_t *data, size_t data_len)
 Proceeds with the computation of an HMAC-SHA-256.
 
void sha_256_hkdf_expand (const uint8_t *prk, size_t prk_len, const uint8_t *info, size_t info_len, uint8_t *okm, uint_fast16_t okm_len)
 Expands a key as per RFC 5869.
 
void sha_256_hkdf (const uint8_t *salt, size_t salt_len, const uint8_t *ikm, size_t ikm_len, const uint8_t *info, size_t info_len, uint8_t *okm, uint_fast16_t okm_len)
 Performs both extraction and expansion as per RFC 5869.
 

Detailed Description

Software implementation of SHA-256.

Definition in file sha-256.c.