Home
last modified time | relevance | path

Searched refs:binbuf (Results 1 – 2 of 2) sorted by relevance

/external/ipsec-tools/src/racoon/
Dplainrsa-gen.c87 char *binbuf; in mix_b64_pubkey() local
92 binbuf = malloc(binlen); in mix_b64_pubkey()
93 memset(binbuf, 0, binlen); in mix_b64_pubkey()
94 binbuf[0] = BN_bn2bin(key->e, (unsigned char *) &binbuf[1]); in mix_b64_pubkey()
95 ret = BN_bn2bin(key->n, (unsigned char *) (&binbuf[binbuf[0] + 1])); in mix_b64_pubkey()
96 if (1 + binbuf[0] + ret != binlen) { in mix_b64_pubkey()
102 return base64_encode(binbuf, binlen); in mix_b64_pubkey()
Dcrypto_openssl.c239 char *binbuf; in eay_hex2asn1dn() local
259 binbuf = ret->v; in eay_hex2asn1dn()
261 BN_bn2bin(bn, (unsigned char *) binbuf); in eay_hex2asn1dn()
2640 binbuf_pubkey2rsa(vchar_t *binbuf) in binbuf_pubkey2rsa() argument
2645 if (binbuf->v[0] > binbuf->l - 1) { in binbuf_pubkey2rsa()
2650 exp = BN_bin2bn((unsigned char *) (binbuf->v + 1), binbuf->v[0], NULL); in binbuf_pubkey2rsa()
2651 mod = BN_bin2bn((unsigned char *) (binbuf->v + binbuf->v[0] + 1), in binbuf_pubkey2rsa()
2652 binbuf->l - binbuf->v[0] - 1, NULL); in binbuf_pubkey2rsa()
2679 vchar_t *binbuf; in base64_pubkey2rsa() local
2686 binbuf = base64_decode(in + 2, strlen(in + 2)); in base64_pubkey2rsa()
[all …]