libzpc 1.5
IBM Z Protected-key Crypto library
Loading...
Searching...
No Matches
error.h File Reference

Error API. More...

Go to the source code of this file.

Macros

#define ZPC_ERROR_ARG1NULL   1
 Function argument 1 is NULL.
#define ZPC_ERROR_ARG2NULL   2
 Function argument 2 is NULL.
#define ZPC_ERROR_ARG3NULL   3
 Function argument 3 is NULL.
#define ZPC_ERROR_ARG4NULL   4
 Function argument 4 is NULL.
#define ZPC_ERROR_ARG5NULL   5
 Function argument 5 is NULL.
#define ZPC_ERROR_ARG6NULL   6
 Function argument 6 is NULL.
#define ZPC_ERROR_ARG7NULL   7
 Function argument 7 is NULL.
#define ZPC_ERROR_ARG8NULL   8
 Function argument 8 is NULL.
#define ZPC_ERROR_ARG1RANGE   9
 Function argument 1 is out of range.
#define ZPC_ERROR_ARG2RANGE   10
 Function argument 2 is out of range.
#define ZPC_ERROR_ARG3RANGE   11
 Function argument 3 is out of range.
#define ZPC_ERROR_ARG4RANGE   12
 Function argument 4 is out of range.
#define ZPC_ERROR_ARG5RANGE   13
 Function argument 5 is out of range.
#define ZPC_ERROR_ARG6RANGE   14
 Function argument 6 is out of range.
#define ZPC_ERROR_ARG7RANGE   15
 Function argument 7 is out of range.
#define ZPC_ERROR_ARG8RANGE   16
 Function argument 8 is out of range.
#define ZPC_ERROR_MALLOC   17
 Malloc failed.
#define ZPC_ERROR_KEYNOTSET   18
 Key not set.
#define ZPC_ERROR_KEYSIZE   19
 Invalid key size.
#define ZPC_ERROR_IVNOTSET   20
 IV not set.
#define ZPC_ERROR_IVSIZE   21
 Invalid IV size.
#define ZPC_ERROR_TAGSIZE   22
 Invalid tag size.
#define ZPC_ERROR_TAGMISMATCH   23
 Tag mismatch.
#define ZPC_ERROR_HWCAPS   24
 Function not supported.
#define ZPC_ERROR_SMALLOUTBUF   25
 Output buffer too small.
#define ZPC_ERROR_APQNSNOTSET   26
 APQNs not set.
#define ZPC_ERROR_KEYTYPE   27
 Invalid key type.
#define ZPC_ERROR_KEYTYPENOTSET   28
 Key type not set.
#define ZPC_ERROR_IOCTLGENSECK2   29
 PKEY_GENSECK2 ioctl failed.
#define ZPC_ERROR_IOCTLCLR2SECK2   30
 PKEY_CLR2SECK2 ioctl failed.
#define ZPC_ERROR_IOCTLBLOB2PROTK2   31
 PKEY_BLOB2PROTK2 ioctl failed.
#define ZPC_ERROR_WKVPMISMATCH   32
 Wrapping key verification pattern mismatch.
#define ZPC_ERROR_DEVPKEY   33
 Opening /dev/pkey failed.
#define ZPC_ERROR_CLEN   34
 Ciphertext too long.
#define ZPC_ERROR_MLEN   35
 Message too long.
#define ZPC_ERROR_AADLEN   36
 Additional authenticated data too long.
#define ZPC_ERROR_PARSE   38
 Parse error.
#define ZPC_ERROR_APQNNOTFOUND   39
 APQN not found in APQN list.
#define ZPC_ERROR_MKVPLEN   40
 MKVP too long.
#define ZPC_ERROR_INITLOCK   42
 Initializing a lock failed.
#define ZPC_ERROR_OBJINUSE   43
 Object is in use.
#define ZPC_ERROR_IOCTLAPQNS4KT   44
 PKEY_APQNS4KT ioctl failed.
