Home | History | Annotate | Download | only in apps

Lines Matching defs:bn

174 #include <openssl/bn.h>
321 BIGNUM *bn = NULL;
346 ret = BN_hex2bn(&bn, psk_key);
350 if (bn)
351 BN_free(bn);
354 if (BN_num_bytes(bn) > (int)max_psk_len)
357 max_psk_len, BN_num_bytes(bn));
358 BN_free(bn);
362 ret = BN_bn2bin(bn, psk);
363 BN_free(bn);
2938 BIGNUM *bn = NULL;
2941 if (!rsa_tmp && ((bn = BN_new()) == NULL))
2943 if (!rsa_tmp && bn)
2950 if(!BN_set_word(bn, RSA_F4) || ((rsa_tmp = RSA_new()) == NULL) ||
2951 !RSA_generate_key_ex(rsa_tmp, keylength, bn, NULL))
2961 BN_free(bn);