Lines Matching refs:oct
28 const ASN1_OCTET_STRING *oct) in i2s_ASN1_OCTET_STRING() argument
30 return OPENSSL_buf2hexstr(oct->data, oct->length); in i2s_ASN1_OCTET_STRING()
36 ASN1_OCTET_STRING *oct; in s2i_ASN1_OCTET_STRING() local
39 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in s2i_ASN1_OCTET_STRING()
44 if ((oct->data = OPENSSL_hexstr2buf(str, &length)) == NULL) { in s2i_ASN1_OCTET_STRING()
45 ASN1_OCTET_STRING_free(oct); in s2i_ASN1_OCTET_STRING()
49 oct->length = length; in s2i_ASN1_OCTET_STRING()
51 return oct; in s2i_ASN1_OCTET_STRING()
57 ASN1_OCTET_STRING *oct; in ossl_x509_pubkey_hash() local
74 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in ossl_x509_pubkey_hash()
81 && ASN1_OCTET_STRING_set(oct, pkey_dig, diglen)) { in ossl_x509_pubkey_hash()
83 return oct; in ossl_x509_pubkey_hash()
87 ASN1_OCTET_STRING_free(oct); in ossl_x509_pubkey_hash()