#define ZPC_ERROR_KEYSIZENOTSET   45
 Key-size not set.
#define ZPC_ERROR_IOCTLGENPROTK   46
 PKEY_GENPROTK ioctl failed.
#define ZPC_ERROR_PROTKEYONLY   47
 Protected-key only.
#define ZPC_ERROR_KEYSEQUAL   48
 Keys are equal.
#define ZPC_ERROR_NOTSUP   49
 Not supported.
#define ZPC_ERROR_EC_INVALID_CURVE   50
 Invalid EC curve.
#define ZPC_ERROR_EC_CURVE_NOTSET   51
 EC curve not set.
#define ZPC_ERROR_EC_PRIVKEY_NOTSET   52
 EC private key not set.
#define ZPC_ERROR_EC_PUBKEY_NOTSET   53
 EC public key not set.
#define ZPC_ERROR_EC_NO_KEY_PARTS   54
 No EC key parts given.
#define ZPC_ERROR_EC_SIGNATURE_INVALID   55
 signature invalid.
#define ZPC_ERROR_IOCTLBLOB2PROTK3   56
 PKEY_BLOB2PROTK3 ioctl failed.
#define ZPC_ERROR_IOCTLCLR2SECK3   57
 PKEY_CLR2SECK3 ioctl failed.
#define ZPC_ERROR_APQNS_NOTSET   58
 No APQNs set for this key, but required for this operation.
#define ZPC_ERROR_EC_SIGNATURE_LENGTH   59
 length of given signature is invalid for this EC key.
#define ZPC_ERROR_EC_KEY_PARTS_INCONSISTENT   60
 given public/private key parts are inconsistent. They do not belong to the same EC key.
#define ZPC_ERROR_CCA_HOST_LIB_NOT_AVAILABLE   61
 the CCA host library is not available, but required for this function.
#define ZPC_ERROR_EP11_HOST_LIB_NOT_AVAILABLE   62
 the EP11 host library is not available, but required for this function.
#define ZPC_ERROR_EC_PUBKEY_LENGTH   63
 the given EC public key length is invalid.
#define ZPC_ERROR_EC_PRIVKEY_LENGTH   64
 the given EC private key length is invalid.
#define ZPC_ERROR_EC_NO_CCA_SECUREKEY_TOKEN   65
 the given buffer does not contain a valid CCA secure key token.
#define ZPC_ERROR_EC_NO_EP11_SECUREKEY_TOKEN   66
 the given buffer does not contain a valid EP11 secure key token.
#define ZPC_ERROR_EC_EP11_SPKI_INVALID_LENGTH   67
 the imported buffer contains an EP11 SPKI with an invalid length.
#define ZPC_ERROR_EC_EP11_SPKI_INVALID_CURVE   68
 the imported buffer contains an EP11 SPKI with an invalid EC curve.
#define ZPC_ERROR_EC_EP11_SPKI_INVALID_PUBKEY   69
 the imported buffer contains an EP11 SPKI with an invalid public key.
#define ZPC_ERROR_EC_EP11_SPKI_INVALID_MKVP   70
 the imported buffer contains an EP11 MACed SPKI with an invalid MKVP.
#define ZPC_ERROR_BLOB_NOT_PKEY_EXTRACTABLE   71
 the imported buffer contains a key blob that cannot be transformed into a protected key.
#define ZPC_ERROR_APQNS_INVALID_VERSION   72
 At least one APQN version is invalid for this function.
#define ZPC_ERROR_AES_NO_EP11_SECUREKEY_TOKEN   73
 the given buffer does not contain a valid EP11 AES secure key token.
#define ZPC_ERROR_AES_NO_CCA_DATAKEY_TOKEN   74
 the given buffer does not contain a valid CCA datakey token.
#define ZPC_ERROR_AES_NO_CCA_CIPHERKEY_TOKEN   75
 the given buffer does not contain a valid CCA cipherkey token.
