/external/openssl/crypto/pkcs12/ |
p12_crpt.c | 73 int saltlen, iter, ret; local 94 saltlen = pbe->salt->length; 95 if (!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_KEY_ID, 101 if (!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_IV_ID,
|
p12_mutl.c | 73 int saltlen, iter; local 83 saltlen = p12->mac->salt->length; 94 if(!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_MAC_ID, iter, 129 unsigned char *salt, int saltlen, int iter, const EVP_MD *md_type) 135 if (PKCS12_setup_mac (p12, iter, salt, saltlen, md_type) == 152 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen, 166 if (!saltlen) saltlen = PKCS12_SALT_LEN; 167 p12->mac->salt->length = saltlen; 168 if (!(p12->mac->salt->data = OPENSSL_malloc (saltlen))) { [all...] |
/external/openssl/crypto/evp/ |
p5_crpt.c | 81 int saltlen, iter; local 102 saltlen = pbe->salt->length; 110 EVP_DigestUpdate(&ctx, salt, saltlen);
|
p5_crpt2.c | 80 const unsigned char *salt, int saltlen, int iter, 114 HMAC_Update(&hctx, salt, saltlen); 134 h__dump (salt, saltlen); 143 const unsigned char *salt, int saltlen, int iter, 146 return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, EVP_sha1(), 173 int saltlen, iter, plen; local 276 saltlen = kdf->salt->value.octet_string->length; 278 if(!PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, prfmd,
|
/external/dropbear/libtomcrypt/testprof/ |
pkcs_1_test.c | 9 unsigned long x, y, l1, l2, l3, i1, i2, lparamlen, saltlen, modlen; local 33 /* pick a random saltlen 0..16 */ 34 saltlen = abs(rand()) % 17; 63 DO(pkcs_1_pss_encode(buf[0], l3, saltlen, &yarrow_prng, prng_idx, hash_idx, modlen, buf[1], &l1)); 64 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res1)); 67 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res2)); 71 pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res3); 73 fprintf(stderr, "PSS failed: %d, %d, %d, %lu, %lu\n", res1, res2, res3, l3, saltlen);
|
/external/openssl/crypto/rsa/ |
rsa_pmeth.c | 83 int saltlen; member in struct:__anon9046 100 rctx->saltlen = -2; 190 rctx->md, rctx->saltlen)) 293 rctx->tbuf, rctx->saltlen); 414 rctx->saltlen = p1; 493 int saltlen; local 494 saltlen = atoi(value); 495 return EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, saltlen);
|
/external/grub/stage2/ |
md5.c | 212 int saltlen; local 224 saltlen = strstr (salt, "$") - salt; 230 saltlen = end - salt; 232 saltlen = 8; 234 salt[saltlen] = '$'; 239 md5_update (salt, saltlen); 247 md5_update (crypted, 3 + saltlen); /* include the $1$ header */ 268 md5_update (salt, saltlen); 280 p = salt + saltlen + 1;
|
/external/openssl/crypto/pem/ |
pvkfmt.c | 708 const unsigned char *salt, unsigned int saltlen, 714 EVP_DigestUpdate(&mctx, salt, saltlen); 723 unsigned int saltlen, unsigned int keylen, 730 if (saltlen) 751 if (!derive_pvk_key(keybuf, p, saltlen, 754 p += saltlen; 791 if (enctmp && saltlen) 803 unsigned int saltlen, keylen; local 811 if (!do_PVK_header(&p, 24, 0, &saltlen, &keylen)) 813 buflen = (int) keylen + saltlen; [all...] |