MCPcopy Create free account
hub / github.com/apache/httpd / bn64

Function bn64

modules/md/md_crypt.c:999–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997#endif
998
999static const char *bn64(const BIGNUM *b, apr_pool_t *p)
1000{
1001 if (b) {
1002 md_data_t buffer;
1003
1004 md_data_pinit(&buffer, (apr_size_t)BN_num_bytes(b), p);
1005 if (buffer.data) {
1006 BN_bn2bin(b, (unsigned char *)buffer.data);
1007 return md_util_base64url_encode(&buffer, p);
1008 }
1009 }
1010 return NULL;
1011}
1012
1013const char *md_pkey_get_rsa_e64(md_pkey_t *pkey, apr_pool_t *p)
1014{

Callers 2

md_pkey_get_rsa_e64Function · 0.85
md_pkey_get_rsa_n64Function · 0.85

Calls 2

md_data_pinitFunction · 0.85
md_util_base64url_encodeFunction · 0.85

Tested by

no test coverage detected