#define ZPC_ERROR_RNDGEN   76
 error creating random bytes.
#define ZPC_ERROR_GCM_IV_CREATED_INTERNALLY   77
 invalid usage of a gcm context with an internally created iv.
#define ZPC_ERROR_UV_PVSECRETS_NOT_AVAILABLE   78
 support for UV retrievable secrets is not available, but required for this function.
#define ZPC_ERROR_PVSECRET_TYPE_NOT_SUPPORTED   79
 the given pvsecret type is not supported by libzpc.
#define ZPC_ERROR_PVSECRET_ID_NOT_FOUND_IN_UV_OR_INVALID_TYPE   80
 the given pvsecret ID does either not exist or belongs to a different secret type.
#define ZPC_ERROR_IOCTLVERIFYKEY2   81
 PKEY_VERIFYKEY2 ioctl failed.
#define ZPC_ERROR_HMAC_HASH_FUNCTION_NOTSET   82
 HMAC hash function not set.
#define ZPC_ERROR_HMAC_HASH_FUNCTION_INVALID   83
 HMAC hash function invalid.
#define ZPC_ERROR_HMAC_KEYGEN_VIA_SYSFS   84
 HMAC key generation via sysfs attributes failed.
#define ZPC_ERROR_CREATE_BLOCKSIZED_KEY   85
 Creating a block-sized HMAC key failed.
#define ZPC_ERROR_XTS_KEYGEN_VIA_SYSFS   86
 creating a full-xts key via sysfs attributes failed.

Functions

const char * zpc_error_string (int)
 Map an error code to the corresponding error string.

Detailed Description

Error API.

Definition in file error.h.

Macro Definition Documentation

◆ ZPC_ERROR_ARG1NULL

#define ZPC_ERROR_ARG1NULL   1

Function argument 1 is NULL.

Definition at line 25 of file error.h.

◆ ZPC_ERROR_ARG2NULL

#define ZPC_ERROR_ARG2NULL   2

Function argument 2 is NULL.

Definition at line 31 of file error.h.

◆ ZPC_ERROR_ARG3NULL

#define ZPC_ERROR_ARG3NULL   3

Function argument 3 is NULL.

Definition at line 37 of file error.h.

◆ ZPC_ERROR_ARG4NULL

#define ZPC_ERROR_ARG4NULL   4

Function argument 4 is NULL.

Definition at line 43 of file error.h.

◆ ZPC_ERROR_ARG5NULL

#define ZPC_ERROR_ARG5NULL   5

Function argument 5 is NULL.

Definition at line 49 of file error.h.

◆ ZPC_ERROR_ARG6NULL

#define ZPC_ERROR_ARG6NULL   6

Function argument 6 is NULL.

Definition at line 55 of file error.h.

◆ ZPC_ERROR_ARG7NULL

#define ZPC_ERROR_ARG7NULL   7

Function argument 7 is NULL.

Definition at line 61 of file error.h.

◆ ZPC_ERROR_ARG8NULL

#define ZPC_ERROR_ARG8NULL   8

Function argument 8 is NULL.

Definition at line 67 of file error.h.

◆ ZPC_ERROR_ARG1RANGE

#define ZPC_ERROR_ARG1RANGE   9

Function argument 1 is out of range.

Definition at line 73 of file error.h.

◆ ZPC_ERROR_ARG2RANGE

#define ZPC_ERROR_ARG2RANGE   10

Function argument 2 is out of range.

Definition at line 79 of file error.h.

◆ ZPC_ERROR_ARG3RANGE

#define ZPC_ERROR_ARG3RANGE   11

Function argument 3 is out of range.

Definition at line 85 of file error.h.

◆ ZPC_ERROR_ARG4RANGE

#define ZPC_ERROR_ARG4RANGE   12

Function argument 4 is out of range.

Definition at line 91 of file error.h.

◆ ZPC_ERROR_ARG5RANGE

#define ZPC_ERROR_ARG5RANGE   13

