Contiki-NG
Functions

Header file for the cc2538 BigNum driver. More...

#include "contiki.h"
#include "dev/pka.h"
#include <stdint.h>

Go to the source code of this file.

Functions

uint8_t bignum_mod_start (const uint32_t *number, const uint8_t number_size, const uint32_t *modulus, const uint8_t modulus_size, uint32_t *result_vector, struct process *process)
 Starts the big number modulus operation. More...
 
uint8_t bignum_mod_get_result (uint32_t *buffer, const uint8_t buffer_size, const uint32_t result_vector)
 Gets the result of the big number modulus operation. More...
 
uint8_t bignum_cmp_start (const uint32_t *number1, const uint32_t *number2, uint8_t size, struct process *process)
 Starts the comparison of two big numbers. More...
 
uint8_t bignum_cmp_get_result (void)
 Gets the result of the comparison operation of two big numbers. More...
 
uint8_t bignum_inv_mod_start (const uint32_t *number, const uint8_t number_size, const uint32_t *modulus, const uint8_t modulus_size, uint32_t *result_vector, struct process *process)
 Starts the big number inverse modulo operation. More...
 
uint8_t bignum_inv_mod_get_result (uint32_t *buffer, const uint8_t buffer_size, const uint32_t result_vector)
 Gets the result of the big number inverse modulo operation. More...
 
uint8_t bignum_mul_start (const uint32_t *multiplicand, const uint8_t multiplicand_size, const uint32_t *multiplier, const uint8_t multiplier_size, uint32_t *result_vector, struct process *process)
 Starts the big number multiplication. More...
 
uint8_t bignum_mul_get_result (uint32_t *buffer, uint32_t *buffer_size, const uint32_t result_vector)
 Gets the results of the big number multiplication. More...
 
uint8_t bignum_add_start (const uint32_t *number1, const uint8_t number1_size, const uint32_t *number2, const uint8_t number2_size, uint32_t *result_vector, struct process *process)
 Starts the addition of two big number. More...
 
uint8_t bignum_add_get_result (uint32_t *buffer, uint32_t *buffer_size, const uint32_t result_vector)
 Gets the result of the addition operation on two big number. More...
 
uint8_t bignum_subtract_start (const uint32_t *number1, const uint8_t number1_size, const uint32_t *number2, const uint8_t number2_size, uint32_t *result_vector, struct process *process)
 Starts the substract of two big number. More...
 
uint8_t bignum_subtract_get_result (uint32_t *buffer, uint32_t *buffer_size, const uint32_t result_vector)
 Gets the result of big number subtract. More...
 
uint8_t bignum_exp_mod_start (const uint32_t *number, const uint8_t number_size, const uint32_t *modulus, const uint8_t modulus_size, const uint32_t *base, const uint8_t base_size, uint32_t *result_vector, struct process *process)
 Starts the big number moduluar Exponentiation operation. More...
 
uint8_t bignum_exp_mod_get_result (uint32_t *buffer, const uint8_t buffer_size, const uint32_t result_vector)
 Gets the result of the big number modulus operation result. More...
 
uint8_t bignum_divide_start (const uint32_t *dividend, const uint8_t dividend_size, const uint32_t *divisor, const uint8_t divisor_size, uint32_t *result_vector, struct process *process)
 Starts the big number Divide. More...
 
uint8_t bignum_divide_get_result (uint32_t *buffer, uint32_t *buffer_size, const uint32_t result_vector)
 Gets the results of the big number Divide. More...
 

Detailed Description

Header file for the cc2538 BigNum driver.

bignum_subtract_start bignum_subtract_get_result (subtraction) bignum_add_start bignum_add_get_result (addition) bignum_mod_start bignum_mod_get_result (modulo) bignum_exp_mod_start bignum_exp_mod_get_result (modular exponentiation operation) bignum_inv_mod_start bignum_inv_mod_get_result (inverse modulo operation) bignum_mul_start bignum_mul_get_result (multiplication) bignum_divide_start bignum_divide_get_result (division) bignum_cmp_start bignum_cmp_get_result (comparison)

Definition in file bignum-driver.h.