Home
last modified time | relevance | path

Searched refs:crypt (Results 1 - 25 of 109) sorted by relevance

12345

/third_party/python/Lib/test/
H A Dtest_crypt.py8 raise unittest.SkipTest("The crypt module SEGFAULTs on ASAN/MSAN builds")
9 crypt = warnings_helper.import_deprecated("crypt") variable
14 crypt = None variable
19 @unittest.skipIf(crypt, 'import succeeded')
26 @unittest.skipUnless(crypt, 'crypt module is required')
30 cr = crypt.crypt('mypassword')
31 cr2 = crypt
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Dcrypto_internal-cipher.c104 u8 *crypt, size_t len) in crypto_cipher_encrypt()
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 in crypto_cipher_encrypt()
103 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
166 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) crypto_cipher_decrypt() argument
[all...]
H A 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);
H A 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()
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
354 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
615 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) crypto_public_key_decrypt_pkcs1() argument
[all...]
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash()
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()
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()
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()
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) aes_gcm_ghash() argument
254 aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *plain, size_t plain_len, const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) aes_gcm_ae() argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) aes_gcm_ad() argument
H A 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, cons argument
[all...]
H A 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,
H A Dcrypto_gnutls.c237 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
240 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); in aes_encrypt()
271 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
274 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); in aes_decrypt()
482 u8 *crypt, size_t len) in crypto_cipher_encrypt()
484 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) != in crypto_cipher_encrypt()
491 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
494 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) != in crypto_cipher_decrypt()
481 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
H A 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()
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()
436 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
H A Daes.h15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Dcrypto_internal-cipher.c104 u8 *crypt, size_t len) in crypto_cipher_encrypt()
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 in crypto_cipher_encrypt()
103 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
166 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) crypto_cipher_decrypt() argument
[all...]
H A 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);
H A 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()
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
354 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
615 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) crypto_public_key_decrypt_pkcs1() argument
[all...]
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash()
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()
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()
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()
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) aes_gcm_ghash() argument
254 aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *plain, size_t plain_len, const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) aes_gcm_ae() argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) aes_gcm_ad() argument
H A 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, cons argument
[all...]
H A 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,
H A Dcrypto_gnutls.c237 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
240 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); in aes_encrypt()
271 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
274 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); in aes_decrypt()
482 u8 *crypt, size_t len) in crypto_cipher_encrypt()
484 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) != in crypto_cipher_encrypt()
491 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
494 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) != in crypto_cipher_decrypt()
481 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
H A 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()
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()
436 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) crypto_cipher_encrypt() argument
H A Daes.h15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
/third_party/musl/libc-test/src/functionalext/crypt/
H A Dcrypt.c16 #include <crypt.h>
25 char *md5_result = crypt(key, salt); in test_crypt()
30 char *blowfish_result_first = crypt(key, salt); in test_crypt()
31 char *blowfish_result_second = crypt(key, salt); in test_crypt()
35 char *sha256_result = crypt(key, salt); in test_crypt()
41 char *sha512_result = crypt(key, salt); in test_crypt()
48 char *des_result_first = crypt(key, salt); in test_crypt()
49 char *des_result_second = crypt(key, salt); in test_crypt()
/third_party/node/test/parallel/
H A Dtest-crypto-authenticated-stream.js50 const crypt = new Sink();
51 const chunks = crypt.chunks;
52 plain.pipe(c).pipe(crypt);
55 crypt.on('close', common.mustCall(() => {
60 const crypt = new stream.PassThrough();
62 crypt.pipe(d).pipe(plain);
63 for (const chunk of chunks) crypt.write(chunk);
64 crypt.end();
85 const crypt = fs.createWriteStream(filename('b'));
86 plain.pipe(c).pipe(crypt);
[all...]
/third_party/protobuf/js/binary/
H A Dutils_test.js39 goog.require('goog.crypt');
40 goog.require('goog.crypt.base64');
208 expect(result).toEqual(goog.crypt.byteArrayToString(
212 expect(result).toEqual(goog.crypt.byteArrayToString(
216 expect(result).toEqual(goog.crypt.byteArrayToString(
220 expect(result).toEqual(goog.crypt.byteArrayToString(
224 expect(result).toEqual(goog.crypt.byteArrayToString(
228 expect(result).toEqual(goog.crypt.byteArrayToString(
232 expect(result).toEqual(goog.crypt.byteArrayToString(
262 expect(result).toEqual(goog.crypt
[all...]
/third_party/python/Lib/
H A Dcrypt.py1 """Wrapper to the POSIX crypt library call and associated functionality."""
9 raise ImportError("The crypt module is not supported on Windows")
30 legacy 2-character crypt method."""
33 return '<crypt.METHOD_{}>'.format(self.name)
74 def crypt(word, salt=None): function
80 ``salt`` may be one of the ``crypt.METHOD_*`` values, or a string as
81 returned by ``crypt.mksalt()``.
86 return _crypt.crypt(word, salt)
98 result = crypt('', salt)
/third_party/musl/src/crypt/
H A Dcrypt.c2 #include <crypt.h>
4 char *crypt(const char *key, const char *salt) in crypt() function
/third_party/musl/libc-test/src/functional/
H A Dcrypt.c2 #include <crypt.h>
7 #define T(h,s,k) p = crypt(k,s); \
9 if (strcmp(p,h)!=0) t_error("crypt(%s, \"%s\") failed: got \"%s\" want \"%s\"\n", #k, s, p, h);
45 /* incompatible with glibc crypt (sha crypt design bugs) */ in main()
81 /* incompatible with glibc crypt (sha crypt design bugs) */ in main()

Completed in 20 milliseconds

12345