Function argument 5 is out of range.

Definition at line 97 of file error.h.

◆ ZPC_ERROR_ARG6RANGE

#define ZPC_ERROR_ARG6RANGE   14

Function argument 6 is out of range.

Definition at line 103 of file error.h.

◆ ZPC_ERROR_ARG7RANGE

#define ZPC_ERROR_ARG7RANGE   15

Function argument 7 is out of range.

Definition at line 109 of file error.h.

◆ ZPC_ERROR_ARG8RANGE

#define ZPC_ERROR_ARG8RANGE   16

Function argument 8 is out of range.

Definition at line 115 of file error.h.

◆ ZPC_ERROR_MALLOC

#define ZPC_ERROR_MALLOC   17

Malloc failed.

Definition at line 121 of file error.h.

◆ ZPC_ERROR_KEYNOTSET

#define ZPC_ERROR_KEYNOTSET   18

Key not set.

Definition at line 127 of file error.h.

◆ ZPC_ERROR_KEYSIZE

#define ZPC_ERROR_KEYSIZE   19

Invalid key size.

Definition at line 133 of file error.h.

◆ ZPC_ERROR_IVNOTSET

#define ZPC_ERROR_IVNOTSET   20

IV not set.

Definition at line 139 of file error.h.

◆ ZPC_ERROR_IVSIZE

#define ZPC_ERROR_IVSIZE   21

Invalid IV size.

Definition at line 145 of file error.h.

◆ ZPC_ERROR_TAGSIZE

#define ZPC_ERROR_TAGSIZE   22

Invalid tag size.

Definition at line 151 of file error.h.

◆ ZPC_ERROR_TAGMISMATCH

#define ZPC_ERROR_TAGMISMATCH   23

Tag mismatch.

Definition at line 157 of file error.h.

◆ ZPC_ERROR_HWCAPS

#define ZPC_ERROR_HWCAPS   24

Function not supported.

Definition at line 163 of file error.h.

◆ ZPC_ERROR_SMALLOUTBUF

#define ZPC_ERROR_SMALLOUTBUF   25

Output buffer too small.

Definition at line 169 of file error.h.

◆ ZPC_ERROR_APQNSNOTSET

#define ZPC_ERROR_APQNSNOTSET   26

APQNs not set.

Definition at line 175 of file error.h.

◆ ZPC_ERROR_KEYTYPE

#define ZPC_ERROR_KEYTYPE   27

Invalid key type.

Definition at line 181 of file error.h.

◆ ZPC_ERROR_KEYTYPENOTSET

#define ZPC_ERROR_KEYTYPENOTSET   28

Key type not set.

Definition at line 187 of file error.h.

◆ ZPC_ERROR_IOCTLGENSECK2

#define ZPC_ERROR_IOCTLGENSECK2   29

PKEY_GENSECK2 ioctl failed.

Definition at line 193 of file error.h.

◆ ZPC_ERROR_IOCTLCLR2SECK2

#define ZPC_ERROR_IOCTLCLR2SECK2   30

PKEY_CLR2SECK2 ioctl failed.

Definition at line 199 of file error.h.

◆ ZPC_ERROR_IOCTLBLOB2PROTK2

#define ZPC_ERROR_IOCTLBLOB2PROTK2   31

PKEY_BLOB2PROTK2 ioctl failed.

Definition at line 205 of file error.h.

◆ ZPC_ERROR_WKVPMISMATCH

#define ZPC_ERROR_WKVPMISMATCH   32

Wrapping key verification pattern mismatch.

Definition at line 211 of file error.h.

◆ ZPC_ERROR_DEVPKEY

#define ZPC_ERROR_DEVPKEY   33

Opening /dev/pkey failed.

Definition at line 217 of file error.h.

◆ ZPC_ERROR_CLEN

#define ZPC_ERROR_CLEN   34

Ciphertext too long.

Definition at line 223 of file error.h.

◆ ZPC_ERROR_MLEN

