Discuss this help topic in SecureBlackbox Forum

TSBKeyUsageType

Declared in     


Filter: C#/Java  VB.NET  Pascal  C++  


Defines possible key usages.

Declaration

[C#/Java]
    TSBKeyUsageType = int;
        const short kuDigitalSignature = 1;
        const short kuNonRepudiation = 2;
        const short kuKeyEncipherment = 4;
        const short kuDataEncipherment = 8;
        const short kuKeyAgreement = 16;
        const short kuKeyCertSign = 32;
        const short kuCRLSign = 64;
        const short kuEncipherOnly = 128;
        const short kuDecipherOnly = 256;

[VB.NET]
    TSBKeyUsageType As Integer
        Const kuDigitalSignature As SmallInt = 1
        Const kuNonRepudiation As SmallInt = 2
        Const kuKeyEncipherment As SmallInt = 4
        Const kuDataEncipherment As SmallInt = 8
        Const kuKeyAgreement As SmallInt = 16
        Const kuKeyCertSign As SmallInt = 32
        Const kuCRLSign As SmallInt = 64
        Const kuEncipherOnly As SmallInt = 128
        Const kuDecipherOnly As SmallInt = 256

[Pascal]
    TSBKeyUsageType = (kuDigitalSignature, kuNonRepudiation, kuKeyEncipherment, kuDataEncipherment, kuKeyAgreement, kuKeyCertSign, kuCRLSign, kuEncipherOnly, kuDecipherOnly);

[C++]
    typedef uint8_t TSBKeyUsageTypeRaw;
    typedef enum { kuDigitalSignature = 0, kuNonRepudiation = 1, kuKeyEncipherment = 2, kuDataEncipherment = 3, kuKeyAgreement = 4, kuKeyCertSign = 5, kuCRLSign = 6, kuEncipherOnly = 7, kuDecipherOnly = 8 } TSBKeyUsageType;
    
    typedef uint32_t TSBKeyUsageRaw;
    typedef enum { f_kuDigitalSignature = 1, f_kuNonRepudiation = 2, f_kuKeyEncipherment = 4, f_kuDataEncipherment = 8, f_kuKeyAgreement = 16, f_kuKeyCertSign = 32, f_kuCRLSign = 64, f_kuEncipherOnly = 128, f_kuDecipherOnly = 256 } TSBKeyUsage;

Description

Possible values:


Declared in

.NET:
  • Namespace: SBX509Ext
  • Assembly: SecureBlackbox
VCL:
  • Unit: SBX509Ext
Java:
  • Package: SecureBlackbox.Base.jar
C++:
  • sbx509ext.h

Discuss this help topic in SecureBlackbox Forum