Home
last modified time | relevance | path

Searched refs:crcbuf (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_wep.c228 uint8_t crcbuf[IEEE80211_WEP_CRCLEN]; in wep_encrypt() local
261 *(uint32_t *)crcbuf = LE_32(~crc); in wep_encrypt()
264 (void) rc4_crypt(ctx, crcbuf, icv, IEEE80211_WEP_CRCLEN); in wep_encrypt()
275 uint8_t crcbuf[IEEE80211_WEP_CRCLEN]; in wep_decrypt() local
311 (void) rc4_crypt(ctx, icv, crcbuf, IEEE80211_WEP_CRCLEN); in wep_decrypt()
313 (void) rc4_final(ctx, crcbuf, IEEE80211_WEP_CRCLEN); in wep_decrypt()
315 return (crc == ~LE_32(*(uint32_t *)crcbuf)); in wep_decrypt()
H A Dnet80211_crypto_tkip.c503 uint8_t crcbuf[IEEE80211_WEP_CRCLEN]; in wep_encrypt() local
520 *(uint32_t *)crcbuf = LE_32(~crc); in wep_encrypt()
521 (void) rc4_crypt(ctx, crcbuf, icv, IEEE80211_WEP_CRCLEN); in wep_encrypt()
531 uint8_t crcbuf[IEEE80211_WEP_CRCLEN]; in wep_decrypt() local
550 (void) rc4_crypt(ctx, icv, crcbuf, IEEE80211_WEP_CRCLEN); in wep_decrypt()
551 (void) rc4_final(ctx, crcbuf, IEEE80211_WEP_CRCLEN); in wep_decrypt()
553 return (crc == ~LE_32(*(uint32_t *)crcbuf)); in wep_decrypt()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.c1301 unsigned char *crcbuf; in fru_add_segment() local
1416 crcbuf = alloca(sizeof (section_layout_t) + bufsize); in fru_add_segment()
1417 if (crcbuf == NULL) { in fru_add_segment()
1425 (void) memcpy(crcbuf, (char *)&sec_layout, sizeof (section_layout_t)); in fru_add_segment()
1426 (void) memcpy(crcbuf + sizeof (section_layout_t), segment_buf, bufsize); in fru_add_segment()
1428 sec_layout.headercrc8 = compute_crc8(crcbuf, bufsize + in fru_add_segment()