/third_party/openssl/crypto/ct/ |
D | ct_sct.c | 24 SCT *sct = OPENSSL_zalloc(sizeof(*sct)); in SCT_new() local 26 if (sct == NULL) { in SCT_new() 31 sct->entry_type = CT_LOG_ENTRY_TYPE_NOT_SET; in SCT_new() 32 sct->version = SCT_VERSION_NOT_SET; in SCT_new() 33 return sct; in SCT_new() 36 void SCT_free(SCT *sct) in SCT_free() argument 38 if (sct == NULL) in SCT_free() 41 OPENSSL_free(sct->log_id); in SCT_free() 42 OPENSSL_free(sct->ext); in SCT_free() 43 OPENSSL_free(sct->sig); in SCT_free() [all …]
|
D | ct_oct.c | 24 int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len) in o2i_SCT_signature() argument 30 if (sct->version != SCT_VERSION_V1) { in o2i_SCT_signature() 48 sct->hash_alg = *p++; in o2i_SCT_signature() 49 sct->sig_alg = *p++; in o2i_SCT_signature() 50 if (SCT_get_signature_nid(sct) == NID_undef) { in o2i_SCT_signature() 62 if (SCT_set1_signature(sct, p, siglen) != 1) in o2i_SCT_signature() 72 SCT *sct = NULL; in o2i_SCT() local 80 if ((sct = SCT_new()) == NULL) in o2i_SCT() 85 sct->version = *p; in o2i_SCT() 86 if (sct->version == SCT_VERSION_V1) { in o2i_SCT() [all …]
|
D | ct_prn.c | 19 static void SCT_signature_algorithms_print(const SCT *sct, BIO *out) in SCT_signature_algorithms_print() argument 21 int nid = SCT_get_signature_nid(sct); in SCT_signature_algorithms_print() 24 BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg); in SCT_signature_algorithms_print() 50 const char *SCT_validation_status_string(const SCT *sct) in SCT_validation_status_string() argument 53 switch (SCT_get_validation_status(sct)) { in SCT_validation_status_string() 70 void SCT_print(const SCT *sct, BIO *out, int indent, in SCT_print() argument 76 log = CTLOG_STORE_get0_log_by_id(log_store, sct->log_id, in SCT_print() 77 sct->log_id_len); in SCT_print() 83 if (sct->version != SCT_VERSION_V1) { in SCT_print() 85 BIO_hex_string(out, indent + 16, 16, sct->sct, sct->sct_len); in SCT_print() [all …]
|
D | ct_vfy.c | 29 static int sct_ctx_update(EVP_MD_CTX *ctx, const SCT_CTX *sctx, const SCT *sct) in sct_ctx_update() argument 47 if (sct->entry_type == CT_LOG_ENTRY_TYPE_NOT_SET) in sct_ctx_update() 49 if (sct->entry_type == CT_LOG_ENTRY_TYPE_PRECERT && sctx->ihash == NULL) in sct_ctx_update() 53 *p++ = sct->version; in sct_ctx_update() 55 l2n8(sct->timestamp, p); in sct_ctx_update() 56 s2n(sct->entry_type, p); in sct_ctx_update() 61 if (sct->entry_type == CT_LOG_ENTRY_TYPE_X509) { in sct_ctx_update() 86 s2n(sct->ext_len, p); in sct_ctx_update() 90 if (sct->ext_len && !EVP_DigestUpdate(ctx, sct->ext, sct->ext_len)) in sct_ctx_update() 96 int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct) in SCT_CTX_verify() argument [all …]
|
/third_party/node/deps/openssl/openssl/crypto/ct/ |
D | ct_sct.c | 24 SCT *sct = OPENSSL_zalloc(sizeof(*sct)); in SCT_new() local 26 if (sct == NULL) { in SCT_new() 31 sct->entry_type = CT_LOG_ENTRY_TYPE_NOT_SET; in SCT_new() 32 sct->version = SCT_VERSION_NOT_SET; in SCT_new() 33 return sct; in SCT_new() 36 void SCT_free(SCT *sct) in SCT_free() argument 38 if (sct == NULL) in SCT_free() 41 OPENSSL_free(sct->log_id); in SCT_free() 42 OPENSSL_free(sct->ext); in SCT_free() 43 OPENSSL_free(sct->sig); in SCT_free() [all …]
|
D | ct_oct.c | 24 int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len) in o2i_SCT_signature() argument 30 if (sct->version != SCT_VERSION_V1) { in o2i_SCT_signature() 48 sct->hash_alg = *p++; in o2i_SCT_signature() 49 sct->sig_alg = *p++; in o2i_SCT_signature() 50 if (SCT_get_signature_nid(sct) == NID_undef) { in o2i_SCT_signature() 62 if (SCT_set1_signature(sct, p, siglen) != 1) in o2i_SCT_signature() 72 SCT *sct = NULL; in o2i_SCT() local 80 if ((sct = SCT_new()) == NULL) in o2i_SCT() 85 sct->version = *p; in o2i_SCT() 86 if (sct->version == SCT_VERSION_V1) { in o2i_SCT() [all …]
|
D | ct_prn.c | 19 static void SCT_signature_algorithms_print(const SCT *sct, BIO *out) in SCT_signature_algorithms_print() argument 21 int nid = SCT_get_signature_nid(sct); in SCT_signature_algorithms_print() 24 BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg); in SCT_signature_algorithms_print() 50 const char *SCT_validation_status_string(const SCT *sct) in SCT_validation_status_string() argument 53 switch (SCT_get_validation_status(sct)) { in SCT_validation_status_string() 70 void SCT_print(const SCT *sct, BIO *out, int indent, in SCT_print() argument 76 log = CTLOG_STORE_get0_log_by_id(log_store, sct->log_id, in SCT_print() 77 sct->log_id_len); in SCT_print() 83 if (sct->version != SCT_VERSION_V1) { in SCT_print() 85 BIO_hex_string(out, indent + 16, 16, sct->sct, sct->sct_len); in SCT_print() [all …]
|
D | ct_vfy.c | 29 static int sct_ctx_update(EVP_MD_CTX *ctx, const SCT_CTX *sctx, const SCT *sct) in sct_ctx_update() argument 47 if (sct->entry_type == CT_LOG_ENTRY_TYPE_NOT_SET) in sct_ctx_update() 49 if (sct->entry_type == CT_LOG_ENTRY_TYPE_PRECERT && sctx->ihash == NULL) in sct_ctx_update() 53 *p++ = sct->version; in sct_ctx_update() 55 l2n8(sct->timestamp, p); in sct_ctx_update() 56 s2n(sct->entry_type, p); in sct_ctx_update() 61 if (sct->entry_type == CT_LOG_ENTRY_TYPE_X509) { in sct_ctx_update() 86 s2n(sct->ext_len, p); in sct_ctx_update() 90 if (sct->ext_len && !EVP_DigestUpdate(ctx, sct->ext, sct->ext_len)) in sct_ctx_update() 96 int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct) in SCT_CTX_verify() argument [all …]
|
/third_party/openssl/ohos_lite/include/openssl/ |
D | ct.h | 141 void SCT_free(SCT *sct); 152 sct_version_t SCT_get_version(const SCT *sct); 158 __owur int SCT_set_version(SCT *sct, sct_version_t version); 163 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 169 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 176 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 183 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 190 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 196 uint64_t SCT_get_timestamp(const SCT *sct); 201 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/darwin-i386-cc/asm_avx2/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/linux-elf/asm_avx2/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/VC-WIN64-ARM/no-asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/linux64-riscv64/no-asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/linux-aarch64/asm_avx2/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/darwin64-arm64-cc/asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/solaris64-x86_64-gcc/asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/linux-aarch64/asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/darwin-i386-cc/asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/aix64-gcc-as/asm_avx2/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/linux-elf/asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/linux32-s390x/asm_avx2/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/linux-aarch64/no-asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/third_party/node/deps/openssl/config/archs/VC-WIN64A/asm/include/openssl/ |
D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|