Home | History | Annotate | Line # | Download | only in man3
      1  1.1  christos =pod
      2  1.1  christos 
      3  1.1  christos =head1 NAME
      4  1.1  christos 
      5  1.1  christos OPENSSL_s390xcap - the IBM z processor capabilities vector
      6  1.1  christos 
      7  1.1  christos =head1 SYNOPSIS
      8  1.1  christos 
      9  1.1  christos  env OPENSSL_s390xcap=... <application>
     10  1.1  christos 
     11  1.1  christos =head1 DESCRIPTION
     12  1.1  christos 
     13  1.1  christos libcrypto supports z/Architecture instruction set extensions. These
     14  1.1  christos extensions are denoted by individual bits in the capabilities vector.
     15  1.1  christos When libcrypto is initialized, the bits returned by the STFLE instruction
     16  1.1  christos and by the QUERY functions are stored in the vector.
     17  1.1  christos 
     18  1.1  christos To change the set of instructions available to an application, you can
     19  1.1  christos set the B<OPENSSL_s390xcap> environment variable before you start the
     20  1.1  christos application. After initialization, the capability vector is ANDed bitwise
     21  1.1  christos with a mask which is derived from the environment variable.
     22  1.1  christos 
     23  1.1  christos The environment variable is a semicolon-separated list of tokens which is
     24  1.1  christos processed from left to right (whitespace is ignored):
     25  1.1  christos 
     26  1.1  christos  OPENSSL_s390xcap="<tok1>;<tok2>;..."
     27  1.1  christos 
     28  1.1  christos There are three types of tokens:
     29  1.1  christos 
     30  1.1  christos =over 4
     31  1.1  christos 
     32  1.1  christos =item <string>
     33  1.1  christos 
     34  1.1  christos The name of a processor generation. A bit in the environment variable's
     35  1.1  christos mask is set to one if and only if the specified processor generation
     36  1.1  christos implements the corresponding instruction set extension. Possible values
     37  1.1  christos are B<z900>, B<z990>, B<z9>, B<z10>, B<z196>, B<zEC12>, B<z13>, B<z14>
     38  1.1  christos and B<z15>.
     39  1.1  christos 
     40  1.1  christos =item <string>:<mask>:<mask>
     41  1.1  christos 
     42  1.1  christos The name of an instruction followed by two 64-bit masks. The part of the
     43  1.1  christos environment variable's mask corresponding to the specified instruction is
     44  1.1  christos set to the specified 128-bit mask. Possible values are B<kimd>, B<klmd>,
     45  1.1  christos B<km>, B<kmc>, B<kmac>, B<kmctr>, B<kmo>, B<kmf>, B<prno>, B<kma>, B<pcc>
     46  1.1  christos and B<kdsa>.
     47  1.1  christos 
     48  1.1  christos =item stfle:<mask>:<mask>:<mask>
     49  1.1  christos 
     50  1.1  christos Store-facility-list-extended (stfle) followed by three 64-bit masks. The
     51  1.1  christos part of the environment variable's mask corresponding to the stfle
     52  1.1  christos instruction is set to the specified 192-bit mask.
     53  1.1  christos 
     54  1.1  christos =back
     55  1.1  christos 
     56  1.1  christos The 64-bit masks are specified in hexadecimal notation. The 0x prefix is
     57  1.1  christos optional. Prefix a mask with a tilde, C<~>, to denote a bitwise NOT operation.
     58  1.1  christos 
     59  1.1  christos The following is a list of significant bits for each instruction. Colon
     60  1.1  christos rows separate the individual 64-bit masks. The bit numbers in the first
     61  1.1  christos column are consistent with [1], that is, 0 denotes the leftmost bit and
     62  1.1  christos the numbering is continuous across 64-bit mask boundaries.
     63  1.1  christos 
     64  1.1  christos       Bit     Mask     Facility/Function
     65  1.1  christos 
     66  1.1  christos  stfle:
     67  1.1  christos       # 17    1<<46    message-security assist
     68  1.1  christos       # 25    1<<38    store-clock-fast facility
     69  1.1  christos       :
     70  1.1  christos       # 76    1<<51    message-security assist extension 3
     71  1.1  christos       # 77    1<<50    message-security assist extension 4
     72  1.1  christos       :
     73  1.1  christos       #129    1<<62    vector facility
     74  1.1  christos       #134    1<<57    vector packed decimal facility
     75  1.1  christos       #135    1<<56    vector enhancements facility 1
     76  1.1  christos       #146    1<<45    message-security assist extension 8
     77  1.1  christos       #155    1<<36    message-security assist extension 9
     78  1.1  christos 
     79  1.1  christos  kimd :
     80  1.1  christos       #  1    1<<62    KIMD-SHA-1
     81  1.1  christos       #  2    1<<61    KIMD-SHA-256
     82  1.1  christos       #  3    1<<60    KIMD-SHA-512
     83  1.1  christos       # 32    1<<31    KIMD-SHA3-224
     84  1.1  christos       # 33    1<<30    KIMD-SHA3-256
     85  1.1  christos       # 34    1<<29    KIMD-SHA3-384
     86  1.1  christos       # 35    1<<28    KIMD-SHA3-512
     87  1.1  christos       # 36    1<<27    KIMD-SHAKE-128
     88  1.1  christos       # 37    1<<26    KIMD-SHAKE-256
     89  1.1  christos       :
     90  1.1  christos       # 65    1<<62    KIMD-GHASH
     91  1.1  christos 
     92  1.1  christos  klmd :
     93  1.1  christos       # 32    1<<31    KLMD-SHA3-224
     94  1.1  christos       # 33    1<<30    KLMD-SHA3-256
     95  1.1  christos       # 34    1<<29    KLMD-SHA3-384
     96  1.1  christos       # 35    1<<28    KLMD-SHA3-512
     97  1.1  christos       # 36    1<<27    KLMD-SHAKE-128
     98  1.1  christos       # 37    1<<26    KLMD-SHAKE-256
     99  1.1  christos       :
    100  1.1  christos 
    101  1.1  christos  km   :
    102  1.1  christos       # 18    1<<45    KM-AES-128
    103  1.1  christos       # 19    1<<44    KM-AES-192
    104  1.1  christos       # 20    1<<43    KM-AES-256
    105  1.1  christos       # 50    1<<13    KM-XTS-AES-128
    106  1.1  christos       # 52    1<<11    KM-XTS-AES-256
    107  1.1  christos       :
    108  1.1  christos 
    109  1.1  christos  kmc  :
    110  1.1  christos       # 18    1<<45    KMC-AES-128
    111  1.1  christos       # 19    1<<44    KMC-AES-192
    112  1.1  christos       # 20    1<<43    KMC-AES-256
    113  1.1  christos       :
    114  1.1  christos 
    115  1.1  christos  kmac :
    116  1.1  christos       # 18    1<<45    KMAC-AES-128
    117  1.1  christos       # 19    1<<44    KMAC-AES-192
    118  1.1  christos       # 20    1<<43    KMAC-AES-256
    119  1.1  christos       :
    120  1.1  christos 
    121  1.1  christos  kmctr:
    122  1.1  christos       :
    123  1.1  christos 
    124  1.1  christos  kmo  :
    125  1.1  christos       # 18    1<<45    KMO-AES-128
    126  1.1  christos       # 19    1<<44    KMO-AES-192
    127  1.1  christos       # 20    1<<43    KMO-AES-256
    128  1.1  christos       :
    129  1.1  christos 
    130  1.1  christos  kmf  :
    131  1.1  christos       # 18    1<<45    KMF-AES-128
    132  1.1  christos       # 19    1<<44    KMF-AES-192
    133  1.1  christos       # 20    1<<43    KMF-AES-256
    134  1.1  christos       :
    135  1.1  christos 
    136  1.1  christos  prno :
    137  1.1  christos       :
    138  1.1  christos 
    139  1.1  christos  kma  :
    140  1.1  christos       # 18    1<<45    KMA-GCM-AES-128
    141  1.1  christos       # 19    1<<44    KMA-GCM-AES-192
    142  1.1  christos       # 20    1<<43    KMA-GCM-AES-256
    143  1.1  christos       :
    144  1.1  christos 
    145  1.1  christos  pcc  :
    146  1.1  christos       :
    147  1.1  christos       # 64    1<<63    PCC-Scalar-Multiply-P256
    148  1.1  christos       # 65    1<<62    PCC-Scalar-Multiply-P384
    149  1.1  christos       # 66    1<<61    PCC-Scalar-Multiply-P521
    150  1.1  christos       # 72    1<<55    PCC-Scalar-Multiply-Ed25519
    151  1.1  christos       # 73    1<<54    PCC-Scalar-Multiply-Ed448
    152  1.1  christos       # 80    1<<47    PCC-Scalar-Multiply-X25519
    153  1.1  christos       # 81    1<<46    PCC-Scalar-Multiply-X448
    154  1.1  christos 
    155  1.1  christos  kdsa :
    156  1.1  christos       #  1    1<<62    KDSA-ECDSA-Verify-P256
    157  1.1  christos       #  2    1<<61    KDSA-ECDSA-Verify-P384
    158  1.1  christos       #  3    1<<60    KDSA-ECDSA-Verify-P521
    159  1.1  christos       #  9    1<<54    KDSA-ECDSA-Sign-P256
    160  1.1  christos       # 10    1<<53    KDSA-ECDSA-Sign-P384
    161  1.1  christos       # 11    1<<52    KDSA-ECDSA-Sign-P521
    162  1.1  christos       # 32    1<<31    KDSA-EdDSA-Verify-Ed25519
    163  1.1  christos       # 36    1<<27    KDSA-EdDSA-Verify-Ed448
    164  1.1  christos       # 40    1<<23    KDSA-EdDSA-Sign-Ed25519
    165  1.1  christos       # 44    1<<19    KDSA-EdDSA-Sign-Ed448
    166  1.1  christos       :
    167  1.1  christos 
    168  1.1  christos =head1 RETURN VALUES
    169  1.1  christos 
    170  1.1  christos Not available.
    171  1.1  christos 
    172  1.1  christos =head1 EXAMPLES
    173  1.1  christos 
    174  1.1  christos Disables all instruction set extensions which the z196 processor does not implement:
    175  1.1  christos 
    176  1.1  christos  OPENSSL_s390xcap="z196"
    177  1.1  christos 
    178  1.1  christos Disables the vector facility:
    179  1.1  christos 
    180  1.1  christos  OPENSSL_s390xcap="stfle:~0:~0:~0x4000000000000000"
    181  1.1  christos 
    182  1.1  christos Disables the KM-XTS-AES and the KIMD-SHAKE function codes:
    183  1.1  christos 
    184  1.1  christos  OPENSSL_s390xcap="km:~0x2800:~0;kimd:~0xc000000:~0"
    185  1.1  christos 
    186  1.1  christos =head1 SEE ALSO
    187  1.1  christos 
    188  1.1  christos [1] z/Architecture Principles of Operation, SA22-7832-12
    189  1.1  christos 
    190  1.1  christos =head1 COPYRIGHT
    191  1.1  christos 
    192  1.1  christos Copyright 2018-2020 The OpenSSL Project Authors. All Rights Reserved.
    193  1.1  christos 
    194  1.1  christos Licensed under the Apache License 2.0 (the "License").  You may not use
    195  1.1  christos this file except in compliance with the License.  You can obtain a copy
    196  1.1  christos in the file LICENSE in the source distribution or at
    197  1.1  christos L<https://www.openssl.org/source/license.html>.
    198  1.1  christos 
    199  1.1  christos =cut
    200