Home | History | Annotate | Download | only in racoon

Lines Matching refs:binbuf

262 	char *binbuf;
282 binbuf = ret->v;
284 BN_bn2bin(bn, (unsigned char *) binbuf);
2667 binbuf_pubkey2rsa(vchar_t *binbuf)
2672 if (binbuf->v[0] > binbuf->l - 1) {
2677 exp = BN_bin2bn((unsigned char *) (binbuf->v + 1), binbuf->v[0], NULL);
2678 mod = BN_bin2bn((unsigned char *) (binbuf->v + binbuf->v[0] + 1),
2679 binbuf->l - binbuf->v[0] - 1, NULL);
2706 vchar_t *binbuf;
2713 binbuf = base64_decode(in + 2, strlen(in + 2));
2714 if (!binbuf) {
2719 if (binbuf->v[0] > binbuf->l - 1) {
2724 rsa_pub = binbuf_pubkey2rsa(binbuf);
2727 if (binbuf)
2728 vfree(binbuf);
2737 vchar_t *binbuf;
2739 binbuf = vmalloc(BN_num_bytes(in));
2740 binbuf) {
2745 BN_bn2bin(in, (unsigned char *) binbuf->v);
2747 rsa_pub = binbuf_pubkey2rsa(binbuf);
2750 if (binbuf)
2751 vfree(binbuf);