Electronic Components Datasheet Search
  English  ▼

X  

SEC2410 Datasheet(PDF) 144 Page - Microchip Technology

Part # SEC2410
Description  HS Endpoint Processor with USB 2.0, Smart Card, and FMC for Secure Token and Storage
PDF  283 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

SEC2410 Datasheet(HTML) 144 Page - Microchip Technology

Back Button SEC2410 Datasheet HTML 140Page - Microchip Technology SEC2410 Datasheet HTML 141Page - Microchip Technology SEC2410 Datasheet HTML 142Page - Microchip Technology SEC2410 Datasheet HTML 143Page - Microchip Technology SEC2410 Datasheet HTML 144Page - Microchip Technology SEC2410 Datasheet HTML 145Page - Microchip Technology SEC2410 Datasheet HTML 146Page - Microchip Technology SEC2410 Datasheet HTML 147Page - Microchip Technology SEC2410 Datasheet HTML 148Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 144 / 283 page
background image
SEC2410/SEC4410
DS00001587C-page 144
 2013 - 2014 Microchip Technology Inc.
14.5
Operation
All encryption is done when plain text is read from a source and is written through the AES block into the SRAM as
cipher text.
All decryption is done when cipher text is read from a source and is written through the AES block into the SRAM as
plain text.
No modification is done to data when it is read from the SRAM, whether it be plain text or cipher text.
14.5.1
AES DATA AND ADDRESS ALIGNMENT RULES:
All accesses that pass through the AES block must be DWORD aligned. Starting address for the block of data must be
4 byte aligned. Writes that are not DWORD aligned will result in improper operation and cause UNALIGNED_ACCESS
exceptions. All data that need to be encrypted or decrypted must be in blocks of 16 bytes. For data that is not a multiple
of 16 bytes the firmware must pad the data to be a multiple of 16 bytes. For example 10 bytes must be padded to 16
bytes. 40 bytes must be padded to 48 bytes. Violating this rule causes an UNDERRUN interrupt when AES operation
terminates.
If 10 bytes are to be encrypted, the block must be padded to 16 bytes. It is important to remember that the entire 16
bytes of the cipher text must be used to recover the plain text. The recovered text will contain the padded data.
Data is encrypted and decrypted in the order that it is received. For every data word received, the address must incre-
ment correspondingly. If CBC or CTR mode is used, the full transfer must be done in sequence. With ECB, it is possible
to change the order in which 16byte blocks are encrypted, but must be done with great care.
Violating size rules will cause an UNDERRUN interrupt at termination of an AES operation. The padding data will
become a part of a 16-byte cipher text on encryption. This means that the entire 16-byte of cipher text will be needed to
retrieve plain text on decryption. This is applied to ECB and CBC mode only and not applied to CTR mode. Since
plain/cipher text is just exclusive-ORed with output of cipher/inverse-cipher function in CTR mode, there is no relation-
ship between each byte in CTR mode.
14.5.2
AUTOMATIC MODE OPERATION:
When operating in Automatic mode, the firmware must load all the wrapper registers. This include:
1.
Encrypt/Decrypt Descriptor table: (For each entry).
• Encrypt Key: Load the 128/192/256 key into the AES_ENCRYPT_KEY_3_0 through AES_EN-
CRYPT_KEY_31_28 registers. These registers must be loaded for both Encrypt and Decrypt operation. These
registers must be loaded for all modes.
• Decrypt key: Load the last round expanded key into AES_DECRYPT_KEY_3_0 through AES_DE-
CRYPT_KEY_31_28 registers. These registers must be loaded for both Encrypt and Decrypt operation. Regard-
less of the mode.
• Initial Vector: Load the Initial Vector into AES_IV_3_0 and AES_IV_7_4
• Counter and NONCE if required for the mode.
• AES mode, BLOCK_SIZE, and KEYSIZE, the AES_KEY_CTL entry.
2.
Program the FMDU LUN Descriptor as required.
3.
When a CBW arrives, the FMDU supplies the AES block with the following tuple:
• KEY_NUM: The number of the key to be used for encryption or decryption. The KEY_NUM is used to index into
the descriptor table.
• REVERSE_MODE: Normally this bit is zero. When zero, it is assumed that writes to the media are encrypted and
reads are decrypted. If the bit is set, then reads from the media are encrypted, and writes are encrypted.
• READ/WRITE_N: If this bit is one, then the direction of data flow is from the media to the host. If it is a zero, then
the data is from the host to the media. This is equivalent to bit 7 of the bmCBWFlags register in the CBW.
• AES_CTL_WR: Every time a new CBW comes in the FMDU provides a pulse to the AES block with KEY_NUM
value from selected LUN's descriptor table to mark the new transfer.
• Every time FMDU sends a CSW out, it provides a pulse with KEY_NUM = "0" to mark the end of transfer.
4.
The hardware does an exclusive OR of the READ/WRITE_N and REVERSE_MODE bits to generate the
ENCRYPT/DECRYPT_N signal required by the AES hardware to operate.
5.
The AES wrapper state machine take the registers that have been programmed, and writes them into the AES IP.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com