Oracle Cryptographic Toolkit Programmer's Guide Release 2.0.4 A54082-02 |
|
This chapter discusses Oracle Cryptographic Toolkit external datatype codes. The following topics are covered:
Each data type name and its corresponding data type prefix used in the Oracle Cryptographic Toolkit is listed as a subheading below. The table below each subheading lists the possible data type values and their corresponding descriptions.
Each data type used in the Oracle Cryptographic Toolkit has a unique prefix. Following is a list of Oracle Cryptographic Toolkit data type names and prefixes.
nzttces
Enumerated type listing the current state of the cryptographic engine (CE).
States are:
NZTTCES_CONTINUE |
Continue processing input |
NZTTCES_END |
End processing input |
NZTTCES_RESET |
Reset processing and skip generating output |
nzttcef
Enumerated type to show the cryptographic engine categories.
Types are:
nzttIdentType
Enumerated type to indicate the type of identity.
Types are:
NZTTIDENTTYPE_X509v1
X.509v1
NZTTIDENTTYPE_X509v3
X509v3
NZTTIDENTTYPE_SYMMETRIC
Symmetric
nzttCipherType
Enumerated type listing all possible cryptographic algorithms.
Types are:
NZTTCIPHERTYPE_MD5 |
MD5 |
NZTTCIPHERTYPE_SHA |
SHA |
nzttdufmt
Enumerated type listing all possible toolkit data unit (TDU) formats. Depending on the function and cipher used, some may not be available.
Types are:
NZTTDUFMT_PKCS7 |
PKCS7 format |
NZTTDUFMT_RSAPAD |
RSA padded format |
NZTTDUFMT_ORACLEv1 |
Oracle v1 format |
nzttValState
Enumerated type listing states an identity can be in.
States are:
NZTTVALSTATE_NONE |
Needs to be validated |
NZTTVALSTATE_GOOD |
Validated |
NZTTVALSTATE_REVOKED |
Failed to validate |
nzttid
nzttID |
Unique IDs for personas and identities represented with 128 bits |
nztttstamp
nzttTStamp |
Timestamp as a 32 bit quantity in UTC |
Following is a list of Oracle Cryptographic Toolkit data structures. Each data structure is listed along with a brief description.
A function uses an output parameter block to describe each buffer when that function needs to fill (and possibly grow) an output buffer. The flags_nzttBufferBlock member tells the function whether the buffer can be grown. The buffer is automatically reallocated when flags_nzttBufferBlock is 0.
The buflen_nzttBufferBlock member is set to the length of the buffer before the function is called and equals the length of the buffer when the function is finished. If buflen_nzttBufferBlock is 0, then the initial pointer stored in buflen_nzttBufferBlock is ignored.
The usedlen_nzttBufferBlock member is set to the length of the object stored in the buffer when the function is finished. If the initial buffer had a non zero length, then it is possible that the object length is shorter than the buffer length.
The buffer_nzttBufferBlock member is a pointer to the output object. Refer to Table 2-3, "nzttBufferBlock".
The wallet structure contains one or more personas. Each of these personas contains its private key, its identity, and trusted third party identities. All identities are qualified with trust where the qualifier can indicate anything from untrusted to trusted for specific operations. Refer to Table 2-4, "nzttWallet".
The persona structure contains information about a persona. Refer to Table 2-5, "nzttPersona".
The identity structure contains information about an identity. Refer to Table 2-6, "nzttIdentity".