91 #ifndef OPENSSL_NO_HMAC
108 #ifndef OPENSSL_NO_HMAC
129 int main(
int argc,
char **argv)
131 int i, nid_md, nid_cipher;
135 for (i = 0; i <
sizeof(builtin_pbe)/
sizeof(
EVP_PBE_CTL); i++)
137 tpbe = builtin_pbe + i;
138 fprintf(stderr,
"%d %d %s ", tpbe->pbe_type, tpbe->pbe_nid,
141 &nid_cipher ,&nid_md,0))
142 fprintf(stderr,
"Found %s %s\n",
146 fprintf(stderr,
"Find ERROR!!\n");
160 int cipher_nid, md_nid;
164 &cipher_nid, &md_nid, &keygen))
168 if (!pbe_obj)
BUF_strlcpy (obj_tmp,
"NULL",
sizeof obj_tmp);
176 else if (passlen == -1)
177 passlen = strlen(pass);
179 if (cipher_nid == -1)
203 if (!keygen(ctx, pass, passlen, param, cipher, md, en_de))
215 int ret = pbe1->pbe_type - pbe2->pbe_type;
219 return pbe1->pbe_nid - pbe2->pbe_nid;
226 int ret = (*a)->pbe_type - (*b)->pbe_type;
230 return (*a)->pbe_nid - (*b)->pbe_nid;
246 pbe_tmp->pbe_type = pbe_type;
247 pbe_tmp->pbe_nid = pbe_nid;
248 pbe_tmp->cipher_nid = cipher_nid;
249 pbe_tmp->md_nid = md_nid;
250 pbe_tmp->keygen = keygen;
260 int cipher_nid, md_nid;
271 cipher_nid, md_nid, keygen);
282 pbelu.pbe_type =
type;
283 pbelu.pbe_nid = pbe_nid;
293 pbetmp = OBJ_bsearch_pbe2(&pbelu, builtin_pbe,
299 *pcnid = pbetmp->cipher_nid;
301 *pmnid = pbetmp->md_nid;
303 *pkeygen = pbetmp->keygen;