| /kernel/linux/linux-6.6/samples/pktgen/ |
| H A D | functions.sh | 213 local bitlen=$[ IP6 ? 128 : 32 ] 222 # if prefix exists, check (0 <= $prefix <= $bitlen) 224 if ! (in_between $prefix 0 $bitlen); then 272 local bitlen=$[ IP6 ? 128 : 32 ] 273 local remain=$[ bitlen-prefix ]
|
| /third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_cbc_hmac_sha1_hw.c | 450 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local 511 bitlen = sctx->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha1_cipher() 513 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha1_cipher() 516 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha1_cipher() 517 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha1_cipher() 518 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha1_cipher() 519 bitlen = mac.u[0]; in aesni_cbc_hmac_sha1_cipher() 540 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher() 556 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha1_cipher() [all...] |
| H A D | cipher_aes_cbc_hmac_sha256_hw.c | 492 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local 547 bitlen = sctx->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha256_cipher() 549 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha256_cipher() 552 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha256_cipher() 553 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha256_cipher() 554 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha256_cipher() 555 bitlen = mac.u[0]; in aesni_cbc_hmac_sha256_cipher() 579 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher() 598 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha256_cipher() [all...] |
| /third_party/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_cbc_hmac_sha1_hw.c | 450 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local 511 bitlen = sctx->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha1_cipher() 513 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha1_cipher() 516 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha1_cipher() 517 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha1_cipher() 518 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha1_cipher() 519 bitlen = mac.u[0]; in aesni_cbc_hmac_sha1_cipher() 540 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher() 556 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha1_cipher() [all...] |
| H A D | cipher_aes_cbc_hmac_sha256_hw.c | 492 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local 547 bitlen = sctx->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha256_cipher() 549 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha256_cipher() 552 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha256_cipher() 553 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha256_cipher() 554 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha256_cipher() 555 bitlen = mac.u[0]; in aesni_cbc_hmac_sha256_cipher() 579 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher() 598 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha256_cipher() [all...] |
| /kernel/linux/common_modules/newip/examples/ |
| H A D | nip_route_cfg_demo.c | 43 rt.rtmsg_dst.bitlen = dst_addr_len * BITS_PER_BYTE; in nip_route_add() 47 rt.rtmsg_gateway.bitlen = gateway_addr_len * BITS_PER_BYTE; in nip_route_add()
|
| /kernel/linux/common_modules/newip/src/common/ |
| H A D | nip_checksum.c | 40 addr_len = chksum_header->saddr.bitlen / NIP_ADDR_BIT_LEN_8; in _nip_header_chksum() 48 addr_len = chksum_header->daddr.bitlen / NIP_ADDR_BIT_LEN_8; in _nip_header_chksum()
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| H A D | nft_cmp.c | 273 static u32 nft_cmp_mask(u32 bitlen) in nft_cmp_mask() argument 275 return (__force u32)cpu_to_le32(~0U >> (sizeof(u32) * BITS_PER_BYTE - bitlen)); in nft_cmp_mask() 278 static void nft_cmp16_fast_mask(struct nft_data *data, unsigned int bitlen) in nft_cmp16_fast_mask() argument 280 int len = bitlen / BITS_PER_BYTE; in nft_cmp16_fast_mask() 285 bitlen -= sizeof(u32) * BITS_PER_BYTE; in nft_cmp16_fast_mask() 289 data->data[i++] = nft_cmp_mask(bitlen); in nft_cmp16_fast_mask()
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| H A D | nft_cmp.c | 289 static u32 nft_cmp_mask(u32 bitlen) in nft_cmp_mask() argument 291 return (__force u32)cpu_to_le32(~0U >> (sizeof(u32) * BITS_PER_BYTE - bitlen)); in nft_cmp_mask() 294 static void nft_cmp16_fast_mask(struct nft_data *data, unsigned int bitlen) in nft_cmp16_fast_mask() argument 296 int len = bitlen / BITS_PER_BYTE; in nft_cmp16_fast_mask() 301 bitlen -= sizeof(u32) * BITS_PER_BYTE; in nft_cmp16_fast_mask() 305 data->data[i++] = nft_cmp_mask(bitlen); in nft_cmp16_fast_mask()
|
| /third_party/node/deps/openssl/openssl/crypto/rsa/ |
| H A D | rsa_sp800_56b_check.c | 228 int bitlen; in ossl_rsa_check_public_exponent() local 230 bitlen = BN_num_bits(e); in ossl_rsa_check_public_exponent() 231 return (BN_is_odd(e) && bitlen > 16 && bitlen < 257); in ossl_rsa_check_public_exponent() 245 int bitlen = (nbits >> 1) - 100; in ossl_rsa_check_pminusq_diff() local 256 return (BN_num_bits(diff) > bitlen); in ossl_rsa_check_pminusq_diff()
|
| /third_party/openssl/crypto/rsa/ |
| H A D | rsa_sp800_56b_check.c | 228 int bitlen; in ossl_rsa_check_public_exponent() local 230 bitlen = BN_num_bits(e); in ossl_rsa_check_public_exponent() 231 return (BN_is_odd(e) && bitlen > 16 && bitlen < 257); in ossl_rsa_check_public_exponent() 245 int bitlen = (nbits >> 1) - 100; in ossl_rsa_check_pminusq_diff() local 256 return (BN_num_bits(diff) > bitlen); in ossl_rsa_check_pminusq_diff()
|
| /third_party/node/deps/openssl/openssl/providers/implementations/storemgmt/ |
| H A D | file_store_any2obj.c | 117 unsigned int bitlen, magic; in msblob2obj_decode() local 142 ok = ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) > 0; in msblob2obj_decode() 148 mem_want = ossl_blob_length(bitlen, isdss, ispub); in msblob2obj_decode()
|
| /third_party/openssl/providers/implementations/storemgmt/ |
| H A D | file_store_any2obj.c | 117 unsigned int bitlen, magic; in msblob2obj_decode() local 142 ok = ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) > 0; in msblob2obj_decode() 148 mem_want = ossl_blob_length(bitlen, isdss, ispub); in msblob2obj_decode()
|
| /third_party/mbedtls/library/ |
| H A D | debug.c | 270 size_t bitlen; in mbedtls_debug_print_mpi() local 281 bitlen = mbedtls_mpi_bitlen(X); in mbedtls_debug_print_mpi() 284 text, (unsigned) bitlen); in mbedtls_debug_print_mpi() 287 if (bitlen == 0) { in mbedtls_debug_print_mpi() 292 for (n = (int) ((bitlen - 1) / 8); n >= 0; n--) { in mbedtls_debug_print_mpi()
|
| H A D | ssl_ticket.c | 166 const size_t bitlen = key->key_bits; in mbedtls_ssl_ticket_rotate() local 168 const int bitlen = mbedtls_cipher_get_key_bitlen(&key->ctx); in mbedtls_ssl_ticket_rotate() local 171 if (nlength < TICKET_KEY_NAME_BYTES || klength * 8 < (size_t) bitlen) { in mbedtls_ssl_ticket_rotate() 194 ret = mbedtls_cipher_setkey(&key->ctx, k, bitlen, MBEDTLS_ENCRYPT); in mbedtls_ssl_ticket_rotate()
|
| /third_party/node/deps/openssl/openssl/crypto/evp/ |
| H A D | e_aes_cbc_hmac_sha256.c | 523 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local 578 bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha256_cipher() 580 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha256_cipher() 583 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha256_cipher() 584 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha256_cipher() 585 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha256_cipher() 586 bitlen = mac.u[0]; in aesni_cbc_hmac_sha256_cipher() 610 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher() 629 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha256_cipher() [all...] |
| H A D | e_aes_cbc_hmac_sha1.c | 490 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local 590 bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha1_cipher() 592 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha1_cipher() 595 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha1_cipher() 596 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha1_cipher() 597 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha1_cipher() 598 bitlen = mac.u[0]; in aesni_cbc_hmac_sha1_cipher() 619 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher() 635 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha1_cipher() [all...] |
| /third_party/openssl/crypto/evp/ |
| H A D | e_aes_cbc_hmac_sha256.c | 523 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local 578 bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha256_cipher() 580 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha256_cipher() 583 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha256_cipher() 584 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha256_cipher() 585 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha256_cipher() 586 bitlen = mac.u[0]; in aesni_cbc_hmac_sha256_cipher() 610 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher() 629 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha256_cipher() [all...] |
| H A D | e_aes_cbc_hmac_sha1.c | 490 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local 590 bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha1_cipher() 592 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha1_cipher() 595 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha1_cipher() 596 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha1_cipher() 597 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha1_cipher() 598 bitlen = mac.u[0]; in aesni_cbc_hmac_sha1_cipher() 619 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher() 635 data->u[SHA_LBLOCK - 1] |= bitlen in aesni_cbc_hmac_sha1_cipher() [all...] |
| /kernel/linux/linux-5.10/drivers/media/dvb-frontends/cxd2880/ |
| H A D | cxd2880_common.h | 17 int cxd2880_convert2s_complement(u32 value, u32 bitlen);
|
| /kernel/linux/linux-6.6/drivers/media/dvb-frontends/cxd2880/ |
| H A D | cxd2880_common.h | 18 int cxd2880_convert2s_complement(u32 value, u32 bitlen);
|
| /third_party/FreeBSD/sys/crypto/sha2/ |
| H A D | sha256c.c | 247 uint64_t bitlen; in SHA256_Update() local 255 bitlen = len << 3; in SHA256_Update() 258 ctx->count += bitlen; in SHA256_Update()
|
| /kernel/linux/linux-5.10/drivers/net/wireguard/ |
| H A D | allowedips.c | 32 node->bitlen = bits; in copy_and_assign_cidr() 346 swap_endian(ip, node->bits, node->bitlen); in wg_allowedips_read_node() 347 memset(ip + cidr_bytes, 0, node->bitlen / 8U - cidr_bytes); in wg_allowedips_read_node() 352 return node->bitlen == 32 ? AF_INET : AF_INET6; in wg_allowedips_read_node()
|
| /kernel/linux/linux-6.6/drivers/net/wireguard/ |
| H A D | allowedips.c | 32 node->bitlen = bits; in copy_and_assign_cidr() 346 swap_endian(ip, node->bits, node->bitlen); in wg_allowedips_read_node() 347 memset(ip + cidr_bytes, 0, node->bitlen / 8U - cidr_bytes); in wg_allowedips_read_node() 352 return node->bitlen == 32 ? AF_INET : AF_INET6; in wg_allowedips_read_node()
|
| /third_party/toybox/lib/ |
| H A D | deflate.c | 165 static void len2huff(struct huff *huff, char bitlen[], int len) in len2huff() argument 172 for (i = 0; i<len; i++) huff->length[bitlen[i]]++; in len2huff() 178 for (i = 0; i<len; i++) if (bitlen[i]) huff->symbol[offset[bitlen[i]]++] = i; in len2huff()
|