Home
last modified time | relevance | path

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

/third_party/f2fs-tools/tools/
Df2fscrypt.c459 unsigned char saltbuf[F2FS_MAX_SALT_SIZE + F2FS_MAX_PASSPHRASE_SIZE] = {0}; in pbkdf2_sha512() local
478 memcpy(saltbuf, salt->salt, salt->salt_len); in pbkdf2_sha512()
479 memcpy(&saltbuf[F2FS_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512()
485 f2fs_sha512(saltbuf, actual_saltbuf_len, tempbuf); in pbkdf2_sha512()
757 struct salt saltbuf; in do_set_policy() local
777 saltbuf.key_desc, F2FS_KEY_DESCRIPTOR_SIZE)) { in do_set_policy()
785 strcpy(saltbuf.key_ref_str, argv[optind]); in do_set_policy()
786 set_policy(&saltbuf, pad, argc, argv, optind+1); in do_set_policy()
/third_party/e2fsprogs/misc/
De4crypt.c414 unsigned char saltbuf[EXT4_MAX_SALT_SIZE + EXT4_MAX_PASSPHRASE_SIZE] = {0}; in pbkdf2_sha512() local
433 memcpy(saltbuf, salt->salt, salt->salt_len); in pbkdf2_sha512()
434 memcpy(&saltbuf[EXT4_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512()
440 ext2fs_sha512(saltbuf, actual_saltbuf_len, tempbuf); in pbkdf2_sha512()
732 struct salt saltbuf; in do_set_policy() local
752 saltbuf.key_desc, EXT4_KEY_DESCRIPTOR_SIZE)) { in do_set_policy()
760 strcpy(saltbuf.key_ref_str, argv[optind]); in do_set_policy()
761 set_policy(&saltbuf, pad, argc, argv, optind+1); in do_set_policy()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/
Dradius.c1065 u8 hash[MD5_MAC_LEN], saltbuf[2], *pos; in encrypt_ms_key() local
1069 WPA_PUT_BE16(saltbuf, salt); in encrypt_ms_key()
1090 addr[2] = saltbuf; in encrypt_ms_key()
1091 _len[2] = sizeof(saltbuf); in encrypt_ms_key()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/
Dradius.c1065 u8 hash[MD5_MAC_LEN], saltbuf[2], *pos; in encrypt_ms_key() local
1069 WPA_PUT_BE16(saltbuf, salt); in encrypt_ms_key()
1090 addr[2] = saltbuf; in encrypt_ms_key()
1091 _len[2] = sizeof(saltbuf); in encrypt_ms_key()
/third_party/lwip/src/netif/ppp/
Deap.c549 tpw.pebuf.salt.len = t_fromb64((char *)tpw.saltbuf, in eap_figure_next_state()
551 tpw.pebuf.salt.data = tpw.saltbuf; in eap_figure_next_state()