Home
last modified time | relevance | path

Searched refs:salt (Results 1 – 25 of 558) sorted by relevance

12345678910>>...23

/external/boringssl/src/third_party/wycheproof_testvectors/
Dhkdf_sha1_test.txt15 salt = 000102030405060708090a0b0c
26 salt = 606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d…
37 salt =
47 salt =
58 salt =
67 salt =
76 salt =
85 salt =
94 salt =
103 salt =
[all …]
Dhkdf_sha256_test.txt15 salt = 000102030405060708090a0b0c
24 salt =
36 salt = 606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d…
46 salt =
55 salt =
64 salt =
73 salt =
82 salt =
91 salt =
100 salt = 41f0f173d307d40436c25856cf559f96
[all …]
Dhkdf_sha384_test.txt14 salt =
23 salt =
32 salt =
41 salt =
50 salt =
59 salt =
68 salt = 41f0f173d307d40436c25856cf559f96
76 salt = 57a0db708b25a51afc4271803aa35204
84 salt = 0c164c443edcdfaedb1ab150f047951f
92 salt = fea9bfc92b74337e43a201a2dc199e27
[all …]
Dhkdf_sha512_test.txt14 salt =
23 salt =
32 salt =
41 salt =
50 salt =
59 salt =
68 salt = 41f0f173d307d40436c25856cf559f96
76 salt = 57a0db708b25a51afc4271803aa35204
84 salt = 0c164c443edcdfaedb1ab150f047951f
92 salt = fea9bfc92b74337e43a201a2dc199e27
[all …]
/external/cronet/third_party/boringssl/src/third_party/wycheproof_testvectors/
Dhkdf_sha1_test.txt15 salt = 000102030405060708090a0b0c
26 salt = 606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d…
37 salt =
47 salt =
58 salt =
67 salt =
76 salt =
85 salt =
94 salt =
103 salt =
[all …]
Dhkdf_sha256_test.txt15 salt = 000102030405060708090a0b0c
24 salt =
36 salt = 606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d…
46 salt =
55 salt =
64 salt =
73 salt =
82 salt =
91 salt =
100 salt = 41f0f173d307d40436c25856cf559f96
[all …]
Dhkdf_sha512_test.txt14 salt =
23 salt =
32 salt =
41 salt =
50 salt =
59 salt =
68 salt = 41f0f173d307d40436c25856cf559f96
76 salt = 57a0db708b25a51afc4271803aa35204
84 salt = 0c164c443edcdfaedb1ab150f047951f
92 salt = fea9bfc92b74337e43a201a2dc199e27
[all …]
Dhkdf_sha384_test.txt14 salt =
23 salt =
32 salt =
41 salt =
50 salt =
59 salt =
68 salt = 41f0f173d307d40436c25856cf559f96
76 salt = 57a0db708b25a51afc4271803aa35204
84 salt = 0c164c443edcdfaedb1ab150f047951f
92 salt = fea9bfc92b74337e43a201a2dc199e27
[all …]
/external/musl/src/crypt/
Dcrypt_r.c3 char *__crypt_r(const char *key, const char *salt, struct crypt_data *data) in __crypt_r() argument
10 if (salt[0] == '$' && salt[1] && salt[2]) { in __crypt_r()
11 if (salt[1] == '1' && salt[2] == '$') in __crypt_r()
12 return __crypt_md5(key, salt, output); in __crypt_r()
13 if (salt[1] == '2' && salt[3] == '$') in __crypt_r()
14 return __crypt_blowfish(key, salt, output); in __crypt_r()
15 if (salt[1] == '5' && salt[2] == '$') in __crypt_r()
16 return __crypt_sha256(key, salt, output); in __crypt_r()
17 if (salt[1] == '6' && salt[2] == '$') in __crypt_r()
18 return __crypt_sha512(key, salt, output); in __crypt_r()
[all …]
/external/rust/crates/ring/tests/
Dpbkdf2_tests.txt8 S = "salt"
15 S = "salt"
22 S = "salt"
31 # S = "salt"
56 S = "salt"
63 S = "salt"
70 S = "salt"
90 # OpenSSL::PKCS5.pbkdf2_hmac("1byteboundarytest", "salt", 8, 1, digest).unpack("H*")
93 S = "salt"
101 S = "salt"
[all …]
/external/e2fsprogs/misc/
De4crypt.c181 struct salt { struct
182 unsigned char *salt; argument
188 struct salt *salt_list; argument
193 static struct salt *find_by_salt(unsigned char *salt, size_t salt_len) in find_by_salt() argument
196 struct salt *p; in find_by_salt()
200 !memcmp(p->salt, salt, salt_len)) in find_by_salt()
205 static void add_salt(unsigned char *salt, size_t salt_len) in add_salt() argument
207 if (find_by_salt(salt, salt_len)) in add_salt()
211 salt_list = realloc(salt_list, max_salt * sizeof(struct salt)); in add_salt()
217 salt_list[num_salt].salt = salt; in add_salt()
[all …]
/external/f2fs-tools/tools/
Df2fscrypt.c236 struct salt { struct
237 unsigned char *salt; member
243 struct salt *salt_list; argument
248 static struct salt *find_by_salt(unsigned char *salt, size_t salt_len) in find_by_salt() argument
251 struct salt *p; in find_by_salt()
255 !memcmp(p->salt, salt, salt_len)) in find_by_salt()
260 static void add_salt(unsigned char *salt, size_t salt_len) in add_salt() argument
262 if (find_by_salt(salt, salt_len)) in add_salt()
266 salt_list = realloc(salt_list, max_salt * sizeof(struct salt)); in add_salt()
272 salt_list[num_salt].salt = salt; in add_salt()
[all …]
/external/cronet/third_party/boringssl/src/rust/bssl-crypto/src/
Dhkdf.rs34 salt: Option<Vec<u8>>, field
44 pub fn new(salt: Option<&[u8]>, ikm: &[u8]) -> Self { in new()
46 salt: salt.map(Vec::from), in new()
67 let salt = self.salt.as_deref().unwrap_or_default(); in expand() localVariable
85 CSlice::from(salt).as_ptr(), in expand()
86 salt.len(), in expand()
105 salt: Vec<u8>, field
113 let salt = decode_hex_into_vec("000102030405060708090a0b0c"); in hkdf_sha_256_test() localVariable
116 let hk = HkdfSha256::new(Some(salt.as_slice()), ikm.as_slice()); in hkdf_sha_256_test()
130 let salt = decode_hex_into_vec("1d6f3b38a1e607b5e6bcd4af1800a9d3"); in hkdf_sha512_test() localVariable
[all …]
/external/boringssl/src/rust/bssl-crypto/src/
Dhkdf.rs34 salt: Option<Vec<u8>>, field
44 pub fn new(salt: Option<&[u8]>, ikm: &[u8]) -> Self { in new()
46 salt: salt.map(Vec::from), in new()
67 let salt = self.salt.as_deref().unwrap_or_default(); in expand() localVariable
85 CSlice::from(salt).as_ptr(), in expand()
86 salt.len(), in expand()
105 salt: Vec<u8>, field
113 let salt = decode_hex_into_vec("000102030405060708090a0b0c"); in hkdf_sha_256_test() localVariable
116 let hk = HkdfSha256::new(Some(salt.as_slice()), ikm.as_slice()); in hkdf_sha_256_test()
130 let salt = decode_hex_into_vec("1d6f3b38a1e607b5e6bcd4af1800a9d3"); in hkdf_sha512_test() localVariable
[all …]
/external/python/cryptography/tests/hazmat/primitives/
Dtest_scrypt.py58 salt = params["salt"]
62 salt,
76 salt = b"NaCl"
81 salt,
94 salt = 1
98 salt,
112 salt = b"NaCl"
115 salt,
132 salt = b"NaCl"
135 salt,
[all …]
/external/rust/crates/openssl/src/
Dpkcs5.rs32 salt: Option<&[u8]>, in bytes_to_key()
37 let salt_ptr = match salt { in bytes_to_key()
38 Some(salt) => { in bytes_to_key()
39 assert_eq!(salt.len(), ffi::PKCS5_SALT_LEN as usize); in bytes_to_key()
40 salt.as_ptr() in bytes_to_key()
88 salt: &[u8], in pbkdf2_hmac()
95 assert!(salt.len() <= c_int::max_value() as usize); in pbkdf2_hmac()
102 salt.as_ptr(), in pbkdf2_hmac()
103 salt.len() as c_int, in pbkdf2_hmac()
120 salt: &[u8], in scrypt()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/
DPKCS12KeyWithParameters.java14 private final byte[] salt; field in PKCS12KeyWithParameters
24 public PKCS12KeyWithParameters(char[] password, byte[] salt, int iterationCount) in PKCS12KeyWithParameters() argument
28 this.salt = Arrays.clone(salt); in PKCS12KeyWithParameters()
42 …hParameters(char[] password, boolean useWrongZeroLengthConversion, byte[] salt, int iterationCount) in PKCS12KeyWithParameters() argument
46 this.salt = Arrays.clone(salt); in PKCS12KeyWithParameters()
57 return salt; in getSalt()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/
DPKCS12KeyWithParameters.java16 private final byte[] salt; field in PKCS12KeyWithParameters
26 public PKCS12KeyWithParameters(char[] password, byte[] salt, int iterationCount) in PKCS12KeyWithParameters() argument
30 this.salt = Arrays.clone(salt); in PKCS12KeyWithParameters()
44 …hParameters(char[] password, boolean useWrongZeroLengthConversion, byte[] salt, int iterationCount) in PKCS12KeyWithParameters() argument
48 this.salt = Arrays.clone(salt); in PKCS12KeyWithParameters()
59 return salt; in getSalt()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/
DPKCS12KeyWithParameters.java16 private final byte[] salt; field in PKCS12KeyWithParameters
26 public PKCS12KeyWithParameters(char[] password, byte[] salt, int iterationCount) in PKCS12KeyWithParameters() argument
30 this.salt = Arrays.clone(salt); in PKCS12KeyWithParameters()
44 …hParameters(char[] password, boolean useWrongZeroLengthConversion, byte[] salt, int iterationCount) in PKCS12KeyWithParameters() argument
48 this.salt = Arrays.clone(salt); in PKCS12KeyWithParameters()
59 return salt; in getSalt()
/external/rust/beto-rust/nearby/crypto/crypto_provider/src/
Dhkdf.rs18 fn new(salt: Option<&[u8]>, ikm: &[u8]) -> Self; in new()
83 salt: &'a [u8], field
91 let salt = hex!("000102030405060708090a0b0c"); in basic_test_hkdf() localVariable
94 let hk = C::HkdfSha256::new(Some(&salt[..]), &ikm); in basic_test_hkdf()
117 salt: &hex!("000102030405060708090a0b0c"), in test_rfc5869_sha256()
134 salt: &hex!(" in test_rfc5869_sha256()
160 salt: &hex!(""), in test_rfc5869_sha256()
169 for Test { ikm, salt, info, okm } in tests.iter() { in test_rfc5869_sha256()
170 let salt = if salt.is_empty() { in test_rfc5869_sha256() localVariable
173 Some(&salt[..]) in test_rfc5869_sha256()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DPBEParameter.java18 ASN1OctetString salt; field in PBEParameter
21 byte[] salt, in PBEParameter() argument
24 if (salt.length != 8) in PBEParameter()
28 this.salt = new DEROctetString(salt); in PBEParameter()
35 salt = (ASN1OctetString)seq.getObjectAt(0); in PBEParameter()
61 return salt.getOctets(); in getSalt()
68 v.add(salt); in toASN1Primitive()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java148 byte[] salt = new byte[KEY_SALT_SIZE]; in StoreEntry()
150 random.nextBytes(salt); in StoreEntry()
158 dOut.writeInt(salt.length); in StoreEntry()
159 dOut.write(salt); in StoreEntry()
162 … cipher = makePBECipher(KEY_CIPHER, Cipher.ENCRYPT_MODE, password, salt, iterationCount); in StoreEntry()
234 byte[] salt = new byte[dIn.readInt()]; in getObject()
236 dIn.readFully(salt); in getObject()
240 …ipher cipher = makePBECipher(KEY_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCount); in getObject()
253 salt = new byte[dIn.readInt()]; in getObject()
255 dIn.readFully(salt); in getObject()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java152 byte[] salt = new byte[KEY_SALT_SIZE]; in StoreEntry()
154 random.nextBytes(salt); in StoreEntry()
162 dOut.writeInt(salt.length); in StoreEntry()
163 dOut.write(salt); in StoreEntry()
166 … cipher = makePBECipher(KEY_CIPHER, Cipher.ENCRYPT_MODE, password, salt, iterationCount); in StoreEntry()
238 byte[] salt = new byte[dIn.readInt()]; in getObject()
240 dIn.readFully(salt); in getObject()
244 …ipher cipher = makePBECipher(KEY_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCount); in getObject()
257 salt = new byte[dIn.readInt()]; in getObject()
259 dIn.readFully(salt); in getObject()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java152 byte[] salt = new byte[KEY_SALT_SIZE]; in StoreEntry()
154 random.nextBytes(salt); in StoreEntry()
162 dOut.writeInt(salt.length); in StoreEntry()
163 dOut.write(salt); in StoreEntry()
166 … cipher = makePBECipher(KEY_CIPHER, Cipher.ENCRYPT_MODE, password, salt, iterationCount); in StoreEntry()
238 byte[] salt = new byte[dIn.readInt()]; in getObject()
240 dIn.readFully(salt); in getObject()
244 …ipher cipher = makePBECipher(KEY_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCount); in getObject()
257 salt = new byte[dIn.readInt()]; in getObject()
259 dIn.readFully(salt); in getObject()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/
DPBEParameter.java22 ASN1OctetString salt; field in PBEParameter
25 byte[] salt, in PBEParameter() argument
28 if (salt.length != 8) in PBEParameter()
32 this.salt = new DEROctetString(salt); in PBEParameter()
39 salt = (ASN1OctetString)seq.getObjectAt(0); in PBEParameter()
65 return salt.getOctets(); in getSalt()
72 v.add(salt); in toASN1Primitive()

12345678910>>...23