Rate This Document
Findability
Accuracy
Completeness
Readability

Error Codes

Table 1 Error codes

No.

Macro Description

Predefined Value

Description

1

SDR_OK

0x0

Indicates that operation succeeded.

2

SDR_BASE

0x01000000

Indicates the basic error code.

3

SDR_UNKNOWERR

(SDR_BASE + 0x00000001)

Indicates an unknown error.

4

SDR_NOTSUPPORT

(SDR_BASE + 0x00000002)

Indicates a call to an unsupported API.

5

SDR_COMMFAIL

(SDR_BASE + 0x00000003)

Indicates that communication with the device failed.

6

SDR_HARDFAIL

(SDR_BASE + 0x00000004)

Indicates that the operation module did not respond.

7

SDR_OPENDEVICE

(SDR_BASE + 0x00000005)

Indicates that a device failed to be opened.

8

SDR_OPENSESSION

(SDR_BASE + 0x00000006)

Indicates that a session failed to be created.

9

SDR_PARDENY

(SDR_BASE + 0x00000007)

Indicates no permission to use the private key.

10

SDR_KEYNOTEXIST

(SDR_BASE + 0x00000008)

Indicates a call to a non-existent key.

11

SDR_ALGNOTSUPPORT

(SDR_BASE + 0x00000009)

Indicates a call to an unsupported algorithm.

12

SDR_ALGMODNOTSUPPORT

(SDR_BASE + 0x0000000A)

Indicates a call to an unsupported algorithm mode.

13

SDR_PKOPERR

(SDR_BASE + 0x0000000B)

Indicates that public key operation failed.

14

SDR_SKOPERR

(SDR_BASE + 0x0000000C)

Indicates that private key operation failed.

15

SDR_SIGNERR

(SDR_BASE + 0x0000000D)

Indicates that signature operation failed.

16

SDR_VERIFYERR

(SDR_BASE + 0x0000000E)

Indicates that signature verification failed.

17

SDR_SYMOPERR

(SDR_BASE + 0x0000000F)

Indicates that symmetric algorithm operation failed.

18

SDR_STEPERR

(SDR_BASE + 0x00000010)

Indicates incorrect operation steps.

19

SDR_FILESIZEERR

(SDR_BASE + 0x00000011)

Indicates that the file size exceeds the limit.

20

SDR_FILENOEXIST

(SDR_BASE + 0x00000012)

Indicates that the specified file does not exist.

21

SDR_FILEOFSERR

(SDR_BASE + 0x00000013)

Indicates incorrect file start position.

22

SDR_KEYTYPEERR

(SDR_BASE + 0x00000014)

Indicates a key type error.

23

SDR_KEYERR

(SDR_BASE + 0x00000015)

Indicates a key error.

24

SDR_ENCDATAERR

(SDR_BASE + 0x00000016)

Indicates an ECC encryption data error.

25

SDR_RANDERR

(SDR_BASE + 0x00000017)

Indicates that random number generation failed.

26

SDR_PRKRERR

(SDR_BASE + 0x00000018)

Indicates a failure in obtaining the private key usage permission.

27

SDR_MACERR

(SDR_BASE + 0x00000019)

Indicates that MAC calculation failed.

28

SDR_FILEEXSITS

(SDR_BASE + 0x0000001A)

Indicates that the specified file already exists.

29

SDR_FILEWERR

(SDR_BASE + 0x0000001B)

Indicates that file write failed.

30

SDR_NOBUFFER

(SDR_BASE + 0x0000001C)

Indicates insufficient storage space.

31

SDR_INARGERR

(SDR_BASE + 0x0000001D)

Indicates an input parameter error.

32

SDR_OUTARGERR

(SDR_BASE + 0x0000001E)

Indicates an output parameter error.

33

SDR_GENERIC

(SDR_BASE + 0x0000001F)

Indicates a common error.

34

SDR_PASSWDERR

(SDR_BASE + 0x00000020)

Indicates an incorrect password.

35

SDR_SHORT_BUFFER

(SDR_BASE + 0x00000021)

Indicates an insufficient buffer length.

36

SDR_SELFTESTERR

(SDR_BASE + 0x00000022)

Indicates that self-test failed.

37

SDR_BUSY

(SDR_BASE + 0x10000001)

Indicates that the device is busy.

38

SDR_DUPLIPWD

(SDR_BASE + 0x00A00001)

Indicates a duplicate password.