Searched refs:OBJ_SEC (Results 1 – 15 of 15) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softMAC.c | 197 if (OBJ_SEC(key)->sk_value_len > MD5_SSL_PAD_AND_KEY_SIZE) { in mac_init_ctx() 205 (void) memcpy(md5_ipad, OBJ_SEC(key)->sk_value, in mac_init_ctx() 206 OBJ_SEC(key)->sk_value_len); in mac_init_ctx() 207 (void) memcpy(&md5_ipad[OBJ_SEC(key)->sk_value_len], in mac_init_ctx() 209 (void) memcpy(md5_opad, OBJ_SEC(key)->sk_value, in mac_init_ctx() 210 OBJ_SEC(key)->sk_value_len); in mac_init_ctx() 211 (void) memcpy(&md5_opad[OBJ_SEC(key)->sk_value_len], in mac_init_ctx() 230 if (OBJ_SEC(key)->sk_value_len > MD5_HMAC_BLOCK_SIZE) { in mac_init_ctx() 240 rv = soft_digest(session_p, OBJ_SEC(key)->sk_value, in mac_init_ctx() 241 OBJ_SEC(key)->sk_value_len, (CK_BYTE_PTR)md5_ipad, in mac_init_ctx() [all …]
|
H A D | softDESCrypt.c | 110 OBJ_SEC(key_p)->sk_value, DES, ks); in soft_des_crypt_init_common() 117 OBJ_SEC(key_p)->sk_value, DES2, ks); in soft_des_crypt_init_common() 120 OBJ_SEC(key_p)->sk_value, DES3, ks); in soft_des_crypt_init_common() 135 des_init_keysched(OBJ_SEC(key_p)->sk_value, in soft_des_crypt_init_common() 142 des_init_keysched(OBJ_SEC(key_p)->sk_value, in soft_des_crypt_init_common() 145 des_init_keysched(OBJ_SEC(key_p)->sk_value, in soft_des_crypt_init_common()
|
H A D | softObjectUtil.c | 181 rv = soft_copy_secret_key_attr(OBJ_SEC(old_object), in soft_copy_object() 182 &(OBJ_SEC(new_objp))); in soft_copy_object()
|
H A D | softKeysUtil.c | 1746 if (OBJ_SEC(new_objp) == NULL) { in soft_unwrapkey() 1752 OBJ_SEC(new_objp) = sck; in soft_unwrapkey()
|
H A D | softAttributeUtil.c | 1141 if (OBJ_SEC(object_p)) { in soft_cleanup_object_bigint_attrs() 1156 free(OBJ_SEC(object_p)); in soft_cleanup_object_bigint_attrs() 1157 OBJ_SEC(object_p) = NULL; in soft_cleanup_object_bigint_attrs() 4376 (biginteger_t *)OBJ_SEC(object_p), 6679 bigint = (biginteger_t *)OBJ_SEC(obj);
|
H A D | softObject.h | 665 #define OBJ_SEC(o) \ macro
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelObjectUtil.c | 80 if (OBJ_SEC(objp) != NULL && OBJ_SEC_VALUE(objp) != NULL) { in kernel_cleanup_object() 85 free(OBJ_SEC(objp)); in kernel_cleanup_object() 86 OBJ_SEC(objp) = NULL; in kernel_cleanup_object() 165 rv = kernel_copy_secret_key_attr(OBJ_SEC(old_object), in kernel_copy_object() 166 &(OBJ_SEC(new_objp))); in kernel_copy_object()
|
H A D | kernelSoftCommon.c | 133 OBJ_SEC(key_p) = &skeyobj; in do_soft_hmac_init()
|
H A D | kernelUtil.c | 160 cipherKey = malloc(OBJ_SEC(key_p)->sk_value_len); in get_symmetric_key_value() 164 (void) memcpy(cipherKey, OBJ_SEC(key_p)->sk_value, in get_symmetric_key_value() 165 OBJ_SEC(key_p)->sk_value_len); in get_symmetric_key_value()
|
H A D | kernelDecrypt.c | 86 OBJ_SEC(key_p)->sk_value_len << 3; in kernel_decrypt_init()
|
H A D | kernelEncrypt.c | 105 OBJ_SEC(key_p)->sk_value_len << 3; in C_EncryptInit()
|
H A D | kernelVerify.c | 100 OBJ_SEC(key_p)->sk_value_len << 3; in C_VerifyInit()
|
H A D | kernelObject.h | 256 #define OBJ_SEC(o) \ macro
|
H A D | kernelSign.c | 103 OBJ_SEC(key_p)->sk_value_len << 3; in C_SignInit()
|
H A D | kernelAttributeUtil.c | 3864 bigint = (biginteger_t *)OBJ_SEC(obj); in kernel_find_match_attrs()
|