Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC2538: AES ECB error

$
0
0

Part Number:CC2538

Hi, I am trying to encrypt data using ECB as below

Init:

                                                                            
  /* Enable AES peripheral */                                                   
    SysCtrlPeripheralEnable(SYS_CTRL_PERIPH_AES);                               
                                                                                
    /* Register interrupt handler */                                            
    IntRegister(INT_AES, AESIntHandler);                                        
                                                                                
    /* Enable global interrupts */                                              
    IntAltMapEnable();                                                          
    IntMasterEnable();                                                          

Doing Encrypt:

  stsLK = AESLoadKey(key, keyloc);
  stsEn = AESECBStart(input, output, keyloc, true, false);
  
  do
  {
    ASM_NOP;
  }while(!(AESECBCheckResult()));
  
  stsGet=AESECBGetResult();

stsGet is returning me 0x03, it means "AES_DMA_BUS_ERROR", can any one tell why its happening

Thank you


Viewing all articles
Browse latest Browse all 262198