summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_rsa_pkey_to.c
blob: 2f809978e2632f1f40fa37d74e7b8d3a8f3cbca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <bearssl.h>
#include <s6-networking/sbearssl.h>

void sbearssl_rsa_pkey_to (sbearssl_rsa_pkey const *l, br_rsa_public_key *k, char *s)
{
  k->n = (unsigned char *)s + l->n ;
  k->nlen = l->nlen ;
  k->e = (unsigned char *)s + l->e ;
  k->elen = l->elen ;
}