📄 ssmapi.h
字号:
/*****************************************************************************
* Filename: ssmapi.h - Structures and defines used in SSM API layer
*
* SanDisk SD Memory Card Security Manager Software
*
* Copyright (c) 2000 SanDisk Corporation
* All rights reserved.
* This code may not be redistributed in source or linkable object form
* without the consent of its author.
*
* Description:
* Structure Definitions
*
*****************************************************************************/
#ifndef __SSMAPI__
#include "sdconfig.h"
#if (USE_SECURITY)
#include "sdtypes.h"
/* There are two categories of SSM services: */
#define SECURITY_CMD 0 /* General Security*/
#define FILESYS_CMD 1 /* Security File system*/
/* Commands for security file system */
#define FS_INIT 0 /* Initialize file system*/
#define FS_MOUNT_VOL 1 /* Looks for device and "opens" it*/
#define FS_UNMOUNT_VOL 2 /* Close device*/
#define FS_FORMAT 3 /* Format authentification area*/
#define FS_CHANGE_SIZE 4 /* Change size authentification area*/
#define FS_FILE_OPEN 5 /* Open/Create files*/
#define FS_FILE_CLOSE 6
#define FS_FILE_READ 7
#define FS_FILE_WRITE 8
#define FS_FILE_LSEEK 9 /* Set file pointer*/
#define FS_SET_ATTRIB 10 /* Set file attribute*/
#define FS_GET_ATTRIB 11 /* Get file attribute*/
#define FS_FILE_DELETE 12
#define FS_FILE_RENAME 13
#define FS_MDIR 14 /* Create a directory*/
#define FS_RDIR 15
#define FS_GETCURDIR 16
#define FS_SETCURDIR 17
#define FS_GFIRST 18 /* Find first matching dir entry*/
#define FS_GNEXT 19 /* Get next matching dir entry*/
/* Note: Must issue the following after using GFIRST (and GNEXT) -- invoke
this after doing the last GNEXT.
*/
#define FS_DIRDONE 20 /* Release resources */
#define FS_SIZE_FREE 21 /* Free spaces of security area */
#define MAX_FS_FUNCTIONS FS_SIZE_FREE
/*Commands for security interface */
#define SEC_ENCRYPT 0
#define SEC_DECRYPT 1
#define SEC_AKE 2
#define SEC_MKB 3
#define BUS_ENCRYPT 4
#define BUS_DECRYPT 5
#define SEC_ENC_TKEY 6
#define SEC_DEC_TKEY 7
#define INVALID_CATEGORY 999
#define INVALID_COMMAND 998
#define BUSY_PROCESS 997
#endif /* (USE_SECURITY) */
#define __SSMAPI__
#endif /* __SSMAPI__ */
/* end of ssmapi.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -