Home
last modified time | relevance | path

Searched refs:crypt (Results 1 – 25 of 198) sorted by relevance

12345678

/external/python/cpython3/Lib/test/
Dtest_crypt.py6 import crypt
11 crypt = None variable
16 @unittest.skipIf(crypt, 'import succeeded')
23 @unittest.skipUnless(crypt, 'crypt module is required')
27 cr = crypt.crypt('mypassword')
28 cr2 = crypt.crypt('mypassword', cr)
30 cr = crypt.crypt('mypassword', 'ab')
32 cr2 = crypt.crypt('mypassword', cr)
36 self.assertEqual(len(crypt._saltchars), 64)
37 for method in crypt.methods:
[all …]
/external/python/oauth2client/tests/
Dtest__pure_python_crypt.py27 from oauth2client import crypt
53 signer = crypt.RsaSigner.from_string(self._load_private_key_bytes())
56 verifier = crypt.RsaVerifier.from_string(
62 signer = crypt.RsaSigner.from_string(self._load_private_key_bytes())
65 verifier = crypt.RsaVerifier.from_string(
70 verifier = crypt.RsaVerifier.from_string(
79 verifier = crypt.RsaVerifier.from_string(
81 self.assertIsInstance(verifier, crypt.RsaVerifier)
86 verifier = crypt.RsaVerifier.from_string(
88 self.assertIsInstance(verifier, crypt.RsaVerifier)
[all …]
Dtest_crypt.py23 from oauth2client import crypt
40 crypt._bad_pkcs12_key_as_pem()
60 pem_contents = crypt.pkcs12_key_as_pem(
88 result = crypt._verify_signature(message, signature, certs)
112 result = crypt._verify_signature(message, signature, certs)
138 with self.assertRaises(crypt.AppIdentityError):
139 crypt._verify_signature(message, signature, certs)
150 result = crypt._check_audience(None, None)
156 result = crypt._check_audience(payload_dict, audience)
163 with self.assertRaises(crypt.AppIdentityError):
[all …]
Dtest_jwt.py26 from oauth2client import crypt
54 self.signer = crypt.OpenSSLSigner
55 self.verifier = crypt.OpenSSLVerifier
89 with self.assertRaises(crypt.AppIdentityError) as exc_manager:
90 crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
100 return crypt.make_signed_jwt(signer, {
113 contents = crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
174 jwt = crypt.make_signed_jwt(signer, {
181 jwt = crypt.make_signed_jwt(signer, {
188 jwt = crypt.make_signed_jwt(signer, {
[all …]
Dtest__pycrypto_crypt.py20 from oauth2client import crypt
40 signer = crypt.PyCryptoSigner.from_string(
44 verifier = crypt.PyCryptoVerifier.from_string(
49 verifier = crypt.PyCryptoVerifier.from_string(
55 verifier = crypt.PyCryptoVerifier.from_string(
63 verifier = crypt.PyCryptoVerifier.from_string(
65 self.assertIsInstance(verifier, crypt.PyCryptoVerifier)
73 crypt.PyCryptoSigner.from_string(key_bytes)
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-cipher.c104 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
110 if (plain != crypt) in crypto_cipher_encrypt()
111 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
113 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt()
127 crypt += AES_BLOCK_SIZE; in crypto_cipher_encrypt()
139 os_memcpy(crypt, ctx->u.des3.cbc, 8); in crypto_cipher_encrypt()
141 crypt += 8; in crypto_cipher_encrypt()
153 os_memcpy(crypt, ctx->u.des.cbc, 8); in crypto_cipher_encrypt()
155 crypt += 8; in crypto_cipher_encrypt()
[all …]
Ddes-internal.c435 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) in des_block_encrypt() argument
441 WPA_PUT_BE32(crypt, work[0]); in des_block_encrypt()
442 WPA_PUT_BE32(crypt + 4, work[1]); in des_block_encrypt()
446 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) in des_block_decrypt() argument
449 work[0] = WPA_GET_BE32(crypt); in des_block_decrypt()
450 work[1] = WPA_GET_BE32(crypt + 4); in des_block_decrypt()
469 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) in des3_encrypt() argument
478 WPA_PUT_BE32(crypt, work[0]); in des3_encrypt()
479 WPA_PUT_BE32(crypt + 4, work[1]); in des3_encrypt()
483 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) in des3_decrypt() argument
[all …]
Ddes_i.h18 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
19 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain);
22 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
23 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
Dcrypto_libtomcrypt.c100 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
103 return aes_ecb_encrypt(plain, crypt, skey) == CRYPT_OK ? 0 : -1; in aes_encrypt()
129 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
132 return aes_ecb_encrypt(plain, (u8 *) crypt, skey) == CRYPT_OK ? 0 : -1; in aes_decrypt()
355 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
360 if (plain != crypt) in crypto_cipher_encrypt()
361 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
363 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
368 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); in crypto_cipher_encrypt()
378 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
[all …]
Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument
242 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash()
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument
270 aes_gcm_gctr(aes, J0, plain, plain_len, crypt); in aes_gcm_ae()
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S); in aes_gcm_ae()
289 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad()
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
Daes_wrap.h56 u8 *crypt, u8 *tag);
59 const u8 *crypt, size_t crypt_len,
67 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
69 size_t M, const u8 *crypt, size_t crypt_len,
Dcrypto_nettle.c261 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
264 nettle_aes_encrypt(actx, AES_BLOCK_SIZE, crypt, plain); in aes_encrypt()
292 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
295 nettle_aes_decrypt(actx, AES_BLOCK_SIZE, plain, crypt); in aes_decrypt()
437 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
441 nettle_arcfour_crypt(&ctx->u.arcfour_ctx, len, crypt, plain); in crypto_cipher_encrypt()
451 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
456 nettle_arcfour_crypt(&ctx->u.arcfour_ctx, len, plain, crypt); in crypto_cipher_decrypt()
/external/python/cpython3/Doc/library/
Dcrypt.rst1 :mod:`crypt` --- Function to check Unix passwords
4 .. module:: crypt
6 :synopsis: The crypt() function used to check Unix passwords.
12 **Source code:** :source:`Lib/crypt.py`
15 single: crypt(3)
20 This module implements an interface to the :manpage:`crypt(3)` routine, which is
26 .. index:: single: crypt(3)
29 the :manpage:`crypt(3)` routine in the running system. Therefore, any
40 The :mod:`crypt` module defines the list of hashing methods (not all methods
79 ``crypt.METHOD_*`` objects. This list is sorted from strongest to
[all …]
/external/python/cpython2/Doc/library/
Dcrypt.rst2 :mod:`crypt` --- Function to check Unix passwords
5 .. module:: crypt
7 :synopsis: The crypt() function used to check Unix passwords.
14 single: crypt(3)
17 This module implements an interface to the :manpage:`crypt(3)` routine, which is
23 .. index:: single: crypt(3)
26 the :manpage:`crypt(3)` routine in the running system. Therefore, any
31 .. function:: crypt(word, salt)
40 .. index:: single: crypt(3)
42 Since a few :manpage:`crypt(3)` extensions allow different values, with
[all …]
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/lib/tpm/
Dsub.mk188 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/AlgorithmTests.c
189 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/BnConvert.c
190 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/BnMath.c
191 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/BnMemory.c
192 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/CryptCmac.c
193 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/CryptDes.c
194 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/CryptEccData.c
195 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/CryptEccKeyExchange.c
196 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/CryptEccMain.c
197 srcs-y += tpm_symlink/TPMCmd/tpm/src/crypt/CryptEccSignature.c
[all …]
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/
Dcrypt.cpp9 #if __has_include(<crypt.h>)
17 char *p = crypt("abcdef", "xz"); in main()
21 char *p = crypt("abcdef", "$1$"); in main()
25 char *p = crypt("abcdef", "$5$"); in main()
29 char *p = crypt("abcdef", "$6$"); in main()
/external/python/cpython2/Lib/test/
Dtest_crypt.py5 crypt = test_support.import_module('crypt') variable
13 cr = crypt.crypt('mypassword', 'ab')
15 cr2 = crypt.crypt('mypassword', cr)
/external/protobuf/js/binary/
Dutils_test.js209 assertEquals(goog.crypt.byteArrayToString(
213 assertEquals(goog.crypt.byteArrayToString(
217 assertEquals(goog.crypt.byteArrayToString(
221 assertEquals(goog.crypt.byteArrayToString(
225 assertEquals(goog.crypt.byteArrayToString(
229 assertEquals(goog.crypt.byteArrayToString(
233 assertEquals(goog.crypt.byteArrayToString(
263 assertEquals(goog.crypt.byteArrayToString(
267 assertEquals(goog.crypt.byteArrayToString(
272 assertEquals(goog.crypt.byteArrayToString(
[all …]
/external/openssh/openbsd-compat/
Dxcrypt.c63 # define crypt DES_crypt macro
115 crypted = crypt(password, salt); in xcrypt()
120 crypted = crypt(password, salt); in xcrypt()
124 crypted = crypt(password, salt); in xcrypt()
/external/python/oauth2client/oauth2client/
Dservice_account.py26 from oauth2client import crypt
186 signer = crypt.Signer.from_string(private_key_pkcs8_pem)
289 if crypt.Signer is not crypt.OpenSSLSigner:
291 signer = crypt.Signer.from_string(private_key_pkcs12,
385 return crypt.make_signed_jwt(self._signer, payload,
444 signer = crypt.Signer.from_string(private_key_pkcs8_pem)
451 signer = crypt.Signer.from_string(pkcs12_val, password)
671 jwt = crypt.make_signed_jwt(self._signer, payload,
/external/grpc-grpc/test/core/tsi/alts/frame_protector/
DBUILD29 "//test/core/tsi/alts/crypt:alts_crypt_test_util",
42 "//test/core/tsi/alts/crypt:alts_crypt_test_util",
57 "//test/core/tsi/alts/crypt:alts_crypt_test_util",
72 "//test/core/tsi/alts/crypt:alts_crypt_test_util",
/external/libpcap/rpcapd/
DCMakeLists.txt2 check_function_exists(crypt HAVE_CRYPT_IN_SYSTEM_LIBRARIES)
6 check_library_exists(crypt crypt "" HAVE_CRYPT_IN_LIBCRYPT)
8 set(RPCAPD_LINK_LIBRARIES ${RPCAPD_LINK_LIBRARIES} crypt)
11 message(WARNING "crypt() not found. Won't be able to build rpcapd.")
17 # On UN*X, we need pthreads and crypt().
/external/python/cpython3/Lib/
Dcrypt.py70 def crypt(word, salt=None): function
82 return _crypt.crypt(word, salt)
94 result = crypt('', salt)
/external/python/oauth2client/docs/source/
Doauth2client.crypt.rst1 oauth2client.crypt module
4 .. automodule:: oauth2client.crypt
/external/libnl/lib/xfrm/
Dsa.c113 if (sa->crypt) in xfrm_sa_free_data()
114 free (sa->crypt); in xfrm_sa_free_data()
168 if (src->crypt) in xfrm_sa_clone()
170 len = sizeof (struct xfrmnl_algo) + ((src->crypt->alg_key_len + 7) / 8); in xfrm_sa_clone()
171 if ((dst->crypt = calloc (1, len)) == NULL) in xfrm_sa_clone()
173 memcpy ((void *)dst->crypt, (void *)src->crypt, len); in xfrm_sa_clone()
245 diff |= XFRM_SA_DIFF(ALG_CRYPT,(strcmp(a->crypt->alg_name, b->crypt->alg_name) || in xfrm_sa_compare()
246 (a->crypt->alg_key_len != b->crypt->alg_key_len) || in xfrm_sa_compare()
247 memcmp(a->crypt->alg_key, b->crypt->alg_key, in xfrm_sa_compare()
248 ((a->crypt->alg_key_len + 7)/8)))); in xfrm_sa_compare()
[all …]

12345678