• AVR Freaks

Hot!AES encryption.

Author
rce
Junior Member
  • Total Posts : 111
  • Reward points : 0
  • Joined: 2006/08/08 13:54:28
  • Location: 0
  • Status: offline
2007/03/27 06:28:16 (permalink)
0

AES encryption.

Hello,
 
I work on a device that need to have encrypted data (AES). Microchip has an application note for
AES on a 18 serie(2005). until now the source code is not avalible in europa.
 
Does any one has some start code for AES encryption with the microchip C18 compiler.
 
 
Kind regards,
 
Gerrit
#1

16 Replies Related Threads

    Vine
    Super Member
    • Total Posts : 182
    • Reward points : 0
    • Joined: 2006/11/10 10:03:09
    • Location: South Africa
    • Status: offline
    RE: AES encryption. 2007/03/27 12:32:26 (permalink)
    0
    I have used the assembler version and works very well. Look for
    AN953
    #2
    rce
    Junior Member
    • Total Posts : 111
    • Reward points : 0
    • Joined: 2006/08/08 13:54:28
    • Location: 0
    • Status: offline
    RE: AES encryption. 2007/03/28 06:07:35 (permalink)
    0
    Thank you Victor,
     
    I have this aplication note, but the source for the C18 compiler i'm missing.
     
    Can any one help me.
     
    Gerrit
    #3
    JasonK
    Moderator
    • Total Posts : 3388
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    RE: AES encryption. 2007/03/28 12:42:19 (permalink)
    0
    Please contact your local Microchip Sales office.  We can't post it here due to possible legal restrictions regarding encryption or cryptographic functionality, but your local Microchip office should be able to help you.


    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #4
    rce
    Junior Member
    • Total Posts : 111
    • Reward points : 0
    • Joined: 2006/08/08 13:54:28
    • Location: 0
    • Status: offline
    RE: AES encryption. 2007/03/29 01:48:10 (permalink)
    0
    Hello Jason,
     
    I'm in contact with the dutch sales office, for more than 4 weeks. Until now I have no code to go-on with my project.
    Is there maybe a possibility that you can speed up things, like sending it ot the local sales office to
    stefan.moolenschot@microchip.com 
     
    I just e-mailed him this morning to ask for the status.
     
    kind regrads,
     
    gerrit
    #5
    matthiaswatkins
    Super Member
    • Total Posts : 247
    • Reward points : 0
    • Joined: 2006/05/05 06:07:45
    • Location: Boston
    • Status: offline
    RE: AES encryption. 2007/03/29 05:44:44 (permalink)
    0
    It's possible that Microchip can't export the code outside the U.S.  I'm not exactly sure what export restrictions there are on AES, but I know that they do exist.

    -Matt
    #6
    ytlee
    Super Member
    • Total Posts : 1135
    • Reward points : 0
    • Joined: 2003/11/07 12:44:25
    • Status: offline
    RE: AES encryption. 2007/03/29 07:44:32 (permalink)
    0
    If the encryption uses more than 40bit key, US law said that it can not be sold/exported outside US.
    post edited by ytlee - 2007/03/29 09:53:28
    #7
    rce
    Junior Member
    • Total Posts : 111
    • Reward points : 0
    • Joined: 2006/08/08 13:54:28
    • Location: 0
    • Status: offline
    RE: AES encryption. 2007/03/29 07:59:39 (permalink)
    0
    That may be, but I thought it was a public domain encrytion methode.
    If you google you find the public description, source, and code, but this code is written for 32 bit processors where
    code space, speed and ram is less important is not important.
     
    so why does US think that this code is so important it is public already.
     
    The code will only help me is getting started, and help me on optimize the code for microchip controler.
     
    I hope someone will help me a little.
     
    #8
    JasonK
    Moderator
    • Total Posts : 3388
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    RE: AES encryption. 2007/03/29 09:49:17 (permalink)
    0
    I'm not sure about the legal issues, but I do know that Microchip's legal department requested that the code be removed from the website. Instead, the code will be distributed on a CD.

    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #9
    ytlee
    Super Member
    • Total Posts : 1135
    • Reward points : 0
    • Joined: 2003/11/07 12:44:25
    • Status: offline
    RE: AES encryption. 2007/03/29 09:51:59 (permalink)
    0
    The law is very out dated but still in the book. Before 9/11, there were movement to increase the size of the key. Well, after 9/11, everything put onhold.
     
    There were tons of algorithms published on the web. You can easily find the one you like and code it yourself or have non-US programmers do that for you. That will be legal. However, any US programmers without export license, will not touch it with 10' pole.
    #10
    JasonK
    Moderator
    • Total Posts : 3388
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    RE: AES encryption. 2007/03/29 09:55:45 (permalink)
    0
    Actually, you might have to look for other sources. I'm not sure if this CD will be distributed to all countries.

    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #11
    drazen
    Super Member
    • Total Posts : 2847
    • Reward points : 0
    • Joined: 2003/11/07 12:43:09
    • Location: Croatia
    • Status: offline
    RE: AES encryption. 2007/03/30 01:15:57 (permalink)
    0
    It is limited to 40bit because US agencies can break it in "normal" time. With more bits they will have to loose more time and they do not want to.
    Same applies to other programs
    #12
    juevosrancheros
    New Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: RE: AES encryption. 2018/07/22 08:19:20 (permalink)
    0
    I found this 2007 post and I'm wondering if contacting the 'sales office'  remains the best (and only) procedure for getting my hands on the aes.h and aes.c code that is missing in the Microchip LoRaMOTE.X project code?
    Thanks in advance,
    Jeff
    #13
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re: RE: AES encryption. 2018/07/22 08:43:32 (permalink)
    0

    GENOVA :D :D ! GODO
    #14
    juevosrancheros
    New Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: RE: AES encryption. 2018/07/22 11:06:53 (permalink)
    +1 (1)
    LoRaWAN Library Plug-In for MPLAB Code Configurator User Guide
    (DS40001864B)
     
    Microchip cannot distribute the AES.h and AES.c encryption files. Due to differences
    in licensing terms, the AES engine used by LoRaWAN stack needs to be added
    separately. The user is responsible of getting the encryption files. The two files must
    be manually replaced in the project, because the ones which are generated together
    with the stack only contain an error informing the user about the missing AES
    encryption.

    The encryption files can be downloaded from the following location: http://www.microchip.
    com/Developmenttools/ProductDetails.aspx?PartNO=SW300052.

    After downloading Data Encryption Libraries V2.6.zip and extracting AES.h and AES.c
    files, the user must make sure the files do not contain any keywords which are not
    supported by XC compilers (e.g., “rom” keyword must be deleted because it is not
    supported by XC8 compiler).
    #15
    qɥb
    Monolothic Member
    • Total Posts : 3332
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: RE: AES encryption. 2018/07/22 13:31:44 (permalink)
    +2 (2)
    In most cases, "rom" can be replaced with "const" in XC8.
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #16
    marjian
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2015/05/15 12:06:16
    • Location: 0
    • Status: offline
    Re: RE: AES encryption. 2019/10/18 00:57:46 (permalink)
    #17
    Jump to:
    © 2019 APG vNext Commercial Version 4.5