Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 6 of 6) sorted by relevance

/loramac-node-3.7.0/src/peripherals/soft-se/
Dcmac.c59 void AES_CMAC_Init( AES_CMAC_CTX* ctx ) in AES_CMAC_Init() argument
61 memset1( ctx->X, 0, sizeof ctx->X ); in AES_CMAC_Init()
62 ctx->M_n = 0; in AES_CMAC_Init()
63 memset1( ctx->rijndael.ksch, '\0', 240 ); in AES_CMAC_Init()
66 void AES_CMAC_SetKey( AES_CMAC_CTX* ctx, const uint8_t key[AES_CMAC_KEY_LENGTH] ) in AES_CMAC_SetKey() argument
68 aes_set_key( key, AES_CMAC_KEY_LENGTH, &ctx->rijndael ); in AES_CMAC_SetKey()
71 void AES_CMAC_Update( AES_CMAC_CTX* ctx, const uint8_t* data, uint32_t len ) in AES_CMAC_Update() argument
76 if( ctx->M_n > 0 ) in AES_CMAC_Update()
78 mlen = MIN( 16 - ctx->M_n, len ); in AES_CMAC_Update()
79 memcpy1( ctx->M_last + ctx->M_n, data, mlen ); in AES_CMAC_Update()
[all …]
Dcmac.h58 void AES_CMAC_Init(AES_CMAC_CTX * ctx);
59 void AES_CMAC_SetKey(AES_CMAC_CTX * ctx, const uint8_t key[AES_CMAC_KEY_LENGTH]);
60 void AES_CMAC_Update(AES_CMAC_CTX * ctx, const uint8_t * data, uint32_t len);
62 void AES_CMAC_Final(uint8_t digest[AES_CMAC_DIGEST_LENGTH], AES_CMAC_CTX * ctx);
Daes.h89 aes_context ctx[1] );
96 const aes_context ctx[1] );
102 const aes_context ctx[1] );
109 const aes_context ctx[1] );
115 const aes_context ctx[1] );
Daes.c513 return_type aes_set_key( const uint8_t key[], length_type keylen, aes_context ctx[1] )
524 ctx->rnd = 0;
527 block_copy_nn(ctx->ksch, key, keylen);
529 ctx->rnd = (hi >> 4) - 1;
533 t0 = ctx->ksch[cc - 4];
534 t1 = ctx->ksch[cc - 3];
535 t2 = ctx->ksch[cc - 2];
536 t3 = ctx->ksch[cc - 1];
554 ctx->ksch[cc + 0] = ctx->ksch[tt + 0] ^ t0;
555 ctx->ksch[cc + 1] = ctx->ksch[tt + 1] ^ t1;
[all …]
/loramac-node-3.7.0/src/mac/region/
DRegionCN470.c164 …id ApplyChannelPlanConfig( RegionCN470ChannelPlan_t channelPlan, RegionCN470ChannelPlanCtx_t* ctx ) in ApplyChannelPlanConfig() argument
170 ctx->ChannelsMaskSize = CN470_A20_CHANNELS_MASK_SIZE; in ApplyChannelPlanConfig()
171 ctx->JoinAcceptListSize = CN470_A20_JOIN_ACCEPT_LIST_SIZE; in ApplyChannelPlanConfig()
172 ctx->NbBeaconChannels = CN470_A20_BEACON_NB_CHANNELS; in ApplyChannelPlanConfig()
173 ctx->NbPingSlotChannels = CN470_A20_PING_SLOT_NB_CHANNELS; in ApplyChannelPlanConfig()
174 ctx->GetDownlinkFrequency = RegionCN470A20GetDownlinkFrequency; in ApplyChannelPlanConfig()
175 ctx->GetBeaconChannelOffset = RegionCN470A20GetBeaconChannelOffset; in ApplyChannelPlanConfig()
176 ctx->LinkAdrChMaskUpdate = RegionCN470A20LinkAdrChMaskUpdate; in ApplyChannelPlanConfig()
177 ctx->VerifyRfFreq = RegionCN470A20VerifyRfFreq; in ApplyChannelPlanConfig()
178 ctx->InitializeChannels = RegionCN470A20InitializeChannels; in ApplyChannelPlanConfig()
[all …]
/loramac-node-3.7.0/
D.gitignore18 *.ctx