/third_party/python/Lib/test/ |
D | test_crypt.py | 6 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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_internal-cipher.c | 104 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 …]
|
D | des-internal.c | 435 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 …]
|
D | des_i.h | 18 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);
|
D | crypto_libtomcrypt.c | 100 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 …]
|
D | aes-gcm.c | 230 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()
|
D | aes_wrap.h | 56 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,
|
D | crypto_nettle.c | 261 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()
|
D | crypto_gnutls.c | 237 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() argument 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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_internal-cipher.c | 104 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 …]
|
D | des-internal.c | 435 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 …]
|
D | des_i.h | 18 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);
|
D | crypto_libtomcrypt.c | 100 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 …]
|
D | aes-gcm.c | 230 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()
|
D | aes_wrap.h | 56 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,
|
D | crypto_nettle.c | 261 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()
|
D | crypto_gnutls.c | 237 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() argument 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()
|
D | aes.h | 15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_ssl.data | 863 Record crypt, AES-128-CBC, 1.2, SHA-384 867 Record crypt, AES-128-CBC, 1.2, SHA-384, CID 4+4 871 Record crypt, AES-128-CBC, 1.2, SHA-384, CID 4+0 875 Record crypt, AES-128-CBC, 1.2, SHA-384, EtM 879 Record crypt, AES-128-CBC, 1.2, SHA-384, EtM, CID 4+4 883 Record crypt, AES-128-CBC, 1.2, SHA-384, EtM, CID 4+0 887 Record crypt, AES-128-CBC, 1.2, SHA-256 891 Record crypt, AES-128-CBC, 1.2, SHA-256, CID 4+4 895 Record crypt, AES-128-CBC, 1.2, SHA-256, CID 4+0 899 Record crypt, AES-128-CBC, 1.2, SHA-256, EtM [all …]
|
D | test_suite_cipher.aes.data | 1833 AES-128-ECB crypt Encrypt NIST KAT #1 1837 AES-128-ECB crypt Encrypt NIST KAT #2 1841 AES-128-ECB crypt Encrypt NIST KAT #3 1845 AES-128-ECB crypt Decrypt NIST KAT #1 1849 AES-128-ECB crypt Decrypt NIST KAT #2 1853 AES-128-ECB crypt Decrypt NIST KAT #3 1857 AES-192-ECB crypt Encrypt NIST KAT #1 1861 AES-192-ECB crypt Encrypt NIST KAT #2 1865 AES-192-ECB crypt Encrypt NIST KAT #3 1869 AES-192-ECB crypt Encrypt NIST KAT #4 [all …]
|
/third_party/python/Doc/library/ |
D | crypt.rst | 1 :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 …]
|
/third_party/node/test/parallel/ |
D | test-crypto-authenticated-stream.js | 50 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/musl/libc-test/src/functionalext/crypt/ |
D | crypt.c | 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/protobuf/js/binary/ |
D | utils_test.js | 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.byteArrayToString( 266 expect(result).toEqual(goog.crypt.byteArrayToString( 271 expect(result).toEqual(goog.crypt.byteArrayToString( [all …]
|
/third_party/python/Lib/ |
D | crypt.py | 70 def crypt(word, salt=None): function 82 return _crypt.crypt(word, salt) 94 result = crypt('', salt)
|