#define ZPC_ERROR_MLEN   35

Message too long.

Definition at line 229 of file error.h.

◆ ZPC_ERROR_AADLEN

#define ZPC_ERROR_AADLEN   36

Additional authenticated data too long.

Definition at line 235 of file error.h.

◆ ZPC_ERROR_PARSE

#define ZPC_ERROR_PARSE   38

Parse error.

Definition at line 241 of file error.h.

◆ ZPC_ERROR_APQNNOTFOUND

#define ZPC_ERROR_APQNNOTFOUND   39

APQN not found in APQN list.

Definition at line 247 of file error.h.

◆ ZPC_ERROR_MKVPLEN

#define ZPC_ERROR_MKVPLEN   40

MKVP too long.

Definition at line 253 of file error.h.

◆ ZPC_ERROR_INITLOCK

#define ZPC_ERROR_INITLOCK   42

Initializing a lock failed.

Definition at line 259 of file error.h.

◆ ZPC_ERROR_OBJINUSE

#define ZPC_ERROR_OBJINUSE   43

Object is in use.

Definition at line 265 of file error.h.

◆ ZPC_ERROR_IOCTLAPQNS4KT

#define ZPC_ERROR_IOCTLAPQNS4KT   44

PKEY_APQNS4KT ioctl failed.

Definition at line 271 of file error.h.

◆ ZPC_ERROR_KEYSIZENOTSET

#define ZPC_ERROR_KEYSIZENOTSET   45

Key-size not set.

Definition at line 277 of file error.h.

◆ ZPC_ERROR_IOCTLGENPROTK

#define ZPC_ERROR_IOCTLGENPROTK   46

PKEY_GENPROTK ioctl failed.

Definition at line 283 of file error.h.

◆ ZPC_ERROR_PROTKEYONLY

#define ZPC_ERROR_PROTKEYONLY   47

Protected-key only.

Definition at line 289 of file error.h.

◆ ZPC_ERROR_KEYSEQUAL

#define ZPC_ERROR_KEYSEQUAL   48

Keys are equal.

Definition at line 295 of file error.h.

◆ ZPC_ERROR_NOTSUP

#define ZPC_ERROR_NOTSUP   49

Not supported.

Definition at line 301 of file error.h.

◆ ZPC_ERROR_EC_INVALID_CURVE

#define ZPC_ERROR_EC_INVALID_CURVE   50

Invalid EC curve.

Definition at line 307 of file error.h.

◆ ZPC_ERROR_EC_CURVE_NOTSET

#define ZPC_ERROR_EC_CURVE_NOTSET   51

EC curve not set.

Definition at line 313 of file error.h.

◆ ZPC_ERROR_EC_PRIVKEY_NOTSET

#define ZPC_ERROR_EC_PRIVKEY_NOTSET   52

EC private key not set.

Definition at line 319 of file error.h.

◆ ZPC_ERROR_EC_PUBKEY_NOTSET

#define ZPC_ERROR_EC_PUBKEY_NOTSET   53

EC public key not set.

Definition at line 325 of file error.h.

◆ ZPC_ERROR_EC_NO_KEY_PARTS

#define ZPC_ERROR_EC_NO_KEY_PARTS   54

No EC key parts given.

Definition at line 331 of file error.h.

◆ ZPC_ERROR_EC_SIGNATURE_INVALID

#define ZPC_ERROR_EC_SIGNATURE_INVALID   55

signature invalid.

Definition at line 337 of file error.h.

◆ ZPC_ERROR_IOCTLBLOB2PROTK3

#define ZPC_ERROR_IOCTLBLOB2PROTK3   56

PKEY_BLOB2PROTK3 ioctl failed.

Definition at line 343 of file error.h.

◆ ZPC_ERROR_IOCTLCLR2SECK3

#define ZPC_ERROR_IOCTLCLR2SECK3   57

PKEY_CLR2SECK3 ioctl failed.

