OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
bn_mul.h File Reference

Multi-precision integer library. More...

#include "bignum.h"
Include dependency graph for bn_mul.h:

Go to the source code of this file.

Macros

#define MULADDC_INIT
 
#define MULADDC_CORE
 
#define MULADDC_STOP   }
 

Detailed Description

Multi-precision integer library.

Macro Definition Documentation

◆ MULADDC_CORE

#define MULADDC_CORE
Value:
r = *(s++) * (mbedtls_t_udbl) b; \
r0 = (mbedtls_mpi_uint) r; \
r1 = (mbedtls_mpi_uint)( r >> biL ); \
r0 += c; r1 += (r0 < c); \
r0 += *d; r1 += (r0 < *d); \
c = r1; *(d++) = r0;
uint64_t mbedtls_t_udbl
Definition: bignum.h:168
uint32_t mbedtls_mpi_uint
Definition: bignum.h:166

◆ MULADDC_INIT

#define MULADDC_INIT
Value:
{ \
mbedtls_t_udbl r; \
mbedtls_mpi_uint r0, r1;

◆ MULADDC_STOP

#define MULADDC_STOP   }