Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
crypt_s390.h File Reference
#include <asm/errno.h>
#include <asm/facility.h>

Go to the source code of this file.

Macros

#define CRYPT_S390_OP_MASK   0xFF00
 
#define CRYPT_S390_FUNC_MASK   0x00FF
 
#define CRYPT_S390_PRIORITY   300
 
#define CRYPT_S390_COMPOSITE_PRIORITY   400
 
#define CRYPT_S390_MSA   0x1
 
#define CRYPT_S390_MSA3   0x2
 
#define CRYPT_S390_MSA4   0x4
 

Enumerations

enum  crypt_s390_operations {
  CRYPT_S390_KM = 0x0100, CRYPT_S390_KMC = 0x0200, CRYPT_S390_KIMD = 0x0300, CRYPT_S390_KLMD = 0x0400,
  CRYPT_S390_KMAC = 0x0500, CRYPT_S390_KMCTR = 0x0600
}
 
enum  crypt_s390_km_func {
  KM_QUERY = CRYPT_S390_KM | 0x0, KM_DEA_ENCRYPT = CRYPT_S390_KM | 0x1, KM_DEA_DECRYPT = CRYPT_S390_KM | 0x1 | 0x80, KM_TDEA_128_ENCRYPT = CRYPT_S390_KM | 0x2,
  KM_TDEA_128_DECRYPT = CRYPT_S390_KM | 0x2 | 0x80, KM_TDEA_192_ENCRYPT = CRYPT_S390_KM | 0x3, KM_TDEA_192_DECRYPT = CRYPT_S390_KM | 0x3 | 0x80, KM_AES_128_ENCRYPT = CRYPT_S390_KM | 0x12,
  KM_AES_128_DECRYPT = CRYPT_S390_KM | 0x12 | 0x80, KM_AES_192_ENCRYPT = CRYPT_S390_KM | 0x13, KM_AES_192_DECRYPT = CRYPT_S390_KM | 0x13 | 0x80, KM_AES_256_ENCRYPT = CRYPT_S390_KM | 0x14,
  KM_AES_256_DECRYPT = CRYPT_S390_KM | 0x14 | 0x80, KM_XTS_128_ENCRYPT = CRYPT_S390_KM | 0x32, KM_XTS_128_DECRYPT = CRYPT_S390_KM | 0x32 | 0x80, KM_XTS_256_ENCRYPT = CRYPT_S390_KM | 0x34,
  KM_XTS_256_DECRYPT = CRYPT_S390_KM | 0x34 | 0x80
}
 
enum  crypt_s390_kmc_func {
  KMC_QUERY = CRYPT_S390_KMC | 0x0, KMC_DEA_ENCRYPT = CRYPT_S390_KMC | 0x1, KMC_DEA_DECRYPT = CRYPT_S390_KMC | 0x1 | 0x80, KMC_TDEA_128_ENCRYPT = CRYPT_S390_KMC | 0x2,
  KMC_TDEA_128_DECRYPT = CRYPT_S390_KMC | 0x2 | 0x80, KMC_TDEA_192_ENCRYPT = CRYPT_S390_KMC | 0x3, KMC_TDEA_192_DECRYPT = CRYPT_S390_KMC | 0x3 | 0x80, KMC_AES_128_ENCRYPT = CRYPT_S390_KMC | 0x12,
  KMC_AES_128_DECRYPT = CRYPT_S390_KMC | 0x12 | 0x80, KMC_AES_192_ENCRYPT = CRYPT_S390_KMC | 0x13, KMC_AES_192_DECRYPT = CRYPT_S390_KMC | 0x13 | 0x80, KMC_AES_256_ENCRYPT = CRYPT_S390_KMC | 0x14,
  KMC_AES_256_DECRYPT = CRYPT_S390_KMC | 0x14 | 0x80, KMC_PRNG = CRYPT_S390_KMC | 0x43
}
 
enum  crypt_s390_kmctr_func {
  KMCTR_QUERY = CRYPT_S390_KMCTR | 0x0, KMCTR_DEA_ENCRYPT = CRYPT_S390_KMCTR | 0x1, KMCTR_DEA_DECRYPT = CRYPT_S390_KMCTR | 0x1 | 0x80, KMCTR_TDEA_128_ENCRYPT = CRYPT_S390_KMCTR | 0x2,
  KMCTR_TDEA_128_DECRYPT = CRYPT_S390_KMCTR | 0x2 | 0x80, KMCTR_TDEA_192_ENCRYPT = CRYPT_S390_KMCTR | 0x3, KMCTR_TDEA_192_DECRYPT = CRYPT_S390_KMCTR | 0x3 | 0x80, KMCTR_AES_128_ENCRYPT = CRYPT_S390_KMCTR | 0x12,
  KMCTR_AES_128_DECRYPT = CRYPT_S390_KMCTR | 0x12 | 0x80, KMCTR_AES_192_ENCRYPT = CRYPT_S390_KMCTR | 0x13, KMCTR_AES_192_DECRYPT = CRYPT_S390_KMCTR | 0x13 | 0x80, KMCTR_AES_256_ENCRYPT = CRYPT_S390_KMCTR | 0x14,
  KMCTR_AES_256_DECRYPT = CRYPT_S390_KMCTR | 0x14 | 0x80
}
 
