Home
last modified time | relevance | path

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

123456

/freebsd/contrib/file/magic/Magdir/
H A Dgringotts10 >3 string 1 v.1, MCRYPT S2K, SERPENT crypt, SHA-256 hash, ZLib lvl.9
13 >>8 byte&0x70 0x00 RIJNDAEL-128 crypt,
14 >>8 byte&0x70 0x10 SERPENT crypt,
15 >>8 byte&0x70 0x20 TWOFISH crypt,
16 >>8 byte&0x70 0x30 CAST-256 crypt,
17 >>8 byte&0x70 0x40 SAFER+ crypt,
18 >>8 byte&0x70 0x50 LOKI97 crypt,
19 >>8 byte&0x70 0x60 3DES crypt,
20 >>8 byte&0x70 0x70 RIJNDAEL-256 crypt,
31 >>8 byte&0x70 0x00 RIJNDAEL-128 crypt,
[all …]
/freebsd/lib/libcrypt/
H A DMakefile8 LIB= crypt
10 SRCS= crypt.c misc.c \
11 crypt-md5.c \
12 crypt-nthash.c \
13 crypt-sha256.c \
14 crypt-sha512.c
15 MAN= crypt.3
16 MLINKS= crypt.3 crypt_get_format.3 crypt.3 crypt_r.3 \
17 crypt.3 crypt_set_format.3
24 SRCS+= crypt-des.c crypt-blowfish.c blowfish.c
/freebsd/contrib/wpa/src/crypto/
H A 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 …]
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, const struct des3_key_s *key, u8 *plain) in des3_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() 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 …]
H A 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()
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_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()
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);
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() 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()
H A 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()
/freebsd/usr.sbin/keyserv/
H A DMakefile3 SRCS= keyserv.c setkey.c crypt_svc.c crypt_server.c crypt.h
13 CLEANFILES= crypt_svc.c crypt.h
17 crypt_svc.c: ${RPCDIR}/crypt.x
18 ${RPCGEN} -m -o ${.TARGET} ${RPCDIR}/crypt.x
20 crypt.h: ${RPCDIR}/crypt.x
21 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/crypt.x
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_encrypted_props.ksh50 destroy_dataset $TESTPOOL/crypt "-r"
63 typeset esnap=$TESTPOOL/crypt@snap1
64 typeset esnap2=$TESTPOOL/crypt@snap2
72 -o keylocation=file://$keyfile $TESTPOOL/crypt
73 log_must zfs create $TESTPOOL/crypt/ds1
75 $TESTPOOL/crypt/ds2
78 log_must cp /$TESTPOOL/ds/$TESTFILE0 /$TESTPOOL/crypt/$TESTFILE0
181 ds=$TESTPOOL/crypt/recv
195 ds=$TESTPOOL/crypt/recv
209 ds=$TESTPOOL/crypt/recv
/freebsd/lib/libc/rpc/
H A DMakefile.inc25 SRCS+= crypt_clnt.c crypt_xdr.c crypt.h
32 CLEANFILES+= crypt_clnt.c crypt_xdr.c crypt.h
37 crypt_clnt.c: ${RPCDIR}/crypt.x crypt.h
38 ${RPCGEN} -l -o ${.TARGET} ${RPCDIR}/crypt.x
40 crypt_xdr.c: ${RPCDIR}/crypt.x crypt.h
41 ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/crypt.x
43 crypt.h: ${RPCDIR}/crypt.x
44 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/crypt.x
/freebsd/usr.bin/enigma/
H A DMakefile3 LINKS= ${BINDIR}/enigma ${BINDIR}/crypt
4 MLINKS= enigma.1 crypt.1
6 LIBADD= crypt
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c229 zio_crypt_key_init(uint64_t crypt, zio_crypt_key_t *key) in zio_crypt_key_init() argument
237 ASSERT3U(crypt, <, ZIO_CRYPT_FUNCTIONS); in zio_crypt_key_init()
239 ci = &zio_crypt_table[crypt]; in zio_crypt_key_init()
244 keydata_len = zio_crypt_table[crypt].ci_keylen; in zio_crypt_key_init()
279 ci = &zio_crypt_table[crypt]; in zio_crypt_key_init()
289 key->zk_crypt = crypt; in zio_crypt_key_init()
398 uint64_t crypt, crypto_key_t *key, uint8_t *ivbuf, uint_t datalen, in zio_do_crypt_uio_opencrypto() argument
401 const zio_crypt_info_t *ci = &zio_crypt_table[crypt]; in zio_do_crypt_uio_opencrypto()
434 uint64_t crypt = key->zk_crypt; in zio_crypt_key_wrap() local
437 ASSERT3U(crypt, <, ZIO_CRYPT_FUNCTIONS); in zio_crypt_key_wrap()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dxcrypt.c59 # define crypt DES_crypt macro
113 crypted = crypt(password, salt); in xcrypt()
117 crypted = crypt(password, salt); in xcrypt()
/freebsd/contrib/libpcap/rpcapd/
H A DCMakeLists.txt3 check_function_exists(crypt HAVE_CRYPT_IN_SYSTEM_LIBRARIES)
7 check_library_exists(crypt crypt "" HAVE_CRYPT_IN_LIBCRYPT)
9 set(RPCAPD_LINK_LIBRARIES ${RPCAPD_LINK_LIBRARIES} crypt)
12 message(WARNING "crypt() not found. Won't be able to build rpcapd.")
18 # On UN*X, we need pthreads and crypt().
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_crypt.c139 uint64_t crypt = ZIO_CRYPT_INHERIT; in dsl_crypto_params_create_nvlist() local
154 zfs_prop_to_name(ZFS_PROP_ENCRYPTION), &crypt); in dsl_crypto_params_create_nvlist()
164 dcp->cp_crypt = crypt; in dsl_crypto_params_create_nvlist()
185 dcp->cp_crypt = crypt; in dsl_crypto_params_create_nvlist()
562 uint64_t crypt = 0, guid = 0, version = 0; in dsl_crypto_key_open() local
574 &crypt); in dsl_crypto_key_open()
579 if (crypt >= ZIO_CRYPT_FUNCTIONS) { in dsl_crypto_key_open()
615 ret = zio_crypt_key_unwrap(&wkey->wk_key, crypt, version, guid, in dsl_crypto_key_open()
1192 dsl_dir_get_crypt(dsl_dir_t *dd, uint64_t *crypt) in dsl_dir_get_crypt() argument
1195 *crypt = ZIO_CRYPT_OFF; in dsl_dir_get_crypt()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c223 zio_crypt_key_init(uint64_t crypt, zio_crypt_key_t *key) in zio_crypt_key_init() argument
230 ASSERT3U(crypt, <, ZIO_CRYPT_FUNCTIONS); in zio_crypt_key_init()
244 keydata_len = zio_crypt_table[crypt].ci_keylen; in zio_crypt_key_init()
288 mech.cm_type = crypto_mech2id(zio_crypt_table[crypt].ci_mechname); in zio_crypt_key_init()
300 key->zk_crypt = crypt; in zio_crypt_key_init()
392 zio_do_crypt_uio(boolean_t encrypt, uint64_t crypt, crypto_key_t *key, in zio_do_crypt_uio() argument
404 ASSERT3U(crypt, <, ZIO_CRYPT_FUNCTIONS); in zio_do_crypt_uio()
407 crypt_info = zio_crypt_table[crypt]; in zio_do_crypt_uio()
495 uint64_t crypt = key->zk_crypt; in zio_crypt_key_wrap() local
498 ASSERT3U(crypt, <, ZIO_CRYPT_FUNCTIONS); in zio_crypt_key_wrap()
[all …]
/freebsd/tools/build/
H A Ddepend-cleanup.sh230 clean_dep lib/libcrypt crypt-md5 c
231 clean_dep lib/libcrypt crypt-nthash c
232 clean_dep lib/libcrypt crypt-sha256 c
233 clean_dep lib/libcrypt crypt-sha512 c
/freebsd/lib/libcrypt/tests/
H A Dcrypt_tests.c22 pw = crypt(LEET, want); in ATF_TC_BODY()
38 pw = crypt(LEET, want); in ATF_TC_BODY()
/freebsd/usr.sbin/pw/tests/
H A DMakefile5 PROGS+= crypt
6 LIBADD+= crypt
/freebsd/libexec/nuageinit/tests/
H A DMakefile6 PROGS= crypt
7 LIBADD= crypt

123456