Home
last modified time | relevance | path

Searched refs:saltbuf (Results 1 – 5 of 5) sorted by relevance

/external/f2fs-tools/tools/
Df2fscrypt.c458 unsigned char saltbuf[F2FS_MAX_SALT_SIZE + F2FS_MAX_PASSPHRASE_SIZE] = {0}; in pbkdf2_sha512() local
477 memcpy(saltbuf, salt->salt, salt->salt_len); in pbkdf2_sha512()
478 memcpy(&saltbuf[F2FS_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512()
484 f2fs_sha512(saltbuf, actual_saltbuf_len, tempbuf); in pbkdf2_sha512()
756 struct salt saltbuf; in do_set_policy() local
776 saltbuf.key_desc, F2FS_KEY_DESCRIPTOR_SIZE)) { in do_set_policy()
784 strcpy(saltbuf.key_ref_str, argv[optind]); in do_set_policy()
785 set_policy(&saltbuf, pad, argc, argv, optind+1); in do_set_policy()
/external/e2fsprogs/misc/
De4crypt.c413 unsigned char saltbuf[EXT4_MAX_SALT_SIZE + EXT4_MAX_PASSPHRASE_SIZE] = {0}; in pbkdf2_sha512() local
432 memcpy(saltbuf, salt->salt, salt->salt_len); in pbkdf2_sha512()
433 memcpy(&saltbuf[EXT4_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512()
439 ext2fs_sha512(saltbuf, actual_saltbuf_len, tempbuf); in pbkdf2_sha512()
711 struct salt saltbuf; in do_set_policy() local
731 saltbuf.key_desc, EXT4_KEY_DESCRIPTOR_SIZE)) { in do_set_policy()
739 strcpy(saltbuf.key_ref_str, argv[optind]); in do_set_policy()
740 set_policy(&saltbuf, pad, argc, argv, optind+1); in do_set_policy()
/external/ppp/pppd/
Dsrp-entry.c106 char saltbuf[MAXB64SALTLEN]; in main() local
187 t_tob64(saltbuf, (char *)pwval.pebuf.salt.data, in main()
Deap.c550 tpw.pebuf.salt.len = t_fromb64((char *)tpw.saltbuf,
552 tpw.pebuf.salt.data = tpw.saltbuf;
/external/wpa_supplicant_8/src/radius/
Dradius.c1063 u8 hash[MD5_MAC_LEN], saltbuf[2], *pos; in encrypt_ms_key() local
1067 WPA_PUT_BE16(saltbuf, salt); in encrypt_ms_key()
1088 addr[2] = saltbuf; in encrypt_ms_key()
1089 _len[2] = sizeof(saltbuf); in encrypt_ms_key()