Class: PKCS11::CStruct
- Inherits:
-
Object
- Object
- PKCS11::CStruct
- Defined in:
- lib/pkcs11/extensions.rb,
ext/pk11.c
Overview
Base class of all PKCS#11 structs.
Direct Known Subclasses
CK_AES_CBC_ENCRYPT_DATA_PARAMS, CK_AES_CTR_PARAMS, CK_ARIA_CBC_ENCRYPT_DATA_PARAMS, CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS, CK_CCM_PARAMS, CK_CMS_SIG_PARAMS, CK_C_INITIALIZE_ARGS, CK_DATE, CK_DES_CBC_ENCRYPT_DATA_PARAMS, CK_DSA_PARAMETER_GEN_PARAM, CK_ECDH1_DERIVE_PARAMS, CK_ECDH_AES_KEY_WRAP_PARAMS, CK_ECMQV_DERIVE_PARAMS, CK_GCM_PARAMS, CK_GOSTR3410_DERIVE_PARAMS, CK_GOSTR3410_KEY_WRAP_PARAMS, CK_INFO, CK_KEA_DERIVE_PARAMS, CK_KEY_DERIVATION_STRING_DATA, CK_KEY_WRAP_SET_OAEP_PARAMS, CK_KIP_PARAMS, CK_MECHANISM_INFO, CK_OTP_PARAM, CK_OTP_PARAMS, CK_OTP_SIGNATURE_INFO, CK_PBE_PARAMS, CK_PKCS5_PBKD2_PARAMS, CK_RC2_CBC_PARAMS, CK_RC2_MAC_GENERAL_PARAMS, CK_RC5_CBC_PARAMS, CK_RC5_MAC_GENERAL_PARAMS, CK_RC5_PARAMS, CK_RSA_AES_KEY_WRAP_PARAMS, CK_RSA_PKCS_OAEP_PARAMS, CK_RSA_PKCS_PSS_PARAMS, CK_SESSION_INFO, CK_SKIPJACK_PRIVATE_WRAP_PARAMS, CK_SKIPJACK_RELAYX_PARAMS, CK_SLOT_INFO, CK_SSL3_KEY_MAT_OUT, CK_SSL3_KEY_MAT_PARAMS, CK_SSL3_MASTER_KEY_DERIVE_PARAMS, CK_SSL3_RANDOM_DATA, CK_TLS12_KEY_MAT_PARAMS, CK_TLS12_MASTER_KEY_DERIVE_PARAMS, CK_TLS_KDF_PARAMS, CK_TLS_MAC_PARAMS, CK_TOKEN_INFO, CK_VERSION, CK_WTLS_KEY_MAT_OUT, CK_WTLS_KEY_MAT_PARAMS, CK_WTLS_MASTER_KEY_DERIVE_PARAMS, CK_WTLS_PRF_PARAMS, CK_WTLS_RANDOM_DATA, CK_X9_42_DH1_DERIVE_PARAMS, CK_X9_42_DH2_DERIVE_PARAMS, CK_X9_42_MQV_DERIVE_PARAMS
Instance Method Summary collapse
- #inspect ⇒ Object
-
#to_hash ⇒ Hash
With attribute names and current values.
-
#values ⇒ Array<String>
Attribute names.
Instance Method Details
#inspect ⇒ Object
38 39 40 |
# File 'lib/pkcs11/extensions.rb', line 38 def inspect "#<#{self.class} #{to_hash.map{|k,v| "#{k}=#{v.inspect}"}.join(", ") }>" end |
#to_hash ⇒ Hash
Returns with attribute names and current values.
35 36 37 |
# File 'lib/pkcs11/extensions.rb', line 35 def to_hash members.inject({}){|h,v| h[v.intern] = send(v); h } end |
#values ⇒ Array<String>
Returns attribute names.
31 32 33 |
# File 'lib/pkcs11/extensions.rb', line 31 def values members.inject([]){|a,v| a << send(v) } end |