| /src/crypto/krb5/src/lib/crypto/builtin/sha2/ |
| H A D | sha512.c | 238 unsigned char zeros[128 + 16]; in k5_sha512_final() local 242 *zeros = 0x80; in k5_sha512_final() 243 memset (zeros + 1, 0, sizeof(zeros) - 1); in k5_sha512_final() 244 zeros[dstart+15] = (m->sz[0] >> 0) & 0xff; in k5_sha512_final() 245 zeros[dstart+14] = (m->sz[0] >> 8) & 0xff; in k5_sha512_final() 246 zeros[dstart+13] = (m->sz[0] >> 16) & 0xff; in k5_sha512_final() 247 zeros[dstart+12] = (m->sz[0] >> 24) & 0xff; in k5_sha512_final() 248 zeros[dstart+11] = (m->sz[0] >> 32) & 0xff; in k5_sha512_final() 249 zeros[dstart+10] = (m->sz[0] >> 40) & 0xff; in k5_sha512_final() 250 zeros[dstart+9] = (m->sz[0] >> 48) & 0xff; in k5_sha512_final() [all …]
|
| H A D | sha256.c | 232 unsigned char zeros[72]; in k5_sha256_final() local 236 *zeros = 0x80; in k5_sha256_final() 237 memset (zeros + 1, 0, sizeof(zeros) - 1); in k5_sha256_final() 238 zeros[dstart+7] = (m->sz[0] >> 0) & 0xff; in k5_sha256_final() 239 zeros[dstart+6] = (m->sz[0] >> 8) & 0xff; in k5_sha256_final() 240 zeros[dstart+5] = (m->sz[0] >> 16) & 0xff; in k5_sha256_final() 241 zeros[dstart+4] = (m->sz[0] >> 24) & 0xff; in k5_sha256_final() 242 zeros[dstart+3] = (m->sz[1] >> 0) & 0xff; in k5_sha256_final() 243 zeros[dstart+2] = (m->sz[1] >> 8) & 0xff; in k5_sha256_final() 244 zeros[dstart+1] = (m->sz[1] >> 16) & 0xff; in k5_sha256_final() [all …]
|
| /src/crypto/krb5/src/util/support/ |
| H A D | t_hashtab.c | 130 char zeros[100] = { 0 }; in test_hashtab() local 155 for (i = 0; i < sizeof(zeros); i++) { in test_hashtab() 156 st = k5_hashtab_add(ht, zeros, i, zeros + i); in test_hashtab() 159 for (i = 0; i < sizeof(zeros); i++) { in test_hashtab() 160 assert(k5_hashtab_get(ht, zeros, i) == zeros + i); in test_hashtab() 161 k5_hashtab_remove(ht, zeros, i); in test_hashtab() 162 assert(ht->nentries == sizeof(zeros) - i - 1); in test_hashtab() 164 assert(k5_hashtab_get(ht, zeros, i - 1) == NULL); in test_hashtab()
|
| /src/tools/regression/nfsmmap/test2/ |
| H A D | test2.c | 10 char zeros[4096]; in main() local 13 memset(zeros, 0, sizeof zeros); in main() 20 if (write(fd, zeros, sizeof zeros) < 0) in main()
|
| H A D | Makefile | 4 CLEANFILES= test2.zeros test2.good test2.data test2.scratch 6 all: test2 test2.zeros test2.good 7 @cp ${.OBJDIR}/test2.zeros ${.OBJDIR}/test2.data 19 test2.zeros: test2.zeros.uu
|
| /src/sys/libkern/x86/ |
| H A D | crc32_sse42.c | 175 crc32c_zeros(uint32_t zeros[][256], size_t len) in crc32c_zeros() 182 zeros[0][n] = gf2_matrix_times(op, n); in crc32c_zeros() 183 zeros[1][n] = gf2_matrix_times(op, n << 8); in crc32c_zeros() 184 zeros[2][n] = gf2_matrix_times(op, n << 16); in crc32c_zeros() 185 zeros[3][n] = gf2_matrix_times(op, n << 24); in crc32c_zeros() 191 crc32c_shift(uint32_t zeros[][256], uint32_t crc) in crc32c_shift() 194 return (zeros[0][crc & 0xff] ^ zeros[1][(crc >> 8) & 0xff] ^ in crc32c_shift() 195 zeros[2][(crc >> 16) & 0xff] ^ zeros[3][crc >> 24]); in crc32c_shift()
|
| /src/tools/regression/nfsmmap/test1/ |
| H A D | test1.c | 10 char zeros[4096]; in main() local 13 memset(zeros, 0, sizeof zeros); in main() 20 if (write(fd, zeros, sizeof zeros) < 0) in main()
|
| H A D | Makefile | 4 CLEANFILES= test1.zeros test1.good test1.data test1.scratch 6 all: test1 test1.zeros test1.good 7 @cp ${.OBJDIR}/test1.zeros ${.OBJDIR}/test1.data 19 test1.zeros: test1.zeros.uu
|
| /src/sys/dev/rndtest/ |
| H A D | rndtest.c | 222 int i, j, ones, zeros, rv = 0; in rndtest_runs() local 228 ones = zeros = 0; in rndtest_runs() 234 rndtest_runs_record(rsp, zeros, zeroi); in rndtest_runs() 235 zeros = 0; in rndtest_runs() 237 zeros++; in rndtest_runs() 244 rndtest_runs_record(rsp, zeros, zeroi); in rndtest_runs() 294 int i, j, ones = 0, zeros = 0, maxones = 0, maxzeros = 0; in rndtest_longruns() local 301 zeros = 0; in rndtest_longruns() 307 zeros++; in rndtest_longruns() 308 if (zeros > maxzeros) in rndtest_longruns() [all …]
|
| /src/contrib/netbsd-tests/dev/audio/ |
| H A D | h_pad.c | 54 char zeros[BUFSIZE]; in main() local 70 memset(zeros, 0, sizeof(zeros)); in main() 72 if (memcmp(buf, zeros, sizeof(buf)) == 0) in main()
|
| /src/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | GOFFEmitter.cpp | 61 ZerosImpl zeros(const size_t NumBytes) { return ZerosImpl{NumBytes}; } in zeros() function 224 << zeros(2) // Reserved in writeHeader() 227 << zeros(16 - CCSIDName.size()) // Fill bytes in writeHeader() 229 << zeros(16 - LangProd.size()) // Fill bytes in writeHeader() 238 GW << binaryBe(ModPropLen) << zeros(6); in writeHeader() 252 << zeros(3) // Reserved in writeEnd()
|
| H A D | COFFEmitter.cpp | 338 template <typename T> zeros_impl<sizeof(T)> zeros(const T &) { in zeros() function 429 OS << zeros(uint32_t(0)) << zeros(uint32_t(0)) << zeros(uint32_t(0)) in writeCOFF() 430 << zeros(uint32_t(0)) << binary_le(CP.Obj.Header.NumberOfSections) in writeCOFF() 460 OS << zeros(uint32_t(0)); in writeCOFF() 461 OS << zeros(uint32_t(0)); in writeCOFF() 542 << zeros(i->FunctionDefinition->unused); in writeCOFF() 546 OS << zeros(i->bfAndefSymbol->unused1) in writeCOFF() 548 << zeros(i->bfAndefSymbol->unused2) in writeCOFF() 550 << zeros(i->bfAndefSymbol->unused3); in writeCOFF() 556 << zeros(i->WeakExternal->unused); in writeCOFF() [all …]
|
| /src/crypto/openssl/crypto/poly1305/asm/ |
| H A D | poly1305-armv8.pl | 233 my ($in2,$zeros)=("x16","x17"); 234 my $is_base2_26 = $zeros; # borrow 449 adrp $zeros,.Lzeros 450 add $zeros,$zeros,:lo12:.Lzeros 452 csel $in2,$zeros,$in2,lo 462 adrp $zeros,.Lzeros 463 add $zeros,$zeros,:lo12:.Lzeros 465 csel $in2,$zeros,$in2,lo 575 csel $in2,$zeros,$in2,lo
|
| H A D | poly1305-armv4.pl | 447 my ($in2,$zeros,$tbl0,$tbl1) = map("r$_",(4..7)); 487 mov $zeros,#2 @ counter 608 subs $zeros,$zeros,#1 721 adr $zeros,.Lzeros 737 adr $zeros,.Lzeros 780 mov $tbl1,$zeros 790 movlo $in2,$zeros 868 movlo $in2,$zeros
|
| /src/contrib/wpa/src/tls/ |
| H A D | asn1.c | 507 int zeros; in asn1_put_integer() local 510 zeros = 0; in asn1_put_integer() 511 while (zeros < 3 && bin[zeros] == 0) in asn1_put_integer() 512 zeros++; in asn1_put_integer() 514 wpabuf_put_u8(buf, 4 - zeros); in asn1_put_integer() 515 wpabuf_put_data(buf, &bin[zeros], 4 - zeros); in asn1_put_integer()
|
| /src/sys/contrib/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ |
| H A D | sign.c | 48 static const unsigned char zeros[128] = { 0x00 }; in _crypto_sign_ed25519_synthetic_r_hv() local 55 crypto_hash_sha512_update(hs, zeros, 128 - (32 + 3 + 32) % 128); in _crypto_sign_ed25519_synthetic_r_hv() 57 crypto_hash_sha512_update(hs, zeros, 128 - 32 % 128); in _crypto_sign_ed25519_synthetic_r_hv()
|
| /src/tests/sys/fs/fusefs/ |
| H A D | write.cc | 745 char *zeros, *expected; in TEST_F() local 749 zeros = new char[len](); in TEST_F() 755 expect_read(ino, 0, len, len, zeros); in TEST_F() 776 delete[] zeros; in TEST_F() 1177 char *zeros; in TEST_F() local 1181 zeros = new char[len](); in TEST_F() 1185 expect_read(ino, 0, len, len, zeros); in TEST_F() 1187 FuseTest::expect_write(ino, 0, len, len, FUSE_WRITE_CACHE, 0, zeros); in TEST_F() 1201 delete[] zeros; in TEST_F() 1250 char *zeros; in TEST_F() local [all …]
|
| /src/crypto/krb5/src/lib/gssapi/krb5/ |
| H A D | util_seed.c | 29 static const unsigned char zeros[16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}; variable 52 code = kg_encrypt(context, rkey, KG_USAGE_SEAL, NULL, zeros, seed, 16); in kg_make_seed()
|
| /src/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformWindows.c | 101 static const uint8_t zeros[BUILD_ID_LEN] = {0}; in __llvm_write_binary_ids() local 102 if (memcmp(__buildid, zeros, BUILD_ID_LEN) != 0) { in __llvm_write_binary_ids()
|
| /src/stand/libsa/ |
| H A D | smbios.c | 259 int byteorder, i, ones, zeros; in smbios_setuuid() local 264 for (i = 0, ones = 0, zeros = 0; i < UUID_SIZE; i += UUID_STEP) { in smbios_setuuid() 266 if (zeros == 0 && n == 0) in smbios_setuuid() 269 zeros++; in smbios_setuuid() 274 if (ones != UUID_ALL_BITS && zeros != UUID_ALL_BITS) { in smbios_setuuid()
|
| /src/usr.sbin/fstyp/tests/ |
| H A D | fstyp_test.sh | 257 atf_test_case zeros 262 atf_check -s exit:0 truncate -s 256m zeros 263 atf_check -s exit:1 -e match:"filesystem not recognized" fstyp zeros 289 atf_add_test_case zeros
|
| /src/crypto/heimdal/lib/gssapi/krb5/ |
| H A D | 8003.c | 183 static unsigned char zeros[16]; in _gsskrb5_verify_8003_checksum() local 201 && memcmp(p, zeros, sizeof(zeros)) != 0) { in _gsskrb5_verify_8003_checksum()
|
| /src/crypto/openssl/doc/man7/ |
| H A D | EVP_MD-MDC2.pod | 31 Normally the final MDC2 block is padded with zeros. 33 zeros.
|
| /src/sys/opencrypto/ |
| H A D | gmac.c | 48 const uint8_t zeros[GMAC_BLOCK_LEN] = {}; in AES_GMAC_Setkey() local 55 rijndaelEncrypt(agc->keysched, agc->rounds, zeros, hbuf); in AES_GMAC_Setkey()
|
| /src/contrib/wpa/src/eap_common/ |
| H A D | eap_eke_common.c | 308 u8 zeros[EAP_EKE_MAX_HASH_LEN]; in eap_eke_derive_key() local 314 os_memset(zeros, 0, sess->prf_len); in eap_eke_derive_key() 315 if (eap_eke_prf(sess->prf, zeros, sess->prf_len, in eap_eke_derive_key() 380 u8 zeros[EAP_EKE_MAX_HASH_LEN]; in eap_eke_shared_secret() local 411 os_memset(zeros, 0, sess->auth_len); in eap_eke_shared_secret() 412 if (eap_eke_prf(sess->prf, zeros, sess->auth_len, modexp, dh->prime_len, in eap_eke_shared_secret()
|