Home
last modified time | relevance | path

Searched refs:randomness (Results 1 – 25 of 2945) sorted by relevance

12345678910>>...118

/dports/net-im/zkgroup/zkgroup-0.7.4/ffi/swift/Sources/ZKGroup/
H A DServerSecretParams.swift17 var randomness: [UInt8] = Array(repeating: 0, count: Int(32)) in generate() variable
18 let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness) in generate()
23 return try generate(randomness: randomness) in generate()
26 public static func generate(randomness: [UInt8]) throws -> ServerSecretParams { in generate()
29 …let ffi_return = FFI_ServerSecretParams_generateDeterministic(randomness, UInt32(randomness.count)… in generate()
70 var randomness: [UInt8] = Array(repeating: 0, count: Int(32)) in sign() variable
71 let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness) in sign()
76 return try sign(randomness: randomness, message: message) in sign()
79 public func sign(randomness: [UInt8], message: [UInt8]) throws -> NotarySignature { in sign()
82 …signDeterministic(self.contents, UInt32(self.contents.count), randomness, UInt32(randomness.count)… in sign()
H A DClientZkProfileOperations.swift15 var randomness: [UInt8] = Array(repeating: 0, count: Int(32)) in createProfileKeyCredentialRequestContext() variable
16 let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness) in createProfileKeyCredentialRequestContext()
21 …return try createProfileKeyCredentialRequestContext(randomness: randomness, uuid: uuid, profileKey… in createProfileKeyCredentialRequestContext()
24 …public func createProfileKeyCredentialRequestContext(randomness: [UInt8], uuid: ZKGUuid, profileKe… in createProfileKeyCredentialRequestContext()
27 …UInt32(serverPublicParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count)… in createProfileKeyCredentialRequestContext()
62 var randomness: [UInt8] = Array(repeating: 0, count: Int(32)) in createProfileKeyCredentialPresentation() variable
63 let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness) in createProfileKeyCredentialPresentation()
68 …return try createProfileKeyCredentialPresentation(randomness: randomness, groupSecretParams: group… in createProfileKeyCredentialPresentation()
71 …public func createProfileKeyCredentialPresentation(randomness: [UInt8], groupSecretParams: GroupSe… in createProfileKeyCredentialPresentation()
74 …UInt32(serverPublicParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count)… in createProfileKeyCredentialPresentation()
H A DServerZkAuthOperations.swift15 var randomness: [UInt8] = Array(repeating: 0, count: Int(32)) in issueAuthCredential() variable
16 let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness) in issueAuthCredential()
21 … return try issueAuthCredential(randomness: randomness, uuid: uuid, redemptionTime: redemptionTime) in issueAuthCredential()
24 …public func issueAuthCredential(randomness: [UInt8], uuid: ZKGUuid, redemptionTime: UInt32) throws… in issueAuthCredential()
27 …UInt32(serverSecretParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count)… in issueAuthCredential()
H A DClientZkAuthOperations.swift35 var randomness: [UInt8] = Array(repeating: 0, count: Int(32)) in createAuthCredentialPresentation() variable
36 let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness) in createAuthCredentialPresentation()
41 …return try createAuthCredentialPresentation(randomness: randomness, groupSecretParams: groupSecret… in createAuthCredentialPresentation()
44 …public func createAuthCredentialPresentation(randomness: [UInt8], groupSecretParams: GroupSecretPa… in createAuthCredentialPresentation()
47 …UInt32(serverPublicParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count)… in createAuthCredentialPresentation()
H A DServerZkProfileOperations.swift15 var randomness: [UInt8] = Array(repeating: 0, count: Int(32)) in issueProfileKeyCredential() variable
16 let result = SecRandomCopyBytes(kSecRandomDefault, randomness.count, &randomness) in issueProfileKeyCredential()
21 …return try issueProfileKeyCredential(randomness: randomness, profileKeyCredentialRequest: profileK… in issueProfileKeyCredential()
24 …public func issueProfileKeyCredential(randomness: [UInt8], profileKeyCredentialRequest: ProfileKey… in issueProfileKeyCredential()
27 …UInt32(serverSecretParams.getInternalContentsForFFI().count), randomness, UInt32(randomness.count)… in issueProfileKeyCredential()
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/svm/
H A Dsvm_voronoi.h42 float randomness, in voronoi_f1_1d() argument
943 randomness = clamp(randomness, 0.0f, 1.0f); in svm_node_tex_voronoi()
960 randomness, in svm_node_tex_voronoi()
989 randomness, in svm_node_tex_voronoi()
1000 randomness, in svm_node_tex_voronoi()
1010 randomness, in svm_node_tex_voronoi()
1034 randomness, in svm_node_tex_voronoi()
1045 randomness, in svm_node_tex_voronoi()
1055 randomness, in svm_node_tex_voronoi()
1082 randomness, in svm_node_tex_voronoi()
[all …]
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/shaders/material/
H A Dgpu_shader_material_tex_voronoi.glsl32 randomness = clamp(randomness, 0.0, 1.0);
68 randomness = clamp(randomness, 0.0, 1.0);
108 randomness = clamp(randomness, 0.0, 1.0);
155 randomness = clamp(randomness, 0.0, 1.0);
184 randomness = clamp(randomness, 0.0, 1.0);
259 randomness = clamp(randomness, 0.0, 1.0);
297 randomness = clamp(randomness, 0.0, 1.0);
339 randomness = clamp(randomness, 0.0, 1.0);
388 randomness = clamp(randomness, 0.0, 1.0);
439 randomness = clamp(randomness, 0.0, 1.0);
[all …]
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/pubkey/xmss/
H A Dxmss_signature.h43 const secure_vector<uint8_t>& randomness, in XMSS_Signature() argument
45 : m_leaf_idx(leaf_idx), m_randomness(randomness), in XMSS_Signature()
57 secure_vector<uint8_t>&& randomness, in XMSS_Signature() argument
59 : m_leaf_idx(leaf_idx), m_randomness(std::move(randomness)), in XMSS_Signature()
65 const secure_vector<uint8_t> randomness() const in randomness() function
70 secure_vector<uint8_t>& randomness() in randomness() function
75 void set_randomness(const secure_vector<uint8_t>& randomness) in set_randomness() argument
77 m_randomness = randomness; in set_randomness()
80 void set_randomness(secure_vector<uint8_t>&& randomness) in set_randomness() argument
82 m_randomness = std::move(randomness); in set_randomness()
/dports/security/botan2/Botan-2.18.2/src/lib/pubkey/xmss/
H A Dxmss_signature.h43 const secure_vector<uint8_t>& randomness, in XMSS_Signature() argument
45 : m_leaf_idx(leaf_idx), m_randomness(randomness), in XMSS_Signature()
57 secure_vector<uint8_t>&& randomness, in XMSS_Signature() argument
59 : m_leaf_idx(leaf_idx), m_randomness(std::move(randomness)), in XMSS_Signature()
65 const secure_vector<uint8_t> randomness() const in randomness() function
70 secure_vector<uint8_t>& randomness() in randomness() function
75 void set_randomness(const secure_vector<uint8_t>& randomness) in set_randomness() argument
77 m_randomness = randomness; in set_randomness()
80 void set_randomness(secure_vector<uint8_t>&& randomness) in set_randomness() argument
82 m_randomness = std::move(randomness); in set_randomness()
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/pubkey/xmss/
H A Dxmss_signature.h43 const secure_vector<uint8_t>& randomness, in XMSS_Signature() argument
45 : m_leaf_idx(leaf_idx), m_randomness(randomness), in XMSS_Signature()
57 secure_vector<uint8_t>&& randomness, in XMSS_Signature() argument
59 : m_leaf_idx(leaf_idx), m_randomness(std::move(randomness)), in XMSS_Signature()
65 const secure_vector<uint8_t> randomness() const in randomness() function
70 secure_vector<uint8_t>& randomness() in randomness() function
75 void set_randomness(const secure_vector<uint8_t>& randomness) in set_randomness() argument
77 m_randomness = randomness; in set_randomness()
80 void set_randomness(secure_vector<uint8_t>&& randomness) in set_randomness() argument
82 m_randomness = std::move(randomness); in set_randomness()
/dports/games/powder-toy/The-Powder-Toy-95.0/src/simulation/elements/
H A DPRTO.cpp88 memset(&sim->portalp[parts[i].tmp][randomness][nnx], 0, sizeof(Particle)); in update()
91 else if (sim->portalp[parts[i].tmp][randomness][nnx].type) in update()
93 if (sim->portalp[parts[i].tmp][randomness][nnx].type==PT_STKM) in update()
95 if (sim->portalp[parts[i].tmp][randomness][nnx].type==PT_STKM2) in update()
97 if (sim->portalp[parts[i].tmp][randomness][nnx].type==PT_FIGH) in update()
105 if (sim->portalp[parts[i].tmp][randomness][nnx].type==PT_STKM) in update()
107 if (sim->portalp[parts[i].tmp][randomness][nnx].type==PT_STKM2) in update()
109 if (sim->portalp[parts[i].tmp][randomness][nnx].type==PT_FIGH) in update()
122 …if (sim->portalp[parts[i].tmp][randomness][nnx].vx == 0.0f && sim->portalp[parts[i].tmp][randomnes… in update()
127 parts[np] = sim->portalp[parts[i].tmp][randomness][nnx]; in update()
[all …]
/dports/security/snowflake-tor/snowflake-ead5a960d7fa19dc890ccbfc0765c5ab6629eaa9/vendor/github.com/pion/transport/test/
H A Drand.go13 randomness []byte member
18 randomness := make([]byte, 1<<20)
19 if _, err := crand.Read(randomness); err != nil {
23 randomness: randomness,
28 n := len(r.randomness) - size
30 return nil, fmt.Errorf("%w (%d). max is %d", errRequestTooLargeBuffer, size, len(r.randomness))
34 return r.randomness[start : start+size], nil
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/soc/tegra/fuse/
H A Dfuse-tegra30.c69 u32 randomness[12]; in tegra30_fuse_add_randomness() local
71 randomness[0] = tegra_sku_info.sku_id; in tegra30_fuse_add_randomness()
72 randomness[1] = tegra_read_straps(); in tegra30_fuse_add_randomness()
73 randomness[2] = tegra_read_chipid(); in tegra30_fuse_add_randomness()
74 randomness[3] = tegra_sku_info.cpu_process_id << 16; in tegra30_fuse_add_randomness()
75 randomness[3] |= tegra_sku_info.soc_process_id; in tegra30_fuse_add_randomness()
76 randomness[4] = tegra_sku_info.cpu_speedo_id << 16; in tegra30_fuse_add_randomness()
77 randomness[4] |= tegra_sku_info.soc_speedo_id; in tegra30_fuse_add_randomness()
79 randomness[6] = tegra_fuse_read_early(FUSE_FAB_CODE); in tegra30_fuse_add_randomness()
82 randomness[9] = tegra_fuse_read_early(FUSE_WAFER_ID); in tegra30_fuse_add_randomness()
[all …]
H A Dfuse-tegra20.c138 u32 randomness[7]; in tegra20_fuse_add_randomness() local
140 randomness[0] = tegra_sku_info.sku_id; in tegra20_fuse_add_randomness()
141 randomness[1] = tegra_read_straps(); in tegra20_fuse_add_randomness()
142 randomness[2] = tegra_read_chipid(); in tegra20_fuse_add_randomness()
143 randomness[3] = tegra_sku_info.cpu_process_id << 16; in tegra20_fuse_add_randomness()
144 randomness[3] |= tegra_sku_info.soc_process_id; in tegra20_fuse_add_randomness()
145 randomness[4] = tegra_sku_info.cpu_speedo_id << 16; in tegra20_fuse_add_randomness()
146 randomness[4] |= tegra_sku_info.soc_speedo_id; in tegra20_fuse_add_randomness()
147 randomness[5] = tegra_fuse_read_early(FUSE_UID_LOW); in tegra20_fuse_add_randomness()
148 randomness[6] = tegra_fuse_read_early(FUSE_UID_HIGH); in tegra20_fuse_add_randomness()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/soc/tegra/fuse/
H A Dfuse-tegra30.c69 u32 randomness[12]; in tegra30_fuse_add_randomness() local
71 randomness[0] = tegra_sku_info.sku_id; in tegra30_fuse_add_randomness()
72 randomness[1] = tegra_read_straps(); in tegra30_fuse_add_randomness()
73 randomness[2] = tegra_read_chipid(); in tegra30_fuse_add_randomness()
74 randomness[3] = tegra_sku_info.cpu_process_id << 16; in tegra30_fuse_add_randomness()
75 randomness[3] |= tegra_sku_info.soc_process_id; in tegra30_fuse_add_randomness()
76 randomness[4] = tegra_sku_info.cpu_speedo_id << 16; in tegra30_fuse_add_randomness()
77 randomness[4] |= tegra_sku_info.soc_speedo_id; in tegra30_fuse_add_randomness()
79 randomness[6] = tegra_fuse_read_early(FUSE_FAB_CODE); in tegra30_fuse_add_randomness()
82 randomness[9] = tegra_fuse_read_early(FUSE_WAFER_ID); in tegra30_fuse_add_randomness()
[all …]
H A Dfuse-tegra20.c138 u32 randomness[7]; in tegra20_fuse_add_randomness() local
140 randomness[0] = tegra_sku_info.sku_id; in tegra20_fuse_add_randomness()
141 randomness[1] = tegra_read_straps(); in tegra20_fuse_add_randomness()
142 randomness[2] = tegra_read_chipid(); in tegra20_fuse_add_randomness()
143 randomness[3] = tegra_sku_info.cpu_process_id << 16; in tegra20_fuse_add_randomness()
144 randomness[3] |= tegra_sku_info.soc_process_id; in tegra20_fuse_add_randomness()
145 randomness[4] = tegra_sku_info.cpu_speedo_id << 16; in tegra20_fuse_add_randomness()
146 randomness[4] |= tegra_sku_info.soc_speedo_id; in tegra20_fuse_add_randomness()
147 randomness[5] = tegra_fuse_read_early(FUSE_UID_LOW); in tegra20_fuse_add_randomness()
148 randomness[6] = tegra_fuse_read_early(FUSE_UID_HIGH); in tegra20_fuse_add_randomness()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/soc/tegra/fuse/
H A Dfuse-tegra30.c69 u32 randomness[12]; in tegra30_fuse_add_randomness() local
71 randomness[0] = tegra_sku_info.sku_id; in tegra30_fuse_add_randomness()
72 randomness[1] = tegra_read_straps(); in tegra30_fuse_add_randomness()
73 randomness[2] = tegra_read_chipid(); in tegra30_fuse_add_randomness()
74 randomness[3] = tegra_sku_info.cpu_process_id << 16; in tegra30_fuse_add_randomness()
75 randomness[3] |= tegra_sku_info.soc_process_id; in tegra30_fuse_add_randomness()
76 randomness[4] = tegra_sku_info.cpu_speedo_id << 16; in tegra30_fuse_add_randomness()
77 randomness[4] |= tegra_sku_info.soc_speedo_id; in tegra30_fuse_add_randomness()
79 randomness[6] = tegra_fuse_read_early(FUSE_FAB_CODE); in tegra30_fuse_add_randomness()
82 randomness[9] = tegra_fuse_read_early(FUSE_WAFER_ID); in tegra30_fuse_add_randomness()
[all …]
H A Dfuse-tegra20.c138 u32 randomness[7]; in tegra20_fuse_add_randomness() local
140 randomness[0] = tegra_sku_info.sku_id; in tegra20_fuse_add_randomness()
141 randomness[1] = tegra_read_straps(); in tegra20_fuse_add_randomness()
142 randomness[2] = tegra_read_chipid(); in tegra20_fuse_add_randomness()
143 randomness[3] = tegra_sku_info.cpu_process_id << 16; in tegra20_fuse_add_randomness()
144 randomness[3] |= tegra_sku_info.soc_process_id; in tegra20_fuse_add_randomness()
145 randomness[4] = tegra_sku_info.cpu_speedo_id << 16; in tegra20_fuse_add_randomness()
146 randomness[4] |= tegra_sku_info.soc_speedo_id; in tegra20_fuse_add_randomness()
147 randomness[5] = tegra_fuse_read_early(FUSE_UID_LOW); in tegra20_fuse_add_randomness()
148 randomness[6] = tegra_fuse_read_early(FUSE_UID_HIGH); in tegra20_fuse_add_randomness()
[all …]
/dports/net-im/zkgroup/zkgroup-0.7.4/rust/benches/
H A Dzkgroup_benchmarks.rs20 let randomness = zkgroup::TEST_ARRAY_32_2; in benchmark_integration_auth() localVariable
47 let randomness = zkgroup::TEST_ARRAY_32_5; in benchmark_integration_auth() localVariable
50 randomness, in benchmark_integration_auth()
58 randomness, in benchmark_integration_auth()
102 let randomness = zkgroup::TEST_ARRAY_32_3; in benchmark_integration_profile() localVariable
105 randomness, in benchmark_integration_profile()
113 randomness, in benchmark_integration_profile()
124 let randomness = zkgroup::TEST_ARRAY_32_4; in benchmark_integration_profile() localVariable
183 let randomness = zkgroup::TEST_ARRAY_32_5; in benchmark_integration_profile() localVariable
186 randomness, in benchmark_integration_profile()
[all …]
/dports/games/wesnoth/wesnoth-1.14.17/src/tests/
H A Dtest_rng.cpp48 randomness::mt_rng rng; in BOOST_AUTO_TEST_CASE()
94 randomness::mt_rng rng(cfg); in BOOST_AUTO_TEST_CASE()
138 randomness::mt_rng rng1(cfg); in BOOST_AUTO_TEST_CASE()
139 randomness::mt_rng rng2(cfg); in BOOST_AUTO_TEST_CASE()
153 randomness::mt_rng rng1(cfg); in BOOST_AUTO_TEST_CASE()
154 randomness::mt_rng rng2(cfg); in BOOST_AUTO_TEST_CASE()
164 randomness::mt_rng rng1; in BOOST_AUTO_TEST_CASE()
169 randomness::mt_rng rng2(cfg); in BOOST_AUTO_TEST_CASE()
179 randomness::mt_rng rng1; in BOOST_AUTO_TEST_CASE()
201 randomness::mt_rng rng(cfg); in BOOST_AUTO_TEST_CASE()
[all …]
/dports/security/trousers/trousers-0.3.14_3/src/tspi/daa/daa_anonymityrevocation/
H A Dcsencryption_result.c39 bi_ptr randomness in create_CS_ENCRYPTION_RESULT_RANDOMNESS() argument
50 result->randomness = randomness; in create_CS_ENCRYPTION_RESULT_RANDOMNESS()
98 const bi_ptr randomness, in internal_compute_encryption_proof() argument
126 bi_mod_exp( c1, gamma, randomness, modulus); in internal_compute_encryption_proof()
127 bi_mod_exp( c2, key->eta, randomness, modulus); in internal_compute_encryption_proof()
155 bi_mul( exp, exp, randomness); in internal_compute_encryption_proof()
159 bi_mod_exp( bi_tmp, key->lambda1, randomness, modulus); in internal_compute_encryption_proof()
172 randomness); in internal_compute_encryption_proof()
184 const bi_ptr randomness, in compute_ecryption_proof() argument
196 if( bi_cmp( randomness, daa_key->rho) >=0 || bi_cmp_si( randomness, 0) < 0) { in compute_ecryption_proof()
[all …]
/dports/games/dangen/dangen-0.5/spqr/
H A Dflatdice.c20 flatdice_new(int side, int randomness, int repeat) in flatdice_new() argument
31 if (randomness <= 0) in flatdice_new()
34 randomness); in flatdice_new()
51 new->randomness = randomness; in flatdice_new()
64 new->stock[i] = randomness; in flatdice_new()
104 if (p->randomness <= 0) in flatdice_valid()
108 p->randomness); in flatdice_valid()
202 needed = p->randomness; in flatdice_next()
205 if (needed > p->randomness - p->stock[i]) in flatdice_next()
206 needed = p->randomness - p->stock[i]; in flatdice_next()
[all …]
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/shaders/
H A Dnode_voronoi_texture.osl76 float randomness,
105 float randomness,
136 float randomness,
247 float randomness,
279 float randomness,
313 float randomness,
459 float randomness,
493 float randomness,
530 float randomness,
686 float randomness,
[all …]
/dports/devel/mutagen/mutagen-0.11.8/vendor/github.com/pion/transport/test/
H A Drand.go9 var randomness []byte var
13 randomness = make([]byte, 1<<20)
14 if _, err := crand.Read(randomness); err != nil {
20 n := len(randomness) - size
22 return nil, fmt.Errorf("requested too large buffer (%d). max is %d", size, len(randomness))
26 return randomness[start : start+size], nil
/dports/net-im/zkgroup/zkgroup-0.7.4/rust/tests/
H A Dintegration_tests.rs119 let randomness = zkgroup::TEST_ARRAY_32_2; in test_integration_auth() localVariable
134 let randomness = zkgroup::TEST_ARRAY_32_5; in test_integration_auth() localVariable
137 randomness, in test_integration_auth()
207 let randomness = zkgroup::TEST_ARRAY_32_3; in test_integration_profile() localVariable
210 randomness, in test_integration_profile()
218 let randomness = zkgroup::TEST_ARRAY_32_4; in test_integration_profile() localVariable
242 let randomness = zkgroup::TEST_ARRAY_32_5; in test_integration_profile() localVariable
245 randomness, in test_integration_profile()
295 let randomness = zkgroup::TEST_ARRAY_32_2; in test_server_sigs() localVariable
322 let randomness = zkgroup::TEST_ARRAY_32_2; in test_blob_encryption() localVariable
[all …]

12345678910>>...118