Lines Matching full:binbuf
244 char *binbuf;
264 binbuf = ret->v;
266 BN_bn2bin(bn, (unsigned char *) binbuf);
2720 binbuf_pubkey2rsa(vchar_t *binbuf)
2725 if (binbuf->v[0] > binbuf->l - 1) {
2730 exp = BN_bin2bn((unsigned char *) (binbuf->v + 1), binbuf->v[0], NULL);
2731 mod = BN_bin2bn((unsigned char *) (binbuf->v + binbuf->v[0] + 1),
2732 binbuf->l - binbuf->v[0] - 1, NULL);
2759 vchar_t *binbuf;
2766 binbuf = base64_decode(in + 2, strlen(in + 2));
2767 if (!binbuf) {
2772 if (binbuf->v[0] > binbuf->l - 1) {
2777 rsa_pub = binbuf_pubkey2rsa(binbuf);
2780 if (binbuf)
2781 vfree(binbuf);
2790 vchar_t *binbuf;
2792 binbuf = vmalloc(BN_num_bytes(in));
2793 if (!binbuf) {
2798 BN_bn2bin(in, (unsigned char *) binbuf->v);
2800 rsa_pub = binbuf_pubkey2rsa(binbuf);
2803 if (binbuf)
2804 vfree(binbuf);