Home
last modified time | relevance | path

Searched refs:sk_value_len (Results 1 – 10 of 10) sorted by relevance

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.c198 if (OBJ_SEC(key)->sk_value_len > MD5_SSL_PAD_AND_KEY_SIZE) { in mac_init_ctx()
207 OBJ_SEC(key)->sk_value_len); in mac_init_ctx()
208 (void) memcpy(&md5_ipad[OBJ_SEC(key)->sk_value_len], in mac_init_ctx()
211 OBJ_SEC(key)->sk_value_len); in mac_init_ctx()
212 (void) memcpy(&md5_opad[OBJ_SEC(key)->sk_value_len], in mac_init_ctx()
231 if (OBJ_SEC(key)->sk_value_len > MD5_HMAC_BLOCK_SIZE) { in mac_init_ctx()
242 OBJ_SEC(key)->sk_value_len, (CK_BYTE_PTR)md5_ipad, in mac_init_ctx()
250 OBJ_SEC(key)->sk_value_len); in mac_init_ctx()
252 OBJ_SEC(key)->sk_value_len); in mac_init_ctx()
264 if (OBJ_SEC(key)->sk_value_len > SHA1_HMAC_BLOCK_SIZE) { in mac_init_ctx()
[all …]
H A DsoftAttributeUtil.c2673 rv = get_ulong_attr_from_template(&sck->sk_value_len,
2736 if (isValueLen && sck->sk_value_len != key_len) {
2741 sck->sk_value_len = key_len;
2778 if ((sck->sk_value_len < ARCFOUR_MIN_KEY_BYTES) ||
2779 (sck->sk_value_len > ARCFOUR_MAX_KEY_BYTES)) {
2797 if ((sck->sk_value_len != AES_MIN_KEY_BYTES) &&
2798 (sck->sk_value_len != AES_192_KEY_BYTES) &&
2799 (sck->sk_value_len != AES_MAX_KEY_BYTES)) {
2810 if ((sck->sk_value_len < BLOWFISH_MINBYTES) ||
2811 (sck->sk_value_len > BLOWFISH_MAXBYTES)) {
[all …]
H A DsoftObject.h60 CK_ULONG sk_value_len; member
666 ((o)->object_class_u.secret_key->sk_value_len)
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c1982 sck->sk_value_len = template[i].ulValueLen; in kernel_build_secret_key_object()
2021 if ((sck->sk_value_len < ARCFOUR_MIN_KEY_BYTES) || in kernel_build_secret_key_object()
2022 (sck->sk_value_len > ARCFOUR_MAX_KEY_BYTES)) { in kernel_build_secret_key_object()
2040 if (sck->sk_value_len < AES_MIN_KEY_BYTES) { in kernel_build_secret_key_object()
2051 if (sck->sk_value_len < BLOWFISH_MINBYTES) { in kernel_build_secret_key_object()
2062 if (sck->sk_value_len != DES_KEYSIZE) { in kernel_build_secret_key_object()
2073 if (sck->sk_value_len != DES2_KEYSIZE) { in kernel_build_secret_key_object()
2084 if (sck->sk_value_len != DES3_KEYSIZE) { in kernel_build_secret_key_object()
3550 sk->sk_value = malloc((sizeof (CK_BYTE) * sk->sk_value_len)); in kernel_copy_secret_key_attr()
3556 (sizeof (CK_BYTE) * sk->sk_value_len)); in kernel_copy_secret_key_attr()
H A DkernelObject.h52 CK_ULONG sk_value_len; member
261 (o->object_class_u.secret_key->sk_value_len)
H A DkernelEncrypt.c103 OBJ_SEC(key_p)->sk_value_len << 3; in C_EncryptInit()
H A DkernelDecrypt.c84 OBJ_SEC(key_p)->sk_value_len << 3; in kernel_decrypt_init()
H A DkernelUtil.c268 cipherKey = malloc(OBJ_SEC(key_p)->sk_value_len); in get_symmetric_key_value()
273 OBJ_SEC(key_p)->sk_value_len); in get_symmetric_key_value()
H A DkernelVerify.c100 OBJ_SEC(key_p)->sk_value_len << 3; in C_VerifyInit()
H A DkernelSign.c103 OBJ_SEC(key_p)->sk_value_len << 3; in C_SignInit()