/illumos-gate/usr/src/common/net/wanboot/crypt/ |
H A D | hmac_test.c | 57 SHA1_CTX sha; local 126 HMACInit(&sha, td[i].key, td[i].keylen); 127 HMACUpdate(&sha, td[i].data, td[i].datalen); 128 HMACFinal(&sha, td[i].key, td[i].keylen, digest);
|
H A D | sha1_test.c | 83 SHA1_CTX sha; local 97 SHA1Init(&sha); 100 SHA1Update(&sha, (unsigned char *)testarray[j], 104 SHA1Final(digest, &sha);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_arp.c | 63 unsigned char *sip, *tip, *sha, *tha; local 80 sha = (unsigned char *)(ap + 1); 81 sip = sha + maclen; 95 smacbuf = _link_ntoa(sha, NULL, maclen, IFT_OTHER);
|
/illumos-gate/usr/src/lib/libsum/common/ |
H A D | sum-sha1.c | 39 #define sha1_match "sha1|SHA1|sha-1|SHA-1" 179 /* Copy sha->state[] to working vars */ 229 Sha1_t* sha = (Sha1_t*)p; local 234 j = sha->count[0]; 235 if ((sha->count[0] += len << 3) < j) 236 sha->count[1] += (len >> 29) + 1; 239 (void)memcpy(&sha->buffer[j], data, (i = 64 - j)); 240 sha1_transform(sha->state, sha->buffer); 242 sha1_transform(sha 256 register Sha1_t* sha = (Sha1_t*)p; local 271 Sha1_t* sha; local 292 Sha1_t* sha = (Sha1_t*)p; local 323 register Sha1_t* sha = (Sha1_t*)p; local 336 register Sha1_t* sha = (Sha1_t*)p; local [all...] |
H A D | sum-sha2.c | 140 * during compile or in the sha.h header file. 144 * ones in sha.h too) by hand according to their system architecture. 452 [+(version)?sha-256 (FIPS) 2000-01-01]\ 455 #define sha256_match "sha256|sha-256|SHA256|SHA-256" 510 static void SHA256_Transform(SHA256_CTX* sha, const sha2_word32* data) { argument 515 W256 = (sha2_word32*)sha->buffer; 518 a = sha->state[0]; 519 b = sha->state[1]; 520 c = sha->state[2]; 521 d = sha 568 SHA256_Transform(SHA256_CTX* sha, const sha2_word32* data) argument 651 Sha256_t* sha = (Sha256_t*)p; local 699 register Sha256_t* sha = (Sha256_t*)p; local 711 Sha256_t* sha; local 725 Sha256_t* sha = (Sha256_t*)p; local 795 register Sha256_t* sha = (Sha256_t*)p; local 809 register Sha256_t* sha = (Sha256_t*)p; local 878 SHA512_Transform(SHA512_CTX* sha, const sha2_word64* data) argument 933 SHA512_Transform(SHA512_CTX* sha, const sha2_word64* data) argument 1014 Sha512_t* sha = (Sha512_t*)p; local 1062 register Sha512_t* sha = (Sha512_t*)p; local 1074 Sha512_t* sha; local 1088 Sha512_t* sha = (Sha512_t*)p; local 1157 register Sha512_t* sha = (Sha512_t*)p; local 1171 register Sha512_t* sha = (Sha512_t*)p; local 1200 register Sha384_t* sha = (Sha384_t*)p; local 1212 Sha384_t* sha; local 1226 register Sha384_t* sha = (Sha384_t*)p; local 1240 register Sha384_t* sha = (Sha384_t*)p; local [all...] |
/illumos-gate/usr/src/lib/librdc/common/ |
H A D | rdcrules.c | 89 char sha[CFG_MAX_BUF]; /* II shadow */ local 118 rc = sscanf(buf, "%s %s %s %s %s", mas, sha, bit, mod, ovr); 129 (strcmp(bmp, sha) == 0) ||
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | wanboot.c | 470 size_t ramdisk_size, off_t *offset, SHA1_CTX *sha) 517 if (sha != NULL) { 518 HMACUpdate(sha, (uchar_t *)addr, (size_t)len); 978 static SHA1_CTX sha; local 987 HMACInit(&sha, g_hash_key, WANBOOT_HMAC_KEY_SIZE); 999 miniroot_size, offset, (htype == HASH_NONE) ? NULL : &sha)) != 0) { 1004 HMACFinal(&sha, g_hash_key, WANBOOT_HMAC_KEY_SIZE, cdigest); 1225 SHA1_CTX sha; local 1237 HMACInit(&sha, g_hash_key, WANBOOT_HMAC_KEY_SIZE); 1311 HMACUpdate(&sha, (uchar_ 469 write_msg_to_ramdisk(const char *what, caddr_t addr, http_handle_t handle, size_t ramdisk_size, off_t *offset, SHA1_CTX *sha) argument [all...] |
/illumos-gate/usr/src/uts/common/inet/kssl/ |
H A D | ksslproto.h | 253 SHA1_CTX sha; member in union:KSSL_HASHCTXUnion
|
/illumos-gate/usr/src/cmd/avs/rdc/ |
H A D | sndradm.c | 1071 char *host, *pri, *sec, *sbm, *bit, *mas, *sha, *ovr; local 1089 sha = strtok(NULL, " "); /* shadow */ 1098 (strcmp(bmp, sha) == 0) || 1677 char *sha; local 1692 sha = strtok(NULL, " "); /* shadow */ 1693 if (strcmp(secondary, sha) == 0) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNS.c | 13723 const char *const msg = mDNSSameEthAddress(&arp->sha, &rr->WakeUp.IMAC) ? msg1 : 13725 mDNSSameEthAddress(&arp->sha, &intf->MAC) ? msg3 : msg4; 13727 intf->ifname, msg, &arp->sha, &arp->spa, &arp->tpa, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC, ARDisplayString(m, rr)); 13741 SendARP(m, 2, rr, &arp->tpa, &arp->sha, &arp->spa, &arp->sha); 13754 if (mDNSSameEthAddress(&arp->sha, &intf->MAC)) 13766 &arp->sha, &arp->spa, &arp->tpa, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC, ARDisplayString(m, rr)); 13771 if (mDNSSameEthAddress(&arp->sha, &rr->WakeUp.IMAC)) 13775 &arp->sha, &arp->spa, &arp->tpa, ARDisplayString(m, rr)); 13780 &arp->sha, 13806 mDNSCoreReceiveRawND(mDNS *const m, const mDNSEthAddr *const sha, const mDNSv6Addr *spa, const IPv6NDP *const ndp, const mDNSu8 *const end, const mDNSInterfaceID InterfaceID) argument 13892 mDNSCoreReceiveRawTransportPacket(mDNS *const m, const mDNSEthAddr *const sha, const mDNSAddr *const src, const mDNSAddr *const dst, const mDNSu8 protocol, const mDNSu8 *const p, const TransportLayerPacket *const t, const mDNSu8 *const end, const mDNSInterfaceID InterfaceID, const mDNSu16 len) argument [all...] |
H A D | mDNSEmbeddedAPI.h | 548 mDNSEthAddr sha; variable
|