/openssl/providers/implementations/kdfs/ |
H A D | tls1_prf.c | 76 const unsigned char *sec, size_t slen, 92 unsigned char *sec; member 131 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_reset() 150 if (!ossl_prov_memdup(src->sec, src->seclen, &dest->sec, &dest->seclen)) in kdf_tls1_prf_dup() 174 if (ctx->sec == NULL) { in kdf_tls1_prf_derive() 188 ctx->sec, ctx->seclen, in kdf_tls1_prf_derive() 221 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_set_ctx_params() 222 ctx->sec = NULL; in kdf_tls1_prf_set_ctx_params() 325 if (!EVP_MAC_init(ctx_init, sec, sec_len, NULL)) in tls1_prf_P_hash() 401 const unsigned char *sec, size_t slen, in tls1_prf_alg() argument [all …]
|
/openssl/test/ |
H A D | asn1_time_test.c | 164 int day, sec; in test_table() local 183 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table() 187 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table() 192 if (!TEST_true(ASN1_TIME_diff(&day, &sec, >ime, &atime))) { in test_table() 195 } else if (!((td->cmp_result == 0 && TEST_true((day == 0 && sec == 0))) || in test_table() 196 (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) || in test_table() 197 (td->cmp_result == 1 && TEST_true((day > 0 || sec > 0))))) { in test_table() 245 day = sec = 0; in test_table() 246 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table() 269 day = sec = 0; in test_table() [all …]
|
H A D | time_offset_test.c | 72 int day, sec; in test_offset() local 79 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { in test_offset() 87 else if (sec > 0) in test_offset() 89 else if (sec < 0) in test_offset() 95 TEST_info("ASN1_TIME_diff() test failed for %s day=%d sec=%d\n", at.data, day, sec); in test_offset()
|
/openssl/crypto/asn1/ |
H A D | a_utctm.c | 78 int day, sec; in ASN1_UTCTIME_cmp_time_t() local 86 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_UTCTIME_cmp_time_t() 89 if (day > 0 || sec > 0) in ASN1_UTCTIME_cmp_time_t() 91 if (day < 0 || sec < 0) in ASN1_UTCTIME_cmp_time_t()
|
H A D | a_time.c | 552 int day, sec; in ASN1_TIME_cmp_time_t() local 560 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_TIME_cmp_time_t() 563 if (day > 0 || sec > 0) in ASN1_TIME_cmp_time_t() 565 if (day < 0 || sec < 0) in ASN1_TIME_cmp_time_t() 582 int day, sec; in ASN1_TIME_compare() local 584 if (!ASN1_TIME_diff(&day, &sec, b, a)) in ASN1_TIME_compare() 586 if (day > 0 || sec > 0) in ASN1_TIME_compare() 588 if (day < 0 || sec < 0) in ASN1_TIME_compare()
|
/openssl/crypto/ec/ |
H A D | ec_kmeth.c | 159 unsigned char *sec = NULL; in ECDH_compute_key() local 169 if (!eckey->meth->compute_key(&sec, &seclen, pub_key, eckey)) in ECDH_compute_key() 172 KDF(sec, seclen, out, &outlen); in ECDH_compute_key() 176 memcpy(out, sec, outlen); in ECDH_compute_key() 178 OPENSSL_clear_free(sec, seclen); in ECDH_compute_key()
|
/openssl/doc/man3/ |
H A D | OSSL_CRMF_pbmp_new.pod | 16 const unsigned char *sec, size_t seclen, 26 parameters I<pbmp>, message I<msg>, and secret I<sec>, along with the respective 66 unsigned char *sec = "SeCrEt"; 72 if (!OSSL_CRMF_pbm_new(pbm, msg, 5, sec, 6, &mac, &maclen))
|
H A D | EVP_PKEY_CTX_set_tls1_prf_md.pod | 15 unsigned char *sec, int seclen); 30 to B<seclen> bytes of the buffer B<sec>. Any existing secret value is replaced
|
H A D | ASN1_TIME_set.pod | 253 int day, sec; 255 if (!ASN1_TIME_diff(&day, &sec, NULL, to)) 258 if (day > 0 || sec > 0) 260 else if (day < 0 || sec < 0)
|
H A D | OCSP_resp_find_status.pod | 52 long sec, long maxsec); 111 OCSP_single_get0_status(). If I<sec> is nonzero it indicates how many seconds 175 values and the current time + I<sec> is not before I<thisupd> and,
|
H A D | OSSL_CMP_CTX_new.pod | 118 int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, const unsigned char *sec, 489 OSSL_CMP_CTX_set1_secretValue() sets the byte string I<sec> with length I<len> 490 as PBM secret in the given I<ctx> or clears it if the I<sec> argument is NULL. 720 OSSL_CMP_CTX_set1_secretValue(cmp_ctx, sec, sec_len);
|
/openssl/crypto/crmf/ |
H A D | crmf_pbm.c | 130 const unsigned char *sec, size_t seclen, in OSSL_CRMF_pbm_new() argument 145 || pbmp->mac->algorithm == NULL || msg == NULL || sec == NULL) { in OSSL_CRMF_pbm_new() 170 if (!EVP_DigestUpdate(ctx, sec, seclen)) in OSSL_CRMF_pbm_new()
|
/openssl/crypto/ts/ |
H A D | ts_rsp_sign.c | 24 static int def_time_cb(struct TS_resp_ctx *, void *, long *sec, long *usec); 64 long *sec, long *usec) in def_time_cb() argument 74 *sec = tv.tv_sec; in def_time_cb() 83 long *sec, long *usec) in def_time_cb() argument 93 *sec = (long)t; in def_time_cb() 534 long sec, usec; in ts_RESP_create_tst_info() local 550 if (!ctx->time_cb(ctx, ctx->time_cb_data, &sec, &usec) in ts_RESP_create_tst_info() 552 TS_RESP_set_genTime_with_precision(NULL, sec, usec, in ts_RESP_create_tst_info() 818 ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, in TS_RESP_set_genTime_with_precision() argument 821 time_t time_sec = (time_t)sec; in TS_RESP_set_genTime_with_precision()
|
/openssl/apps/include/ |
H A D | cmp_mock_srv.h | 33 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
|
H A D | opt.h | 357 #define OPT_SECTION(sec) { OPT_SECTION_STR, 1, '-', sec " options:\n" } argument
|
/openssl/ssl/ |
H A D | d1_lib.c | 264 unsigned int sec, usec; in dtls1_start_timer() local 292 sec = s->d1->timeout_duration_us / 1000000; in dtls1_start_timer() 293 usec = s->d1->timeout_duration_us - (sec * 1000000); in dtls1_start_timer() 295 s->d1->next_timeout.tv_sec += sec; in dtls1_start_timer()
|
H A D | t1_enc.c | 31 const unsigned char *sec, size_t slen, in tls1_PRF() argument 61 (unsigned char *)sec, in tls1_PRF()
|
/openssl/include/openssl/ |
H A D | kdf.h | 100 const unsigned char *sec, int seclen);
|
H A D | crmf.h.in | 86 const unsigned char *sec, size_t seclen,
|
H A D | ts.h | 256 typedef int (*TS_time_cb) (struct TS_resp_ctx *, void *, long *sec,
|
/openssl/apps/lib/ |
H A D | cmp_mock_srv.c | 179 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec) in ossl_cmp_mock_srv_set_checkAfterTime() argument 187 ctx->checkAfterTime = sec; in ossl_cmp_mock_srv_set_checkAfterTime()
|
/openssl/doc/internal/man3/ |
H A D | ossl_cmp_mock_srv_new.pod | 34 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
|
/openssl/crypto/cmp/ |
H A D | cmp_ctx.c | 421 int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, const unsigned char *sec, in OSSL_CMP_CTX_set1_secretValue() argument 430 if (ossl_cmp_asn1_octet_string_set1_bytes(&secretValue, sec, len) != 1) in OSSL_CMP_CTX_set1_secretValue()
|
/openssl/doc/man1/ |
H A D | openssl-sess_id.pod.in | 92 Timeout : 300 (sec)
|
/openssl/crypto/x509/ |
H A D | x509_vfy.c | 1085 int day, sec; in get_crl_sk() local 1087 if (ASN1_TIME_diff(&day, &sec, X509_CRL_get0_lastUpdate(best_crl), in get_crl_sk() 1094 if (day <= 0 && sec <= 0) in get_crl_sk() 1867 int i, day, sec, ret = 0; in X509_cmp_time() local 1918 if (ASN1_TIME_diff(&day, &sec, ctm, asn1_cmp_time) == 0) in X509_cmp_time() 1925 ret = (day >= 0 && sec >= 0) ? -1 : 1; in X509_cmp_time()
|