This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Encrypting packets on-the-fly when MODE.LENGTH = Extended

Hello !

In PS1.7 chapter 6.4.5 Encrypting packets on-the-fly in radio transmit mode is explained encryption of a short packets (MODE.LENGTH = Default).

But when MODE.LENGTH = Extended is only clear "the keystream generation needs to start earlier, such as when the TXEN task in RADIO is triggered".

So it should/can be generated beforehand.  What kind of radio event should start CRYPT Task by using PPI ? 

RADIO->EVENTS_ADDRESS -> CCM->TASKS_CRYPT ?
I think SHORTS are also no needed.
Please clarify PPIs and SHORTs usage in case encryption of the Extended packets.
Regards,
Eugene
Parents Reply
  • Hi !

    Looks like in case of decryption, the same channel should be used and no need nothing else

    if NRF_CCM->TASKS_KSGEN = 1; is enabled beforehand

    NRF_PPI->CHEN |= (1UL << NRF_PPI_CHANNEL25);
    Is this so ?
    Can KSGEN be  triggered even before than TASKS_TXEN/RXEN tasks ?
    Or better to start it synchronously with TXEN/RXEN ? Or attach to other radio events ?
    I have done KSGEN beforehand but looks like something wrong and encrypted data are not decrypted properly on RX side.
    What about RFU byte ( S1) ? Looks like  if on-fly mode is enabled, it must be present.
    S1LEN and S1INC in PCFN0 should be > 0
    Is this so ?
    Regards,
    Eugene
Children
Related