enum  crypt_s390_kimd_func {
  KIMD_QUERY = CRYPT_S390_KIMD | 0, KIMD_SHA_1 = CRYPT_S390_KIMD | 1, KIMD_SHA_256 = CRYPT_S390_KIMD | 2, KIMD_SHA_512 = CRYPT_S390_KIMD | 3,
  KIMD_GHASH = CRYPT_S390_KIMD | 65
}
 
enum  crypt_s390_klmd_func { KLMD_QUERY = CRYPT_S390_KLMD | 0, KLMD_SHA_1 = CRYPT_S390_KLMD | 1, KLMD_SHA_256 = CRYPT_S390_KLMD | 2, KLMD_SHA_512 = CRYPT_S390_KLMD | 3 }
 
enum  crypt_s390_kmac_func { KMAC_QUERY = CRYPT_S390_KMAC | 0, KMAC_DEA = CRYPT_S390_KMAC | 1, KMAC_TDEA_128 = CRYPT_S390_KMAC | 2, KMAC_TDEA_192 = CRYPT_S390_KMAC | 3 }
 

Macro Definition Documentation

#define CRYPT_S390_COMPOSITE_PRIORITY   400

Definition at line 26 of file crypt_s390.h.

#define CRYPT_S390_FUNC_MASK   0x00FF

Definition at line 23 of file crypt_s390.h.

#define CRYPT_S390_MSA   0x1

Definition at line 28 of file crypt_s390.h.

#define CRYPT_S390_MSA3   0x2

Definition at line 29 of file crypt_s390.h.

#define CRYPT_S390_MSA4   0x4

Definition at line 30 of file crypt_s390.h.

#define CRYPT_S390_OP_MASK   0xFF00

Definition at line 22 of file crypt_s390.h.

#define CRYPT_S390_PRIORITY   300

Definition at line 25 of file crypt_s390.h.

Enumeration Type Documentation

Enumerator:
KIMD_QUERY 
KIMD_SHA_1 
KIMD_SHA_256 
KIMD_SHA_512 
KIMD_GHASH 

Definition at line 111 of file crypt_s390.h.

Enumerator:
KLMD_QUERY 
KLMD_SHA_1 
KLMD_SHA_256 
KLMD_SHA_512 

Definition at line 123 of file crypt_s390.h.

Enumerator:
KM_QUERY 
KM_DEA_ENCRYPT 
KM_DEA_DECRYPT 
KM_TDEA_128_ENCRYPT 
KM_TDEA_128_DECRYPT 
KM_TDEA_192_ENCRYPT 
KM_TDEA_192_DECRYPT 
KM_AES_128_ENCRYPT 
KM_AES_128_DECRYPT 
KM_AES_192_ENCRYPT 
KM_AES_192_DECRYPT 
KM_AES_256_ENCRYPT 
KM_AES_256_DECRYPT 
KM_XTS_128_ENCRYPT 
KM_XTS_128_DECRYPT 
KM_XTS_256_ENCRYPT 
KM_XTS_256_DECRYPT 

Definition at line 46 of file crypt_s390.h.

Enumerator:
KMAC_QUERY 
KMAC_DEA 
KMAC_TDEA_128 
KMAC_TDEA_192 

Definition at line 134 of file crypt_s390.h.

Enumerator:
KMC_QUERY 
KMC_DEA_ENCRYPT 
KMC_DEA_DECRYPT 
KMC_TDEA_128_ENCRYPT 
KMC_TDEA_128_DECRYPT 
KMC_TDEA_192_ENCRYPT 
KMC_TDEA_192_DECRYPT 
KMC_AES_128_ENCRYPT 
KMC_AES_128_DECRYPT 
KMC_AES_192_ENCRYPT 
KMC_AES_192_DECRYPT 
KMC_AES_256_ENCRYPT 
KMC_AES_256_DECRYPT 
KMC_PRNG 

Definition at line 70 of file crypt_s390.h.

Enumerator:
KMCTR_QUERY 
KMCTR_DEA_ENCRYPT 
KMCTR_DEA_DECRYPT 
KMCTR_TDEA_128_ENCRYPT 
KMCTR_TDEA_128_DECRYPT 
KMCTR_TDEA_192_ENCRYPT 
KMCTR_TDEA_192_DECRYPT 
KMCTR_AES_128_ENCRYPT 
KMCTR_AES_128_DECRYPT 
KMCTR_AES_192_ENCRYPT 
KMCTR_AES_192_DECRYPT 
KMCTR_AES_256_ENCRYPT 
KMCTR_AES_256_DECRYPT 

Definition at line 91 of file crypt_s390.h.

Enumerator:
CRYPT_S390_KM 
CRYPT_S390_KMC 
CRYPT_S390_KIMD 
CRYPT_S390_KLMD 
CRYPT_S390_KMAC 
CRYPT_S390_KMCTR 

Definition at line 33 of file crypt_s390.h.