Home
last modified time | relevance | path

Searched refs:spki (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Dclasn1.c74 free_decoded_spki(KMF_X509_SPKI *spki) in free_decoded_spki() argument
76 if (spki != NULL) { in free_decoded_spki()
77 free_algoid(&spki->algorithm); in free_decoded_spki()
78 free_data(&spki->subjectPublicKey); in free_decoded_spki()
366 if (spki == NULL || EncodedSPKI == NULL) in DerEncodeSPKI()
413 spki->subjectPublicKey.Data = NULL; in get_spki()
414 spki->subjectPublicKey.Length = 0; in get_spki()
416 free_algoid(&spki->algorithm); in get_spki()
610 spki == NULL) in DerDecodeSPKI()
621 ret = get_spki(asn1, spki); in DerDecodeSPKI()
[all …]
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpk11keys.c704 GetIDFromSPKI(KMF_X509_SPKI *spki, KMF_DATA *ID) in GetIDFromSPKI() argument
712 if (ID == NULL || spki == NULL) in GetIDFromSPKI()
721 algId = x509_algoid_to_algid(&spki->algorithm.algorithm); in GetIDFromSPKI()
725 rv = ExtractSPKIData(spki, algId, KeyParts, &uNumKeyParts); in GetIDFromSPKI()
H A Dcertop.c840 KMF_X509_SPKI spki; in kmf_verify_data() local
945 ret = DerDecodeSPKI(&derkey, &spki); in kmf_verify_data()
947 ret = PKCS_VerifyData(handle, sigAlg, &spki, in kmf_verify_data()
953 kmf_free_algoid(&spki.algorithm); in kmf_verify_data()
954 kmf_free_data(&spki.subjectPublicKey); in kmf_verify_data()
3166 KMF_X509_SPKI spki; in verify_cert_with_key() local
3177 (void) memset(&spki, 0, sizeof (KMF_X509_SPKI)); in verify_cert_with_key()
3185 ret = DerDecodeSPKI(derkey, &spki); in verify_cert_with_key()
3216 ret = PKCS_VerifyData(handle, algid, &spki, in verify_cert_with_key()
3239 kmf_free_algoid(&spki.algorithm); in verify_cert_with_key()
[all …]
H A Dgeneralop.c1273 kmf_free_spki(KMF_X509_SPKI *spki) in kmf_free_spki() argument
1275 if (spki != NULL) { in kmf_free_spki()
1276 kmf_free_algoid(&spki->algorithm); in kmf_free_spki()
1277 kmf_free_data(&spki->subjectPublicKey); in kmf_free_spki()
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c783 KMF_X509_SPKI spki; in KMFPK11_EncodePubKeyData() local
1053 spki.algorithm.algorithm = *Algorithm; in KMFPK11_EncodePubKeyData()
1055 spki.algorithm.parameters.Data = in KMFPK11_EncodePubKeyData()
1057 spki.algorithm.parameters.Length = PubKeyParams->bv_len; in KMFPK11_EncodePubKeyData()
1059 spki.algorithm.parameters.Data = NULL; in KMFPK11_EncodePubKeyData()
1060 spki.algorithm.parameters.Length = 0; in KMFPK11_EncodePubKeyData()
1064 spki.subjectPublicKey.Data = (uchar_t *)EncodedKey->bv_val; in KMFPK11_EncodePubKeyData()
1065 spki.subjectPublicKey.Length = EncodedKey->bv_len; in KMFPK11_EncodePubKeyData()
1067 spki.subjectPublicKey.Data = NULL; in KMFPK11_EncodePubKeyData()
1068 spki.subjectPublicKey.Length = 0; in KMFPK11_EncodePubKeyData()
[all …]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/
H A Dnss_spi.c1093 CERTSubjectPublicKeyInfo *spki = NULL; in NSS_EncodePubKeyData() local
1098 spki = SECKEY_CreateSubjectPublicKeyInfo(keyp->keyp); in NSS_EncodePubKeyData()
1099 if (spki == NULL) { in NSS_EncodePubKeyData()
1104 rvitem = SEC_ASN1EncodeItem(NULL, NULL, spki, in NSS_EncodePubKeyData()
1121 SECKEY_DestroySubjectPublicKeyInfo(spki); in NSS_EncodePubKeyData()
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_ami.h511 struct ami_pubkey_info *spki; member