aboutsummaryrefslogtreecommitdiffstats
path: root/src/sbearssl/sbearssl_ec_pkey_to.c
blob: 4cc1e65404f45881d546a818ef1fd42c3dd9e62c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

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

void sbearssl_ec_pkey_to (sbearssl_ec_pkey const *l, br_ec_public_key *k, char const *s)
{
  k->curve = l->curve ;
  k->q = s + l->q ;
  k->qlen = l->qlen ;
}