/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | dig_mgr.c | 481 CK_ULONG *hash_len) 491 if (hash == NULL && hash_len == NULL) 497 *hash_len = SHA1_DIGEST_LENGTH; 500 if (*hash_len < SHA1_DIGEST_LENGTH) 503 if (hash_len) 504 *hash_len = SHA1_DIGEST_LENGTH; 509 *hash_len = MD5_DIGEST_LENGTH; 512 if (*hash_len < MD5_DIGEST_LENGTH) 515 if (hash_len) 516 *hash_len 478 digest_mgr_digest_final(SESSION *sess, DIGEST_CONTEXT *ctx, CK_BYTE *hash, CK_ULONG *hash_len) argument [all...] |
H A D | mech_md5.c | 336 CK_ULONG key_bytes, hash_len, hmac_len; local 386 hash_len = *out_data_len; 389 hash, &hash_len); 398 for (i = 0; i < hash_len; i++) { 441 hash_len = sizeof (hash); 442 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len); 464 rc = digest_mgr_digest_update(sess, &digest_ctx, hash, hash_len); 470 hash_len = sizeof (hash); 471 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len);
|
H A D | mech_sha.c | 70 CK_ULONG key_bytes, hash_len, hmac_len; local 118 hash_len = sizeof (hash); 120 attr->pValue, attr->ulValueLen, hash, &hash_len); 129 for (i = 0; i < hash_len; i++) { 170 hash_len = sizeof (hash); 171 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len); 193 rc = digest_mgr_digest_update(sess, &digest_ctx, hash, hash_len); 199 hash_len = sizeof (hash); 200 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len);
|
H A D | mech_rsa.c | 408 CK_ULONG ber_data_len, hash_len, octet_str_len, oid_len; local 421 hash_len = MD5_DIGEST_LENGTH; 426 hash_len = SHA1_DIGEST_LENGTH; 437 in_data_len, hash, &hash_len); 442 hash, hash_len); 537 CK_ULONG ber_data_len, hash_len, octet_str_len, oid_len; local 550 hash_len = MD5_DIGEST_LENGTH; 555 hash_len = SHA1_DIGEST_LENGTH; 566 in_data_len, hash, &hash_len); 571 hash, hash_len); 659 CK_ULONG ber_data_len, hash_len, octet_str_len, oid_len; local 741 CK_ULONG ber_data_len, hash_len, octet_str_len, oid_len; local [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softDSA.c | 226 CK_ULONG hash_len = SHA1_HASH_SIZE; local 245 rv = soft_digest_final(session_p, hash, &hash_len); 247 rv = soft_digest(session_p, pData, ulDataLen, hash, &hash_len); 261 rv = soft_dsa_sign(session_p, hash, hash_len, pSigned, pulSignedLen); 371 CK_ULONG hash_len = SHA1_HASH_SIZE; local 376 rv = soft_digest_final(session_p, hash, &hash_len); 378 rv = soft_digest(session_p, pData, ulDataLen, hash, &hash_len); 392 rv = soft_dsa_verify(session_p, hash, hash_len,
|
H A D | softEC.c | 430 CK_ULONG hash_len = SHA1_HASH_SIZE; local 434 rv = soft_digest_final(session_p, hash, &hash_len); 437 &hash_len); 450 rv = soft_ecc_sign(session_p, hash, hash_len, pSigned, pulSignedLen); 600 CK_ULONG hash_len = SHA1_HASH_SIZE; local 603 rv = soft_digest_final(session_p, hash, &hash_len); 605 rv = soft_digest(session_p, pData, ulDataLen, hash, &hash_len); 621 rv = soft_ecc_verify(session_p, hash, hash_len,
|
H A D | softMAC.c | 226 CK_ULONG hash_len = MD5_HASH_SIZE; local 243 &hash_len); 247 (void) memcpy(md5_opad, md5_ipad, hash_len); 292 CK_ULONG hash_len = SHA1_HASH_SIZE; local 309 &hash_len); 313 (void) memcpy(sha1_opad, sha1_ipad, hash_len); 332 CK_ULONG hash_len = SHA256_DIGEST_LENGTH; local 349 &hash_len); 353 (void) memcpy(sha_opad, sha_ipad, hash_len); 373 CK_ULONG hash_len local 414 CK_ULONG hash_len = SHA512_DIGEST_LENGTH; local [all...] |
H A D | softRSA.c | 978 CK_ULONG hash_len = SHA512_DIGEST_LENGTH; local 1017 rv = soft_digest_final(session_p, hash, &hash_len); 1019 rv = soft_digest(session_p, pData, ulDataLen, hash, &hash_len); 1038 (void) memcpy(der_data + MD5_DER_PREFIX_Len, hash, hash_len); 1039 der_data_len = MD5_DER_PREFIX_Len + hash_len; 1045 (void) memcpy(der_data + der_len, hash, hash_len); 1046 der_data_len = der_len + hash_len; 1051 (void) memcpy(der_data + SHA2_DER_PREFIX_Len, hash, hash_len); 1052 der_data_len = SHA2_DER_PREFIX_Len + hash_len; 1057 (void) memcpy(der_data + SHA2_DER_PREFIX_Len, hash, hash_len); 1094 CK_ULONG hash_len = SHA512_DIGEST_LENGTH; local [all...] |
H A D | softKeysUtil.c | 858 CK_ULONG hash_len = SHA512_DIGEST_LENGTH; local 998 OBJ_SEC_VALUE_LEN(basekey_p), hash, &hash_len); 1035 (hash + hash_len - secret_key_len),
|
/illumos-gate/usr/src/lib/libelfsign/common/ |
H A D | elfsignlib.c | 894 elfsign_hash_common(ELFsign_t ess, uchar_t *hash, size_t *hash_len, argument 903 if (*hash_len < SHA1_DIGEST_LENGTH) 906 bzero(hash, *hash_len); 969 *hash_len = SHA1_DIGEST_LENGTH; 971 const int hashstr_len = (*hash_len) * 2 + 1; 975 tohexstr(hash, *hash_len, hashstr, hashstr_len); 988 * IN: ess, hash_len 989 * OUT: hash, hash_len 992 elfsign_hash(ELFsign_t ess, uchar_t *hash, size_t *hash_len) argument 994 return (elfsign_hash_common(ess, hash, hash_len, B_FALS 1005 elfsign_hash_mem_resident(ELFsign_t ess, uchar_t *hash, size_t *hash_len) argument 1028 size_t hash_len; local [all...] |
/illumos-gate/usr/src/cmd/cmd-crypto/elfsign/ |
H A D | elfsign.c | 502 size_t hash_len = SIG_MAX_LENGTH; local 589 if (elfsign_hash(cmd_info.ess, hash, &hash_len) != ELFSIGN_SUCCESS) { 598 hash, hash_len, sig, &sig_len)) { 649 bzero(hash, hash_len);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cryptmod.c | 120 uint_t hash_len; member in struct:__anon5240 344 headspace += null_hash.hash_len + null_hash.confound_len; 347 headspace += crc32_hash.hash_len + crc32_hash.confound_len; 350 headspace += md5_hash.hash_len + md5_hash.confound_len; 356 headspace += md5_hash.hash_len + md5_hash.confound_len; 382 cipherlen = (size_t)P2ROUNDUP(null_hash.hash_len + 386 cipherlen = (size_t)P2ROUNDUP(md5_hash.hash_len + 391 cipherlen = (size_t)P2ROUNDUP(crc32_hash.hash_len + 398 sha1_hash.hash_len; 402 plainlen, 1) + md5_hash.hash_len; [all...] |