Freescale-semiconductor SEC2SWUG Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Hardware Freescale-semiconductor SEC2SWUG. Freescale Semiconductor SEC2SWUG User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 44
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
This document contains information on a new product. Specifications and information herein
are subject to change without notice.
© Freescale Semiconductor, Inc., 2005. All rights reserved.
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Freescale Semiconductor
1Overview
The SEC2 device driver manages the operation of the SEC 2.0
commonly instantiated into PowerQUICC processors. It is a fully
functional component, meant to serve as an example of application
interaction with the SEC2 core.
The driver is coded in ANSI C. In its design, an attempt has been
made to write a device driver that is as operating system agnostic
as practical. Where necessary, operating system dependencies are
identified and Section 8, “Porting” addresses them.
Testing has been accomplished on VxWorks 5.5 and LinuxPPC
using kernel version 2.4.27.
Application interfaces to this driver are implemented through the
ioctl() function call. Requests made through this interface can
be broken down into specific components, including
miscellaneous requests and process requests. The miscellaneous
requests are any requests not related to the direct processing of
data by the SEC2 core.
Process requests comprise the majority of the requests and all are
executed using the same
ioctl() access point. Structures needed
to compose these requests are described in detail in Section 3.3.6,
“Process Request Structures.”
Throughout the document, the acronyms CHA (crypto hardware
accelerator) and EU (execution unit) are used interchangeably.
SEC2SWUG
Rev. 0, 02/2005
Contents
1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. Device Driver Components . . . . . . . . . . . . . . . . . . . . 3
3. User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4. Individual Request Type Descriptions . . . . . . . . . . . 14
5. Sample Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6. Linux Environment . . . . . . . . . . . . . . . . . . . . . . . . . . 39
7. VxWorks Environment . . . . . . . . . . . . . . . . . . . . . . . 40
8. Porting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
SEC 2.0 Reference Device Driver
User’s Guide
Vista de página 0
1 2 3 4 5 6 ... 43 44

Resumo do Conteúdo

Página 1 - User’s Guide

This document contains information on a new product. Specifications and information herein are subject to change without notice.© Freescale Semiconduc

Página 2

SEC 2.0 Reference Device Driver User’s Guide, Rev. 010 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorUser Interface3.3.5 Miscell

Página 3 - 2 Device Driver Components

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 11User Interface STATUS_REQ

Página 4 - 2.1.3 Process Request Routine

SEC 2.0 Reference Device Driver User’s Guide, Rev. 012 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorUser InterfaceThe additiona

Página 5 - 3 User Interface

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 13User Interfacescatter-compo

Página 6 - 3.2 Error Handling

SEC 2.0 Reference Device Driver User’s Guide, Rev. 014 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 7 - 3.3 Global Definitions

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 15Individual Request Type Des

Página 8 - 3.3.4 Return Codes

SEC 2.0 Reference Device Driver User’s Guide, Rev. 016 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 9

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 17Individual Request Type Des

Página 10 - 3.3.5.1 STATUS_REQ Structure

SEC 2.0 Reference Device Driver User’s Guide, Rev. 018 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 11

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 19Individual Request Type Des

Página 12

SEC 2.0 Reference Device Driver User’s Guide, Rev. 02 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorOverviewBoth acronyms indica

Página 13

SEC 2.0 Reference Device Driver User’s Guide, Rev. 020 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 14 - 4.2 DES Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 21Individual Request Type Des

Página 15 - 4.3 ARC4 Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 022 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 16

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 23Individual Request Type Des

Página 17 - 4.4 Hash Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 024 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 18 - 4.5 HMAC Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 25Individual Request Type Des

Página 19 - 4.6 AES Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 026 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 20 - 4.7.1 MOD_EXP_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 27Individual Request Type Des

Página 21 - 4.7.3 MOD_R2MODN_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 028 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 22 - 4.7.5 MOD_2OP_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 29Individual Request Type Des

Página 23

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 3Device Driver Components2 De

Página 24 - 4.8 ECC Public Key Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 030 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 25 - 4.8.2 ECC_2OP_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 31Individual Request Type Des

Página 26 - 4.8.3 ECC_SPKBUILD_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 032 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 27 - 4.9 IPSec Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 33Individual Request Type Des

Página 28

SEC 2.0 Reference Device Driver User’s Guide, Rev. 034 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorIndividual Request Type Des

Página 29 - 4.9.2 IPSEC_ECB_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 35Individual Request Type Des

Página 30 - 4.9.3 IPSEC_AES_CBC_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 036 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorSample Codeunsigned long i

Página 31 - 4.9.4 IPSEC_AES_ECB_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 37Sample CodedesencReq.status

Página 32 - 4.9.5 IPSEC_ESP_REQ

SEC 2.0 Reference Device Driver User’s Guide, Rev. 038 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorSample CodeipsecReq.hashKey

Página 33

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 39Linux Environment6Linux Env

Página 34

SEC 2.0 Reference Device Driver User’s Guide, Rev. 04 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorDevice Driver Components2.1.

Página 35 - 4.11 SRTP Protocol Requests

SEC 2.0 Reference Device Driver User’s Guide, Rev. 040 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorVxWorks Environment6.2.2 Dr

Página 36 - 5 Sample Code

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 41PortingOnce the modules are

Página 37 - 5.2 IPSEC Sample

SEC 2.0 Reference Device Driver User’s Guide, Rev. 042 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorPortingOnly a few of the fi

Página 38

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 43Porting8.4 Conditional Comp

Página 39 - 6Linux Environment

SEC2SWUGRev. 002/2005PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. Th

Página 40 - 7 VxWorks Environment

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 5User Interface2.1.5 Deferred

Página 41 - 8 Porting

SEC 2.0 Reference Device Driver User’s Guide, Rev. 06 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorUser Interface3.2 Error Hand

Página 42 - 8.3 Interrupt Service Routine

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 7User Interface /* in callba

Página 43 - 8.6 Distribution Archive

SEC 2.0 Reference Device Driver User’s Guide, Rev. 08 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale SemiconductorUser InterfaceThe NUM_CHAS d

Página 44 - How to Reach Us:

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 9User InterfaceSEC2_CHA_NOT_A

Comentários a estes Manuais

Sem comentários