Definition at line 349 of file error.h.

◆ ZPC_ERROR_APQNS_NOTSET

#define ZPC_ERROR_APQNS_NOTSET   58

No APQNs set for this key, but required for this operation.

Definition at line 355 of file error.h.

◆ ZPC_ERROR_EC_SIGNATURE_LENGTH

#define ZPC_ERROR_EC_SIGNATURE_LENGTH   59

length of given signature is invalid for this EC key.

Definition at line 361 of file error.h.

◆ ZPC_ERROR_EC_KEY_PARTS_INCONSISTENT

#define ZPC_ERROR_EC_KEY_PARTS_INCONSISTENT   60

given public/private key parts are inconsistent. They do not belong to the same EC key.

Definition at line 368 of file error.h.

◆ ZPC_ERROR_CCA_HOST_LIB_NOT_AVAILABLE

#define ZPC_ERROR_CCA_HOST_LIB_NOT_AVAILABLE   61

the CCA host library is not available, but required for this function.

Definition at line 374 of file error.h.

◆ ZPC_ERROR_EP11_HOST_LIB_NOT_AVAILABLE

#define ZPC_ERROR_EP11_HOST_LIB_NOT_AVAILABLE   62

the EP11 host library is not available, but required for this function.

Definition at line 380 of file error.h.

◆ ZPC_ERROR_EC_PUBKEY_LENGTH

#define ZPC_ERROR_EC_PUBKEY_LENGTH   63

the given EC public key length is invalid.

Definition at line 386 of file error.h.

◆ ZPC_ERROR_EC_PRIVKEY_LENGTH

#define ZPC_ERROR_EC_PRIVKEY_LENGTH   64

the given EC private key length is invalid.

Definition at line 392 of file error.h.

◆ ZPC_ERROR_EC_NO_CCA_SECUREKEY_TOKEN

#define ZPC_ERROR_EC_NO_CCA_SECUREKEY_TOKEN   65

the given buffer does not contain a valid CCA secure key token.

Definition at line 398 of file error.h.

◆ ZPC_ERROR_EC_NO_EP11_SECUREKEY_TOKEN

#define ZPC_ERROR_EC_NO_EP11_SECUREKEY_TOKEN   66

the given buffer does not contain a valid EP11 secure key token.

Definition at line 404 of file error.h.

◆ ZPC_ERROR_EC_EP11_SPKI_INVALID_LENGTH

#define ZPC_ERROR_EC_EP11_SPKI_INVALID_LENGTH   67

the imported buffer contains an EP11 SPKI with an invalid length.

Definition at line 410 of file error.h.

◆ ZPC_ERROR_EC_EP11_SPKI_INVALID_CURVE

#define ZPC_ERROR_EC_EP11_SPKI_INVALID_CURVE   68

the imported buffer contains an EP11 SPKI with an invalid EC curve.

Definition at line 416 of file error.h.

◆ ZPC_ERROR_EC_EP11_SPKI_INVALID_PUBKEY

#define ZPC_ERROR_EC_EP11_SPKI_INVALID_PUBKEY   69

the imported buffer contains an EP11 SPKI with an invalid public key.

Definition at line 422 of file error.h.

◆ ZPC_ERROR_EC_EP11_SPKI_INVALID_MKVP

#define ZPC_ERROR_EC_EP11_SPKI_INVALID_MKVP   70

the imported buffer contains an EP11 MACed SPKI with an invalid MKVP.

Definition at line 428 of file error.h.

◆ ZPC_ERROR_BLOB_NOT_PKEY_EXTRACTABLE

#define ZPC_ERROR_BLOB_NOT_PKEY_EXTRACTABLE   71

the imported buffer contains a key blob that cannot be transformed into a protected key.

Definition at line 434 of file error.h.

◆ ZPC_ERROR_APQNS_INVALID_VERSION

#define ZPC_ERROR_APQNS_INVALID_VERSION   72

At least one APQN version is invalid for this function.

