z/OS Open Cryptographic Services Facility Application Programming
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


CSSM_GetContextAttribute

z/OS Open Cryptographic Services Facility Application Programming
SC24-5899-01

Purpose

This function retrieves the context attributes information for the given context and attribute type. Note that not all context attributes can be queried using this function. For example, key size cannot be queried. To determine the key size, query the key. The key size data is contained in the header of the key. These attribute types can be retrieved using CSSM_GetContextAttribute:

Format

CSSM_CONTEXT_ATTRIBUTE_PTR CSSMAPI CSSM_GetContextAttribute (const CSSM_CONTEXT_PTR Context,
                                                             uint32 AttributeType)
  • custom
  • key
  • output size
  • start date
  • padding
  • CSP handle
  • key length
  • seed
  • end date
  • random
  • passphrase
  • keytype
  • rounds
  • remote KR profile
  • mode
  • effective bits
  • key attributes
  • salt
  • local KR profile
  • algorithm parameters
  • initialization vector

Parameters

Input

Context
A pointer to the context.
AttributeType
The attribute type of the specified context.

Return Value

The pointer to the CSSM_ATTRIBUTE structure that describes the context attributes associated with the context and the attribute type. If the pointer is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.

Related Information

CSSM_GetContext

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014