Home
last modified time | relevance | path

Searched refs:digest (Results 1 – 25 of 139) sorted by relevance

123456

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDigestUtil.c69 if (session_p->digest.context == NULL) { in soft_digest_init()
74 session_p->digest.mech.mechanism = CKM_MD5; in soft_digest_init()
87 if (session_p->digest.context == NULL) { in soft_digest_init()
94 session_p->digest.mech.ulParameterLen = in soft_digest_init()
112 if (session_p->digest.context == NULL) { in soft_digest_init()
328 free(session_p->digest.context); in soft_digest_common()
329 session_p->digest.context = NULL; in soft_digest_common()
522 if (session_p->digest.context != NULL) { in soft_digest_cleanup()
523 free(session_p->digest.context); in soft_digest_cleanup()
524 session_p->digest.context = NULL; in soft_digest_cleanup()
[all …]
H A DsoftSessionUtil.c362 if (session_p->digest.context != NULL) in soft_delete_session()
363 free(session_p->digest.context); in soft_delete_session()
545 &session_p->digest, in soft_get_operationstate()
554 session_p->digest.context, in soft_get_operationstate()
563 session_p->digest.context, in soft_get_operationstate()
665 if (session_p->digest.context && in soft_set_operationstate()
667 free_it = session_p->digest.context; in soft_set_operationstate()
668 session_p->digest.context = NULL; in soft_set_operationstate()
671 if (session_p->digest.context == NULL) { in soft_set_operationstate()
679 session_p->digest.context = free_it; in soft_set_operationstate()
[all …]
H A DsoftDigest.c62 if (session_p->digest.flags & CRYPTO_OPERATION_ACTIVE) { in C_DigestInit()
75 session_p->digest.flags = CRYPTO_OPERATION_ACTIVE; in C_DigestInit()
83 session_p->digest.flags &= ~CRYPTO_OPERATION_ACTIVE; in C_DigestInit()
133 if (!(session_p->digest.flags & CRYPTO_OPERATION_ACTIVE)) { in C_Digest()
147 if (session_p->digest.flags & CRYPTO_OPERATION_UPDATE) { in C_Digest()
235 if (!(session_p->digest.flags & CRYPTO_OPERATION_ACTIVE)) { in C_DigestUpdate()
246 session_p->digest.flags |= CRYPTO_OPERATION_UPDATE; in C_DigestUpdate()
313 if (!(session_p->digest.flags & CRYPTO_OPERATION_ACTIVE)) { in C_DigestKey()
328 session_p->digest.flags |= (CRYPTO_KEY_DIGESTED | in C_DigestKey()
398 if (!(session_p->digest.flags & CRYPTO_OPERATION_ACTIVE)) { in C_DigestFinal()
H A DsoftRSA.c512 free(session_p->digest.context); in soft_rsa_sign_verify_init_common()
513 session_p->digest.context = NULL; in soft_rsa_sign_verify_init_common()
514 session_p->digest.flags = 0; in soft_rsa_sign_verify_init_common()
626 free(session_p->digest.context); in soft_rsa_sign_common()
628 session_p->digest.flags = 0; in soft_rsa_sign_common()
736 free(session_p->digest.context); in soft_rsa_verify_common()
738 session_p->digest.flags = 0; in soft_rsa_verify_common()
992 free(session_p->digest.context); in soft_rsa_digest_sign_common()
994 session_p->digest.flags = 0; in soft_rsa_digest_sign_common()
1078 session_p->digest.flags = 0; in soft_rsa_digest_sign_common()
[all …]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dmd4_mod.c341 MD4Final((uchar_t *)digest-> in md4_digest_final_uio()
530 if ((digest->cd_length == 0) || in md4_digest()
561 digest->cd_length = 0; in md4_digest()
569 switch (digest->cd_format) { in md4_digest()
591 digest->cd_length = 0; in md4_digest()
645 if ((digest->cd_length == 0) || in md4_digest_final()
654 switch (digest->cd_format) { in md4_digest_final()
676 digest->cd_length = 0; in md4_digest_final()
723 digest->cd_length = 0; in md4_digest_atomic()
731 switch (digest->cd_format) { in md4_digest_atomic()
[all …]
H A Dsha1_mod.c86 SHA1Final(digest, ctx); \
592 digest->cd_length = 0; in sha1_digest()
622 digest->cd_length = 0; in sha1_digest()
707 digest->cd_length = 0; in sha1_digest_final()
755 digest->cd_length = 0; in sha1_digest_atomic()
783 digest->cd_length = 0; in sha1_digest_atomic()
968 SHA1Final(digest, ictx); in sha1_mac()
1093 SHA1Final(digest, in sha1_mac_final()
1106 digest_len, digest); in sha1_mac_final()
1111 digest_len, digest); in sha1_mac_final()
[all …]
H A Dmd5_mod.c128 MD5Final(digest, ctx); \
646 digest->cd_length = 0; in md5_digest()
676 digest->cd_length = 0; in md5_digest()
761 digest->cd_length = 0; in md5_digest_final()
808 digest->cd_length = 0; in md5_digest_atomic()
836 digest->cd_length = 0; in md5_digest_atomic()
1050 MD5Final(digest, in md5_mac_final()
1063 digest_len, digest); in md5_mac_final()
1068 digest_len, digest); in md5_mac_final()
1202 digest_len, digest); in md5_mac_atomic()
[all …]
H A Dsha2_mod.c83 SHA2Final(digest, ctx); \
649 digest->cd_length = 0; in sha2_digest()
679 digest->cd_length = 0; in sha2_digest()
784 digest->cd_length = 0; in sha2_digest_final()
830 digest->cd_length = 0; in sha2_digest_atomic()
863 digest->cd_length = 0; in sha2_digest_atomic()
1133 SHA2Final(digest, in sha2_mac_final()
1146 digest_len, digest); in sha2_mac_final()
1151 digest_len, digest); in sha2_mac_final()
1310 digest_len, digest); in sha2_mac_atomic()
[all …]
H A Dskein_mod.c324 uio_t *uio = digest->cd_uio; in skein_digest_final_uio()
538 if (digest->cd_length < in skein_digest()
540 digest->cd_length = in skein_digest()
550 digest->cd_length = 0; in skein_digest()
603 if (digest->cd_length < in skein_final()
605 digest->cd_length = in skein_final()
613 (uint8_t *)digest->cd_raw.iov_base + digest->cd_offset); in skein_final()
626 digest->cd_length = in skein_final()
629 digest->cd_length = 0; in skein_final()
671 digest->cd_length = in skein_digest_atomic()
[all …]
/illumos-gate/usr/src/lib/crypt_modules/sunmd5/
H A Dsunmd5.c95 md5bit(uint8_t *digest, int bit_num) in md5bit() argument
319 MD5Final(data.digest, &data.context); in crypt_genhash_impl()
333 MD5Update(&data.context, data.digest, sizeof (data.digest)); in crypt_genhash_impl()
342 data.s7shift = data.digest[i] % 8; in crypt_genhash_impl()
343 data.shift_4[i] = data.digest[j] % 5; in crypt_genhash_impl()
432 MD5Final(data.digest, &data.context); in crypt_genhash_impl()
447 l = (data.digest[ 0]<<16) | (data.digest[ 6]<<8) | data.digest[12]; in crypt_genhash_impl()
449 l = (data.digest[ 1]<<16) | (data.digest[ 7]<<8) | data.digest[13]; in crypt_genhash_impl()
451 l = (data.digest[ 2]<<16) | (data.digest[ 8]<<8) | data.digest[14]; in crypt_genhash_impl()
453 l = (data.digest[ 3]<<16) | (data.digest[ 9]<<8) | data.digest[15]; in crypt_genhash_impl()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelDigest.c148 crypto_digest_t digest; in C_Digest() local
205 opp = &(session_p->digest); in C_Digest()
239 digest.cd_datalen = ulDataLen; in C_Digest()
240 digest.cd_databuf = (char *)pData; in C_Digest()
282 REINIT_OPBUF(&session_p->digest); in C_Digest()
283 session_p->digest.flags = 0; in C_Digest()
384 REINIT_OPBUF(&session_p->digest); in C_DigestUpdate()
385 session_p->digest.flags = 0; in C_DigestUpdate()
429 session_p->digest.flags = 0; in C_DigestKey()
551 session_p->digest.flags = 0; in C_DigestKey()
[all …]
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-test-cryptotest.p5m135 dir path=opt/crypto-tests/tests/digest
136 dir path=opt/crypto-tests/tests/digest/kcf
137 file opt/crypto-tests/tests/digest/kcf/cleanup \
140 file opt/crypto-tests/tests/digest/kcf/md5_32 \
143 file opt/crypto-tests/tests/digest/kcf/md5_64 \
146 file opt/crypto-tests/tests/digest/kcf/setup \
149 file opt/crypto-tests/tests/digest/kcf/sha1_32 \
152 file opt/crypto-tests/tests/digest/kcf/sha1_64 \
185 dir path=opt/crypto-tests/tests/digest/pkcs
186 file opt/crypto-tests/tests/digest/pkcs/md5_32 \
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_hash.h41 #define SIP_DIGEST_TO_HASH(digest) \ argument
42 ((digest[0] + digest[1] + digest[2] + digest[3] + digest[4] + \
43 digest[5] + digest[6] + digest[7]) % SIP_HASH_SZ)
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dcram_md5.c20 int key_len, unsigned char *digest) in hmac_md5() argument
52 (void) MD5Final(digest, &context); in hmac_md5()
57 (void) MD5Update(&context, digest, 16); in hmac_md5()
59 (void) MD5Final(digest, &context); in hmac_md5()
74 unsigned char digest[16]; in ldap_sasl_cram_md5_bind_s() local
81 bzero(digest, sizeof (digest)); in ldap_sasl_cram_md5_bind_s()
94 (unsigned char *)cred->bv_val, cred->bv_len, digest); in ldap_sasl_cram_md5_bind_s()
98 theHDigest = hexa_print(digest, 16); in ldap_sasl_cram_md5_bind_s()
H A Ddigest_md5.c102 unsigned char digest[16]; in digest_nonce() member
601 char **digest in ldap_digest_md5_encode() argument
656 *digest = outbuf; in ldap_digest_md5_encode()
669 char *digest = NULL; in ldap_x_sasl_digest_md5_bind_s() local
695 resp.bv_val = digest; in ldap_x_sasl_digest_md5_bind_s()
699 digest, 0, 0); in ldap_x_sasl_digest_md5_bind_s()
703 free(digest); in ldap_x_sasl_digest_md5_bind_s()
749 char *digest = NULL; in sasl_digest_md5_bind_2() local
774 resp.bv_val = digest; in sasl_digest_md5_bind_2()
777 digest, 0, 0); in sasl_digest_md5_bind_2()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dmd5.c215 unsigned char *digest; in md5_password() local
241 digest = md5_final (); in md5_password()
242 memcpy (alt_result, digest, 16); in md5_password()
254 digest = md5_final (); in md5_password()
258 memcpy (alt_result, digest, 16); in md5_password()
277 digest = md5_final (); in md5_password()
284 digest[i == 4 ? 5 : 12+i] | (digest[6+i] << 8) | (digest[i] << 16); in md5_password()
301 unsigned int w = digest[11]; in md5_password()
339 unsigned char* digest = md5 (buffer); in test() local
343 sprintf (result+2*i, "%02x", digest[i]); in test()
/illumos-gate/usr/src/cmd/bhyve/
H A Dnet_utils.c107 unsigned char digest[16]; in net_genmac() local
115 MD5Final(digest, &mdctx); in net_genmac()
120 macaddr[3] = digest[0]; in net_genmac()
121 macaddr[4] = digest[1]; in net_genmac()
122 macaddr[5] = digest[2]; in net_genmac()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/checksum/edonr/
H A Dedonr_test.c157 uint8_t digest[mode / 8]; \ in main()
160 EdonRFinal(&ctx, digest); \ in main()
163 if (bcmp(digest, testdigest, mode / 8) == 0) { \ in main()
175 uint8_t digest[mode / 8]; \ in main()
186 EdonRFinal(&ctx, digest); \ in main()
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_digest.c96 crypto_mechanism_t *mech, crypto_data_t *data, crypto_data_t *digest, in crypto_digest_prov() argument
115 data, digest); in crypto_digest_prov()
131 crypto_data_t *digest, crypto_call_req_t *crq) in crypto_digest() argument
154 digest, KCF_SWFP_RHNDL(crq)); in crypto_digest()
163 pd->pd_sid, mech, NULL, data, digest); in crypto_digest()
385 crypto_digest_final(crypto_context_t context, crypto_data_t *digest, in crypto_digest_final() argument
404 error = KCF_PROV_DIGEST_FINAL(pd, ctx, digest, NULL); in crypto_digest_final()
408 ctx->cc_session, NULL, NULL, NULL, digest); in crypto_digest_final()
457 crypto_data_t *digest, crypto_call_req_t *cr) in crypto_digest_single() argument
474 error = KCF_PROV_DIGEST(pd, ctx, data, digest, NULL); in crypto_digest_single()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/checksum/sha2/
H A Dsha2_test.c199 uint8_t digest[diglen / 8]; \ in main()
202 SHA2Final(digest, &ctx); \ in main()
205 if (bcmp(digest, testdigest, diglen / 8) == 0) { \ in main()
217 uint8_t digest[diglen / 8]; \ in main()
228 SHA2Final(digest, &ctx); \ in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/checksum/skein/
H A Dskein_test.c275 uint8_t digest[diglen / 8]; \ in main()
278 (void) Skein ## mode ## _Final(&ctx, digest); \ in main()
281 if (bcmp(digest, testdigest, diglen / 8) == 0) { \ in main()
293 uint8_t digest[diglen / 8]; \ in main()
306 (void) Skein ## mode ## _Final(&ctx, digest); \ in main()
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dmd5.c273 memcpy(digest, ctx->buf, 16); in MD5Final()
288 int a = digest[i]; in DigestToBase16()
301 unsigned char digest[16]; in md5_cmd() local
310 MD5Final(digest, &ctx); in md5_cmd()
311 DigestToBase16(digest, interp->result); in md5_cmd()
322 unsigned char digest[16]; in md5file_cmd() local
344 MD5Final(digest, &ctx); in md5file_cmd()
345 DigestToBase16(digest, interp->result); in md5file_cmd()
379 unsigned char digest[16]; in md5finalize() local
382 MD5Final(digest,p); in md5finalize()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend_encrypted_props.ksh80 typeset cksum=$(digest -a md5 /$TESTPOOL/ds/$TESTFILE0)
133 recv_cksum=$(digest -a md5 /$ds/$TESTFILE0)
149 recv_cksum=$(digest -a md5 /$ds/$TESTFILE0)
167 recv_cksum=$(digest -a md5 /$ds/$TESTFILE0)
181 recv_cksum=$(digest -a md5 /$ds/$TESTFILE0)
195 recv_cksum=$(digest -a md5 /$ds/$TESTFILE0)
209 recv_cksum=$(digest -a md5 /$ds/$TESTFILE0)
H A Dsend-c_volume.ksh53 md5_1=$(digest -a md5 $data1)
54 md5_2=$(digest -a md5 $data2)
64 md5=$(dd if=$voldev2 bs=1024k count=$megs 2>/dev/null | digest -a md5)
77 | digest -a md5)
/illumos-gate/usr/src/boot/libsa/crypto/
H A DMakefile.inc18 SRCS += $(CRYPTOSRC)/digest.c
24 OBJECTS += digest.o
31 objs/digest.o pics/digest.o := CPPFLAGS += -I../../common

123456