Definition at line 440 of file error.h.

◆ ZPC_ERROR_AES_NO_EP11_SECUREKEY_TOKEN

#define ZPC_ERROR_AES_NO_EP11_SECUREKEY_TOKEN   73

the given buffer does not contain a valid EP11 AES secure key token.

Definition at line 446 of file error.h.

◆ ZPC_ERROR_AES_NO_CCA_DATAKEY_TOKEN

#define ZPC_ERROR_AES_NO_CCA_DATAKEY_TOKEN   74

the given buffer does not contain a valid CCA datakey token.

Definition at line 452 of file error.h.

◆ ZPC_ERROR_AES_NO_CCA_CIPHERKEY_TOKEN

#define ZPC_ERROR_AES_NO_CCA_CIPHERKEY_TOKEN   75

the given buffer does not contain a valid CCA cipherkey token.

Definition at line 458 of file error.h.

◆ ZPC_ERROR_RNDGEN

#define ZPC_ERROR_RNDGEN   76

error creating random bytes.

Definition at line 464 of file error.h.

◆ ZPC_ERROR_GCM_IV_CREATED_INTERNALLY

#define ZPC_ERROR_GCM_IV_CREATED_INTERNALLY   77

invalid usage of a gcm context with an internally created iv.

Definition at line 470 of file error.h.

◆ ZPC_ERROR_UV_PVSECRETS_NOT_AVAILABLE

#define ZPC_ERROR_UV_PVSECRETS_NOT_AVAILABLE   78

support for UV retrievable secrets is not available, but required for this function.

Definition at line 476 of file error.h.

◆ ZPC_ERROR_PVSECRET_TYPE_NOT_SUPPORTED

#define ZPC_ERROR_PVSECRET_TYPE_NOT_SUPPORTED   79

the given pvsecret type is not supported by libzpc.

Definition at line 482 of file error.h.

◆ ZPC_ERROR_PVSECRET_ID_NOT_FOUND_IN_UV_OR_INVALID_TYPE

#define ZPC_ERROR_PVSECRET_ID_NOT_FOUND_IN_UV_OR_INVALID_TYPE   80

the given pvsecret ID does either not exist or belongs to a different secret type.

Definition at line 488 of file error.h.

◆ ZPC_ERROR_IOCTLVERIFYKEY2

#define ZPC_ERROR_IOCTLVERIFYKEY2   81

PKEY_VERIFYKEY2 ioctl failed.

Definition at line 494 of file error.h.

◆ ZPC_ERROR_HMAC_HASH_FUNCTION_NOTSET

#define ZPC_ERROR_HMAC_HASH_FUNCTION_NOTSET   82

HMAC hash function not set.

Definition at line 500 of file error.h.

◆ ZPC_ERROR_HMAC_HASH_FUNCTION_INVALID

#define ZPC_ERROR_HMAC_HASH_FUNCTION_INVALID   83

HMAC hash function invalid.

Definition at line 506 of file error.h.

◆ ZPC_ERROR_HMAC_KEYGEN_VIA_SYSFS

#define ZPC_ERROR_HMAC_KEYGEN_VIA_SYSFS   84

HMAC key generation via sysfs attributes failed.

Definition at line 512 of file error.h.

◆ ZPC_ERROR_CREATE_BLOCKSIZED_KEY

#define ZPC_ERROR_CREATE_BLOCKSIZED_KEY   85

Creating a block-sized HMAC key failed.

Definition at line 518 of file error.h.

◆ ZPC_ERROR_XTS_KEYGEN_VIA_SYSFS

#define ZPC_ERROR_XTS_KEYGEN_VIA_SYSFS   86

creating a full-xts key via sysfs attributes failed.

Definition at line 524 of file error.h.

Function Documentation

◆ zpc_error_string()

const char * zpc_error_string ( int err)

Map an error code to the corresponding error string.

Parameters
[in]errAn error code.
Returns
A pointer to an error string.