CryptoAuthLib
Atmel CryptoAuthentication Library
atca_unit_tests.h File Reference

Unit tests for atcalib. More...

#include "unity_fixture.h"

Go to the source code of this file.

Functions

int atca_sha204a_unit_tests (ATCADeviceType deviceType)
 
int atca_ecc108a_unit_tests (ATCADeviceType deviceType)
 
int atca_ecc508a_unit_tests (ATCADeviceType deviceType)
 
int atca_aes132a_unit_tests (ATCADeviceType deviceType)
 
int atca_unit_tests (ATCADeviceType deviceType)
 
int certdata_unit_tests (void)
 
int certio_unit_tests (void)
 
int atca_is_locked (uint8_t zone, uint8_t *lock_state)
 
void test_lock (void)
 
int atcau_get_addr (uint8_t zone, uint8_t slot, uint8_t block, uint8_t offset, uint16_t *addr)
 
int atcau_is_locked (uint8_t zone, uint8_t *lock_state)
 
void test_lock_zone (void)
 
void test_objectNew (void)
 
void test_objectDelete (void)
 
void test_wake_sleep (void)
 
void test_wake_idle (void)
 
void test_crcerror (void)
 
void test_checkmac (void)
 
void test_counter (void)
 
void test_derivekey (void)
 
void test_ecdh (void)
 
void test_gendig (void)
 
void test_genkey (void)
 this test assumes a specific configuration and locked config zone test will generate a private key if data zone is unlocked and return a public key test will generate a public key based on the private key if data zone is locked More...
 
void test_hmac (void)
 
void test_info (void)
 
void test_lock_config_zone (void)
 
void test_lock_data_zone (void)
 
void test_mac (void)
 
void test_nonce_passthrough (void)
 
void test_pause (void)
 
void test_privwrite (void)
 
void test_random (void)
 
void test_read (void)
 
void test_sha (void)
 
void test_sign (void)
 
void test_updateExtra (void)
 
void test_verify (void)
 
void test_write (void)
 
void test_devRev (void)
 

Variables

ATCAIfaceCfggCfg
 

Detailed Description

Unit tests for atcalib.

Copyright (c) 2015 Atmel Corporation. All rights reserved.

Function Documentation

int atca_aes132a_unit_tests ( ATCADeviceType  deviceType)
int atca_ecc108a_unit_tests ( ATCADeviceType  deviceType)
int atca_ecc508a_unit_tests ( ATCADeviceType  deviceType)
int atca_is_locked ( uint8_t  zone,
uint8_t *  lock_state 
)
int atca_sha204a_unit_tests ( ATCADeviceType  deviceType)
int atca_unit_tests ( ATCADeviceType  deviceType)
int atcau_get_addr ( uint8_t  zone,
uint8_t  slot,
uint8_t  block,
uint8_t  offset,
uint16_t *  addr 
)
int atcau_is_locked ( uint8_t  zone,
uint8_t *  lock_state 
)
int certdata_unit_tests ( void  )
int certio_unit_tests ( void  )
void test_checkmac ( void  )
void test_counter ( void  )
void test_crcerror ( void  )
void test_derivekey ( void  )
void test_devRev ( void  )
void test_ecdh ( void  )
void test_gendig ( void  )
void test_genkey ( void  )

this test assumes a specific configuration and locked config zone test will generate a private key if data zone is unlocked and return a public key test will generate a public key based on the private key if data zone is locked

void test_hmac ( void  )
void test_info ( void  )
void test_lock ( void  )
void test_lock_config_zone ( void  )
void test_lock_data_zone ( void  )
void test_lock_zone ( void  )
void test_mac ( void  )
void test_nonce_passthrough ( void  )
void test_objectDelete ( void  )
void test_objectNew ( void  )
void test_pause ( void  )
void test_privwrite ( void  )
void test_random ( void  )
void test_read ( void  )
void test_sha ( void  )
void test_sign ( void  )
void test_updateExtra ( void  )
void test_verify ( void  )
void test_wake_idle ( void  )
void test_wake_sleep ( void  )
void test_write ( void  )

Variable Documentation

ATCAIfaceCfg* gCfg