Home
last modified time | relevance | path

Searched refs:binbuf (Results 1 – 3 of 3) 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.c244 char *binbuf; in eay_hex2asn1dn() local
264 binbuf = ret->v; in eay_hex2asn1dn()
266 BN_bn2bin(bn, (unsigned char *) binbuf); in eay_hex2asn1dn()
2720 binbuf_pubkey2rsa(vchar_t *binbuf) in binbuf_pubkey2rsa() argument
2725 if (binbuf->v[0] > binbuf->l - 1) { in binbuf_pubkey2rsa()
2730 exp = BN_bin2bn((unsigned char *) (binbuf->v + 1), binbuf->v[0], NULL); in binbuf_pubkey2rsa()
2731 mod = BN_bin2bn((unsigned char *) (binbuf->v + binbuf->v[0] + 1), in binbuf_pubkey2rsa()
2732 binbuf->l - binbuf->v[0] - 1, NULL); in binbuf_pubkey2rsa()
2759 vchar_t *binbuf; in base64_pubkey2rsa() local
2766 binbuf = base64_decode(in + 2, strlen(in + 2)); in base64_pubkey2rsa()
[all …]
/external/tcpdump/
Dprint-esp.c225 u_char *binbuf, unsigned int binbuf_len, in espprint_decode_hex() argument
240 binbuf[i] = hex2byte(ndo, hex); in espprint_decode_hex()