Searched refs:secrets (Results 1 - 8 of 8) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_secrets.py | 1 """Test the secrets module. 3 As most of the functions in secrets are thin wrappers around functions 8 import secrets namespace 16 """Test secrets.compare_digest function.""" 23 self.assertTrue(secrets.compare_digest(a, b)) 24 self.assertTrue(secrets.compare_digest(a.encode('utf-8'), b.encode('utf-8'))) 28 self.assertFalse(secrets.compare_digest("abc", "abcd")) 29 self.assertFalse(secrets.compare_digest(b"abc", b"abcd")) 33 self.assertFalse(secrets.compare_digest(a, b)) 34 self.assertFalse(secrets [all...] |
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ecp_nistp256.c | 2033 felem_bytearray *secrets = NULL; in ossl_ec_GFp_nistp256_points_mul() local 2096 secrets = OPENSSL_malloc(sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp256_points_mul() 2101 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp256_points_mul() 2111 memset(secrets, 0, sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp256_points_mul() 2139 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp256_points_mul() 2142 secrets[i], sizeof(secrets[ in ossl_ec_GFp_nistp256_points_mul() [all...] |
H A D | ecp_nistp521.c | 1926 felem_bytearray *secrets = NULL; in ossl_ec_GFp_nistp521_points_mul() local 1989 secrets = OPENSSL_zalloc(sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp521_points_mul() 1994 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp521_points_mul() 2030 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp521_points_mul() 2033 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp521_points_mul() 2087 (const felem_bytearray(*))secrets, num_points, in ossl_ec_GFp_nistp521_points_mul() 2094 (const felem_bytearray(*))secrets, num_point in ossl_ec_GFp_nistp521_points_mul() [all...] |
H A D | ecp_nistp224.c | 1422 felem_bytearray *secrets = NULL; in ossl_ec_GFp_nistp224_points_mul() local 1484 secrets = OPENSSL_zalloc(sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp224_points_mul() 1489 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp224_points_mul() 1522 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp224_points_mul() 1525 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp224_points_mul() 1579 (const felem_bytearray(*))secrets, num_points, in ossl_ec_GFp_nistp224_points_mul() 1585 (const felem_bytearray(*))secrets, num_point in ossl_ec_GFp_nistp224_points_mul() [all...] |
/third_party/openssl/crypto/ec/ |
H A D | ecp_nistp256.c | 2033 felem_bytearray *secrets = NULL; in ossl_ec_GFp_nistp256_points_mul() local 2096 secrets = OPENSSL_malloc(sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp256_points_mul() 2101 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp256_points_mul() 2111 memset(secrets, 0, sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp256_points_mul() 2139 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp256_points_mul() 2142 secrets[i], sizeof(secrets[ in ossl_ec_GFp_nistp256_points_mul() [all...] |
H A D | ecp_nistp521.c | 1926 felem_bytearray *secrets = NULL; in ossl_ec_GFp_nistp521_points_mul() local 1989 secrets = OPENSSL_zalloc(sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp521_points_mul() 1994 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp521_points_mul() 2030 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp521_points_mul() 2033 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp521_points_mul() 2087 (const felem_bytearray(*))secrets, num_points, in ossl_ec_GFp_nistp521_points_mul() 2094 (const felem_bytearray(*))secrets, num_point in ossl_ec_GFp_nistp521_points_mul() [all...] |
H A D | ecp_nistp224.c | 1422 felem_bytearray *secrets = NULL; in ossl_ec_GFp_nistp224_points_mul() local 1484 secrets = OPENSSL_zalloc(sizeof(*secrets) * num_points); in ossl_ec_GFp_nistp224_points_mul() 1489 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp224_points_mul() 1522 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp224_points_mul() 1525 secrets[i], sizeof(secrets[i])); in ossl_ec_GFp_nistp224_points_mul() 1579 (const felem_bytearray(*))secrets, num_points, in ossl_ec_GFp_nistp224_points_mul() 1585 (const felem_bytearray(*))secrets, num_point in ossl_ec_GFp_nistp224_points_mul() [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | shared_memory.py | 16 import secrets namespace 45 name = _SHM_NAME_PREFIX + secrets.token_hex(nbytes)
|
Completed in 17 milliseconds