Home
last modified time | relevance | path

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

1234

/external/python/cpython3/Lib/test/
Dtest_crypt.py4 crypt = support.import_module('crypt') variable
9 c = crypt.crypt('mypassword', 'ab')
14 self.assertEqual(len(crypt._saltchars), 64)
15 for method in crypt.methods:
16 salt = crypt.mksalt(method)
21 for method in crypt.methods:
22 pw = crypt.crypt('assword', method)
24 pw = crypt.crypt('assword', crypt.mksalt(method))
29 self.assertTrue(len(crypt.methods) >= 1)
30 self.assertEqual(crypt.METHOD_CRYPT, crypt.methods[-1])
/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()
352 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
357 if (plain != crypt) in crypto_cipher_encrypt()
358 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
360 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
365 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); in crypto_cipher_encrypt()
375 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
[all …]
Dcrypto_gnutls.c111 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
114 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); in aes_encrypt()
142 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
145 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); in aes_decrypt()
278 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
280 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) != in crypto_cipher_encrypt()
287 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
290 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) != in crypto_cipher_decrypt()
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,
Daes.h15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
Dcrypto.h128 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
151 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
253 const u8 *plain, u8 *crypt, size_t len);
268 const u8 *crypt, u8 *plain, size_t len);
417 struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
Daes-ccm.c150 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
168 aes_ccm_encr(aes, L, plain, plain_len, crypt, a); in aes_ccm_ae()
179 size_t M, const u8 *crypt, size_t crypt_len, in aes_ccm_ad() argument
199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); in aes_ccm_ad()
Dcrypto_internal-rsa.c112 const u8 *crypt, size_t crypt_len, in crypto_public_key_decrypt_pkcs1() argument
116 crypt, crypt_len, plain, plain_len); in crypto_public_key_decrypt_pkcs1()
Dcrypto_linux.c500 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
504 return linux_af_alg_skcipher_oper(skcipher, 1, plain, crypt); in aes_encrypt()
520 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
524 return linux_af_alg_skcipher_oper(skcipher, 0, crypt, plain); in aes_decrypt()
976 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
978 return crypto_cipher_oper(ctx, ALG_OP_ENCRYPT, plain, crypt, len); in crypto_cipher_encrypt()
982 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
985 return crypto_cipher_oper(ctx, ALG_OP_DECRYPT, crypt, plain, len); 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
38 The :mod:`crypt` module defines the list of hashing methods (not all methods
70 ``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/syslinux/gpxe/src/net/80211/
Dsec80211.c99 enum net80211_crypto_alg crypt, in sec80211_install() argument
109 if ( crypt == NET80211_CRYPT_NONE ) { in sec80211_install()
116 if ( tbl_crypto->algorithm == crypt ) { in sec80211_install()
132 DBG ( "802.11-Sec no support for cryptosystem %d\n", crypt ); in sec80211_install()
133 return -( ENOTSUP | EUNIQ_10 | ( crypt << 8 ) ); in sec80211_install()
139 "length %d\n", crypt, crypto, len ); in sec80211_install()
327 enum net80211_crypto_alg *crypt ) in sec80211_detect_ie() argument
368 *crypt = cr; in sec80211_detect_ie()
393 enum net80211_crypto_alg *crypt ) in _sec80211_detect() argument
401 *crypt = NET80211_CRYPT_UNKNOWN; in _sec80211_detect()
[all …]
/external/syslinux/gpxe/src/include/gpxe/
Dsec80211.h43 enum net80211_crypto_alg *crypt )
61 enum net80211_crypto_alg *crypt ) { in sec80211_detect() argument
63 return _sec80211_detect ( iob, secprot, crypt ); in sec80211_detect()
69 enum net80211_crypto_alg *crypt );
74 enum net80211_crypto_alg crypt,
77 u32 sec80211_rsn_get_crypto_desc ( enum net80211_crypto_alg crypt, int rsnie );
/external/dhcpcd-6.8.2/test/
DMakefile6 SRCS+= test_hmac_md5.c ../crypt/hmac_md5.c
12 CPPFLAGS+= -I../crypt
15 T_MD5_SRC= ${MD5_SRC:crypt/%=../crypt/%}
/external/python/cpython2/Lib/test/
Dtest_crypt.py4 crypt = test_support.import_module('crypt') variable
9 c = crypt.crypt('mypassword', 'ab')
/external/dhcpcd-6.8.2/
DAndroid.mk39 crypt/md5.c \
40 crypt/hmac_md5.c \
59 LOCAL_SRC_FILES += crypt/sha256.c
60 LOCAL_C_INCLUDES += $(LOCAL_PATH)/crypt
DMakefile21 CPPFLAGS+= -I./crypt
22 CRYPT_SRCS= crypt/hmac_md5.c ${MD5_SRC} ${SHA256_SRC}
199 ${INSTALL} -d /tmp/${DISTPREFIX}/crypt; \
200 cp ${CRYPT_SRCS} /tmp/${DISTPREFIX}/crypt; \
204 sort -u) /tmp/${DISTPREFIX}/crypt; \
/external/python/cpython3/Lib/
Dcrypt.py35 def crypt(word, salt=None): function
47 return _crypt.crypt(word, salt)
58 _result = crypt('', _method)
/external/python/cpython2/Modules/
Dcryptmodule.c19 extern char * crypt(const char *, const char *); in crypt_crypt()
27 return Py_BuildValue("s", crypt(word, salt)); in crypt_crypt()
/external/protobuf/js/
Dproto3_test.js43 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES);
54 arr = goog.crypt.base64.decodeStringToUint8Array(arr);
249 msg.setOneofBytes(goog.crypt.base64.encodeString('\u00FF\u00FF'));
254 goog.crypt.base64.encodeString('\u00FF\u00FF'));
275 msg.setOptionalBytes(goog.crypt.base64.encodeString('\u00FF\u00FF'));
/external/wpa_supplicant_8/src/drivers/
Ddriver_hostap.c416 os_strlcpy((char *) param->u.crypt.alg, "NONE", in wpa_driver_hostap_set_key()
420 os_strlcpy((char *) param->u.crypt.alg, "WEP", in wpa_driver_hostap_set_key()
424 os_strlcpy((char *) param->u.crypt.alg, "TKIP", in wpa_driver_hostap_set_key()
428 os_strlcpy((char *) param->u.crypt.alg, "CCMP", in wpa_driver_hostap_set_key()
435 param->u.crypt.flags = set_tx ? HOSTAP_CRYPT_FLAG_SET_TX_KEY : 0; in wpa_driver_hostap_set_key()
436 param->u.crypt.idx = key_idx; in wpa_driver_hostap_set_key()
437 param->u.crypt.key_len = key_len; in wpa_driver_hostap_set_key()
470 param->u.crypt.idx = idx; in hostap_get_seqnum()
476 os_memcpy(seq, param->u.crypt.seq, 8); in hostap_get_seqnum()

1234