Lines Matching refs:spki
991 gnutls_datum_t *spki = NULL; in get_asn1_spki() local
1003 spki = (gnutls_datum_t *)tmp; in get_asn1_spki()
1004 spki->data = &tmp[sizeof(gnutls_datum_t)]; in get_asn1_spki()
1005 memcpy(&spki->data[header_size], pub_key->s, pub_key->length); in get_asn1_spki()
1006 memcpy(spki->data, cert_asn1_header1, sizeof(cert_asn1_header1)); in get_asn1_spki()
1007 spki->data[sizeof(cert_asn1_header1)] = COAP_ASN1_IDENTIFIER; in get_asn1_spki()
1008 spki->data[sizeof(cert_asn1_header1)+1] = prime->length; in get_asn1_spki()
1009 memcpy(&spki->data[sizeof(cert_asn1_header1)+2], in get_asn1_spki()
1011 memcpy(&spki->data[sizeof(cert_asn1_header1)+2+prime->length], in get_asn1_spki()
1013 spki->size = header_size + pub_key->length; in get_asn1_spki()
1018 return spki; in get_asn1_spki()
1137 gnutls_datum_t *spki = get_asn1_spki(der_private.data, in setup_pki_credentials() local
1140 if (spki) { in setup_pki_credentials()
1142 spki, in setup_pki_credentials()
1150 gnutls_free(spki); in setup_pki_credentials()
1249 gnutls_datum_t *spki = get_asn1_spki(key.data, in setup_pki_credentials() local
1252 if (spki) { in setup_pki_credentials()
1254 spki, in setup_pki_credentials()
1262 gnutls_free(spki); in setup_pki_credentials()