/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/libdevcrypto/ |
H A D | SecretStore.h | 68 h128 importSecret(bytesSec const& _s, std::string const& _pass); 69 h128 importSecret(bytesConstRef _s, std::string const& _pass); 75 void kill(h128 const& _uuid); 78 std::vector<h128> keys() const { return keysOf(m_keys); } in keys() 81 bool contains(h128 const& _k) const { return m_keys.count(_k); } in contains() 90 h128 readKey(boost::filesystem::path const& _file, bool _takeFileOwnership); 102 bool noteAddress(h128 const& _uuid, Address const& _address); 104 Address address(h128 const& _uuid) const { return m_keys.at(_uuid).address; } in address() 119 std::pair<h128 const, EncryptedKey>* key(Address const& _address); 121 mutable std::unordered_map<h128, bytesSec> m_cached; [all …]
|
H A D | SecretStore.cpp | 132 h128 SecretStore::importSecret(bytesSec const& _s, string const& _pass) in importSecret() 134 h128 r = h128::random(); in importSecret() 142 h128 SecretStore::importSecret(bytesConstRef _s, string const& _pass) in importSecret() 144 h128 r = h128::random(); in importSecret() 152 void SecretStore::kill(h128 const& _uuid) in kill() 189 bool SecretStore::noteAddress(h128 const& _uuid, Address const& _address) in noteAddress() 236 return h128(); in readKeyContent() 240 return h128(); in readKeyContent() 333 SecureFixedHash<16> key(derivedKey, h128::AlignLeft); in encrypt() 334 h128 iv = h128::random(); in encrypt() [all …]
|
H A D | CryptoPP.cpp | 86 auto iv = h128::random(); in encryptECIES() 91 bytes msg(1 + Public::size + h128::size + cipherText.size() + 32); in encryptECIES() 94 iv.ref().copyTo(bytesRef(&msg).cropped(1 + Public::size, h128::size)); in encryptECIES() 95 bytesRef msgCipherRef = bytesRef(&msg).cropped(1 + Public::size + h128::size, cipherText.size()); in encryptECIES() 100 …bytesConstRef cipherWithIV = bytesRef(&msg).cropped(1 + Public::size, h128::size + cipherText.size… in encryptECIES() 124 if (io_text.size() < (1 + Public::size + h128::size + 1 + h256::size)) in decryptECIES() 140 size_t cipherLen = io_text.size() - 1 - Public::size - h128::size - h256::size; in decryptECIES() 141 bytesConstRef cipherWithIV(io_text.data() + 1 + Public::size, h128::size + cipherLen); in decryptECIES() 142 bytesConstRef cipherIV = cipherWithIV.cropped(0, h128::size); in decryptECIES() 143 bytesConstRef cipherNoIV = cipherWithIV.cropped(h128::size, cipherLen); in decryptECIES() [all …]
|
H A D | Common.h | 97 std::pair<bytes, h128> encryptSymNoAuth(SecureFixedHash<16> const& _k, bytesConstRef _plain); 100 bytes encryptAES128CTR(bytesConstRef _k, h128 const& _iv, bytesConstRef _plain); 103 bytesSec decryptAES128CTR(bytesConstRef _k, h128 const& _iv, bytesConstRef _cipher); 106 inline bytes encryptSymNoAuth(SecureFixedHash<16> const& _k, h128 const& _iv, bytesConstRef _plain)… in encryptSymNoAuth() 107 inline bytes encryptSymNoAuth(SecureFixedHash<32> const& _k, h128 const& _iv, bytesConstRef _plain)… in encryptSymNoAuth() 110 inline bytesSec decryptSymNoAuth(SecureFixedHash<16> const& _k, h128 const& _iv, bytesConstRef _cip… in decryptSymNoAuth() 111 inline bytesSec decryptSymNoAuth(SecureFixedHash<32> const& _k, h128 const& _iv, bytesConstRef _cip… in decryptSymNoAuth()
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/libp2p/ |
H A D | RLPXFrameCoder.cpp | 105 h128 iv; in setup() 170 egressDigest().ref().copyTo(bytesRef(&headerWithMac).cropped(h128::size,h128::size)); in writeFrame() 199 bytesConstRef macRef = io.cropped(h128::size, h128::size); in authAndDecryptHeader() 200 h128 expected = ingressDigest(); in authAndDecryptHeader() 211 bytesConstRef frameMac(io.data() + io.size() - h128::size, h128::size); in authAndDecryptFrame() 218 h128 RLPXFrameCoder::egressDigest() in egressDigest() 221 h128 digest; in egressDigest() 226 h128 RLPXFrameCoder::ingressDigest() in ingressDigest() 229 h128 digest; in ingressDigest() 262 h128 encDigest(h128::size); in updateMAC() [all …]
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/test/unittests/libp2p/ |
H A D | rlpx.cpp | 119 m_frameEnc.SetKeyWithIV(outRef.data(), h128::size, h128().data()); in TEST_F() 120 m_frameDec.SetKeyWithIV(outRef.data(), h128::size, h128().data()); in TEST_F() 128 m_macEnc.SetKey(outRef.data(), h128::size); in TEST_F() 285 m_frameEnc.SetKeyWithIV(outRef.data(), h128::size, h128().data()); in TEST_F() 286 m_frameDec.SetKeyWithIV(outRef.data(), h128::size, h128().data()); in TEST_F() 352 h128 prevDigestOut; in TEST_F() 354 h128 encDigest; in TEST_F() 362 ASSERT_EQ(*(h128*)encDigest.data(), *(h128*)provided.data()); in TEST_F() 368 h128 prevDigestOut; in TEST_F() 370 h128 encDigest; in TEST_F() [all …]
|
/dports/devel/cmph/cmph-2.0/cxxmph/ |
H A D | seeded_hash.h | 15 struct h128 { struct 37 h128 hash128(const Key& k, uint32_t seed) const { in hash128() 38 h128 h; in hash128() 53 h128 hash128(const Key& k) const { in hash128() 54 h128 h; in hash128() 69 h128 hash128(const Key& k) const { in hash128() 70 h128 h; in hash128() 86 h128 hash128(const Key& k, uint32_t seed) const { 87 h128 h; 103 h128 hash128(const Key& k, uint32_t seed) const { [all …]
|
H A D | seeded_hash_test.cc | 29 unordered_map<h128, uint64_t, h128::hash32> g2; in main() 36 if (h128::hash32()(h) != h[3]) { in main() 47 if (h128::hash32()(h) != h128::hash32()(h2)) { in main()
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/libethcore/ |
H A D | KeyManager.h | 89 h128 uuid(Address const& _a) const; 91 Address address(h128 const& _uuid) const; 93 …h128 import(Secret const& _s, std::string const& _accountName, std::string const& _pass, std::stri… 94 …h128 import(Secret const& _s, std::string const& _accountName) { return import(_s, _accountName, d… in import() 97 …void importExisting(h128 const& _uuid, std::string const& _accountName, std::string const& _pass, … 98 …void importExisting(h128 const& _uuid, std::string const& _accountName, Address const& _addr, h256… 105 …Secret secret(h128 const& _uuid, std::function<std::string()> const& _pass = DontKnowThrow, bool _… 109 void kill(h128 const& _id) { kill(address(_id)); } in kill() 120 …std::string getPassword(h128 const& _uuid, std::function<std::string()> const& _pass = DontKnowThr… 138 std::unordered_map<h128, Address> m_uuidLookup; [all …]
|
H A D | KeyManager.cpp | 49 h128 u = uuid(_address); in recode() 67 bytesSec bs = decryptSymNoAuth(m_keysFileKey, h128(), &encKeys); in load() 75 h128 uuid(i[1]); in load() 121 Secret KeyManager::secret(h128 const& _uuid, function<string()> const& _pass, bool _usePasswordCach… in secret() 129 string KeyManager::getPassword(h128 const& _uuid, function<string()> const& _pass) const in getPassword() 161 h128 KeyManager::uuid(Address const& _a) const in uuid() 165 return h128(); in uuid() 169 Address KeyManager::address(h128 const& _uuid) const in address() 177 h128 KeyManager::import(Secret const& _s, string const& _accountName, string const& _pass, string c… in import() 342 h128 id = uuid(info.first); in write() [all …]
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/libdevcore/ |
H A D | FixedHash.cpp | 12 h128 fromUUID(std::string const& _uuid) in fromUUID() 16 return h128(boost::replace_all_copy(_uuid, "-", "")); in fromUUID() 20 return h128(); in fromUUID() 24 std::string toUUID(h128 const& _uuid) in toUUID()
|
/dports/net-im/dendrite/dendrite-0.5.1/vendor/github.com/spaolacci/murmur3/ |
H A D | murmur_test.go | 72 h128 := New128WithSeed(elem.seed) 74 h128.Write([]byte(elem.s)) 75 if v1, v2 := h128.Sum128(); v1 != elem.h64_1 || v2 != elem.h64_2 { 79 h128.Reset() 80 h128.Write([]byte(elem.s)) 82 if p := fmt.Sprintf("%x", h128.Sum(nil)); p != target { 95 h128 := New128WithSeed(elem.seed) 105 h128.Write([]byte(s)) 111 if v1, v2 := h128.Sum128(); v1 != elem.h64_1 || v2 != elem.h64_2 {
|
/dports/net/croc/croc-9.5.0/vendor/github.com/spaolacci/murmur3/ |
H A D | murmur_test.go | 72 h128 := New128WithSeed(elem.seed) 74 h128.Write([]byte(elem.s)) 75 if v1, v2 := h128.Sum128(); v1 != elem.h64_1 || v2 != elem.h64_2 { 79 h128.Reset() 80 h128.Write([]byte(elem.s)) 82 if p := fmt.Sprintf("%x", h128.Sum(nil)); p != target { 95 h128 := New128WithSeed(elem.seed) 105 h128.Write([]byte(s)) 111 if v1, v2 := h128.Sum128(); v1 != elem.h64_1 || v2 != elem.h64_2 {
|
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/spaolacci/murmur3/ |
H A D | murmur_test.go | 72 h128 := New128WithSeed(elem.seed) 74 h128.Write([]byte(elem.s)) 75 if v1, v2 := h128.Sum128(); v1 != elem.h64_1 || v2 != elem.h64_2 { 79 h128.Reset() 80 h128.Write([]byte(elem.s)) 82 if p := fmt.Sprintf("%x", h128.Sum(nil)); p != target { 95 h128 := New128WithSeed(elem.seed) 105 h128.Write([]byte(s)) 111 if v1, v2 := h128.Sum128(); v1 != elem.h64_1 || v2 != elem.h64_2 {
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/test/unittests/libdevcrypto/ |
H A D | SecretStore.cpp | 45 h128 u = store.readKeyContent(js::write_string(o["json"], false)); in BOOST_FIXTURE_TEST_SUITE() 77 h128 uuid; in BOOST_AUTO_TEST_CASE() 103 h128 uuid; in BOOST_AUTO_TEST_CASE() 127 h128 uuid; in BOOST_AUTO_TEST_CASE() 152 h128 uuid; in BOOST_AUTO_TEST_CASE() 178 h128 uuid; in BOOST_AUTO_TEST_CASE() 230 h128 uuid; in BOOST_AUTO_TEST_CASE() 236 BOOST_CHECK_EQUAL(uuid, h128("3198bc9c66725ab3d9954942343ae5b6")); in BOOST_AUTO_TEST_CASE() 269 h128 uuid; in BOOST_AUTO_TEST_CASE() 275 BOOST_CHECK_EQUAL(uuid, h128("3198bc9c66725ab3d9954942343ae5b6")); in BOOST_AUTO_TEST_CASE() [all …]
|
/dports/graphics/povray37/povray-3.7.0.10/distribution/platform-specific/windows/Insert Menu/ |
H A D | Images.ini | 124 +w240 +h128 +a0.1 +am2 -j +r3 +fj 130 +w240 +h128 +a0.1 +am2 -j +r3 +fj 136 +w240 +h128 +a0.1 +am2 -j +r3 +fj 142 +w240 +h128 +a0.1 +am2 -j +r3 +fj 148 +w240 +h128 +a0.1 +am2 -j +r3 +fj 154 +w240 +h128 +a0.1 +am2 -j +r3 +fj 160 +w240 +h128 +a0.1 +am2 -j +r3 +fj 166 +w240 +h128 +a0.1 +am2 -j +r3 +fj 172 +w240 +h128 +a0.1 +am2 -j +r3 +fj 178 +w240 +h128 +a0.1 +am2 -j +r3 +fj [all …]
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/aleth/ |
H A D | AccountManager.cpp | 105 h128 u = m_keyManager->import(k.secret(), name, lock, lockHint); in execute() 112 h128 u = m_keyManager->store().importKey(argv[3]); in execute() 141 h128 u = fromUUID(i); in execute() 142 if (isHex(i) || u != h128()) in execute() 156 else if (u != h128()) in execute()
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/aleth-key/ |
H A D | KeyAux.h | 271 if (h128 u = fromUUID(_signKey)) in getSecret() 412 for (h128 const& u: std::set<h128>() + secretStore().keys()) in execute() 420 h128 u = secretStore().importSecret(k.secret().ref(), m_lock); in execute() 428 h128 u; in execute() 452 h128 u = secretStore().readKey(i, false); in execute() 459 else if (h128 u = fromUUID(i)) in execute() 477 if (h128 u = fromUUID(i)) in execute() 487 if (h128 u = fromUUID(i)) in execute() 516 h128 u = keyManager().store().importKey(m_inputs[0]); in execute() 553 h128 u; in execute() [all …]
|
/dports/databases/percona57-client/percona-server-5.7.36-39/storage/rocksdb/rocksdb/util/ |
H A D | xxh3p.h | 1125 return h128; in XXH3p_len_1to3_128b() 1147 return h128; in XXH3p_len_4to8_128b() 1165 h128.high64 += m128.high64 * PRIME64_2; in XXH3p_len_9to16_128b() 1166 h128.low64 = XXH3p_avalanche(h128.low64); in XXH3p_len_9to16_128b() 1167 h128.high64 = XXH3p_avalanche(h128.high64); in XXH3p_len_9to16_128b() 1168 return h128; in XXH3p_len_9to16_128b() 1181 { XXH128_hash_t const h128 = { 0, 0 }; in XXH3p_len_0to16_128b() local 1182 return h128; in XXH3p_len_0to16_128b() 1200 return h128; in XXH3p_hashLong_128b_internal() 1265 return h128; in XXH3p_len_129to240_128b() [all …]
|
/dports/databases/percona57-server/percona-server-5.7.36-39/storage/rocksdb/rocksdb/util/ |
H A D | xxh3p.h | 1125 return h128; in XXH3p_len_1to3_128b() 1147 return h128; in XXH3p_len_4to8_128b() 1165 h128.high64 += m128.high64 * PRIME64_2; in XXH3p_len_9to16_128b() 1166 h128.low64 = XXH3p_avalanche(h128.low64); in XXH3p_len_9to16_128b() 1167 h128.high64 = XXH3p_avalanche(h128.high64); in XXH3p_len_9to16_128b() 1168 return h128; in XXH3p_len_9to16_128b() 1181 { XXH128_hash_t const h128 = { 0, 0 }; in XXH3p_len_0to16_128b() local 1182 return h128; in XXH3p_len_0to16_128b() 1200 return h128; in XXH3p_hashLong_128b_internal() 1265 return h128; in XXH3p_len_129to240_128b() [all …]
|
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/storage/rocksdb/rocksdb/util/ |
H A D | xxh3p.h | 1125 return h128; in XXH3p_len_1to3_128b() 1147 return h128; in XXH3p_len_4to8_128b() 1165 h128.high64 += m128.high64 * PRIME64_2; in XXH3p_len_9to16_128b() 1166 h128.low64 = XXH3p_avalanche(h128.low64); in XXH3p_len_9to16_128b() 1167 h128.high64 = XXH3p_avalanche(h128.high64); in XXH3p_len_9to16_128b() 1168 return h128; in XXH3p_len_9to16_128b() 1181 { XXH128_hash_t const h128 = { 0, 0 }; in XXH3p_len_0to16_128b() local 1182 return h128; in XXH3p_len_0to16_128b() 1200 return h128; in XXH3p_hashLong_128b_internal() 1265 return h128; in XXH3p_len_129to240_128b() [all …]
|
/dports/mail/rspamd-devel/rspamd-93430bb/contrib/xxhash/ |
H A D | xxhash.h | 5007 return h128; in XXH3_len_1to3_128b() 5104 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_9to16_128b() 5105 h128.high64 = XXH3_avalanche(h128.high64); in XXH3_len_9to16_128b() 5106 return h128; in XXH3_len_9to16_128b() 5125 return h128; in XXH3_len_0to16_128b() 5170 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_17to128_128b() 5171 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_17to128_128b() 5172 return h128; in XXH3_len_17to128_128b() 5219 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_129to240_128b() 5220 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_129to240_128b() [all …]
|
/dports/www/firefox/firefox-99.0/mfbt/lz4/ |
H A D | xxhash.h | 5009 return h128; in XXH3_len_1to3_128b() 5106 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_9to16_128b() 5107 h128.high64 = XXH3_avalanche(h128.high64); in XXH3_len_9to16_128b() 5108 return h128; in XXH3_len_9to16_128b() 5127 return h128; in XXH3_len_0to16_128b() 5172 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_17to128_128b() 5173 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_17to128_128b() 5174 return h128; in XXH3_len_17to128_128b() 5221 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_129to240_128b() 5222 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_129to240_128b() [all …]
|
/dports/emulators/dosbox-staging/dosbox-staging-0.78.0/src/libs/decoders/ |
H A D | xxhash.h | 5132 return h128; in XXH3_len_1to3_128b() 5229 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_9to16_128b() 5230 h128.high64 = XXH3_avalanche(h128.high64); in XXH3_len_9to16_128b() 5231 return h128; in XXH3_len_9to16_128b() 5250 return h128; in XXH3_len_0to16_128b() 5295 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_17to128_128b() 5296 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_17to128_128b() 5297 return h128; in XXH3_len_17to128_128b() 5344 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_129to240_128b() 5345 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_129to240_128b() [all …]
|
/dports/www/lighttpd/lighttpd-1.4.63/src/ |
H A D | algo_xxhash.h | 5091 return h128; in XXH3_len_1to3_128b() 5188 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_9to16_128b() 5189 h128.high64 = XXH3_avalanche(h128.high64); in XXH3_len_9to16_128b() 5190 return h128; in XXH3_len_9to16_128b() 5209 return h128; in XXH3_len_0to16_128b() 5254 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_17to128_128b() 5255 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_17to128_128b() 5256 return h128; in XXH3_len_17to128_128b() 5303 h128.low64 = XXH3_avalanche(h128.low64); in XXH3_len_129to240_128b() 5304 h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); in XXH3_len_129to240_128b() [all …]
|