Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 30) sorted by relevance

12

/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c76 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 Dasn1_time_test.c164 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, &gtime, &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 Dtime_offset_test.c72 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 Da_utctm.c78 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 Da_time.c552 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 Dec_kmeth.c159 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 DOSSL_CRMF_pbmp_new.pod16 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 DEVP_PKEY_CTX_set_tls1_prf_md.pod15 unsigned char *sec, int seclen);
30 to B<seclen> bytes of the buffer B<sec>. Any existing secret value is replaced
H A DASN1_TIME_set.pod253 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 DOCSP_resp_find_status.pod52 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 DOSSL_CMP_CTX_new.pod118 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 Dcrmf_pbm.c130 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 Dts_rsp_sign.c24 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 Dcmp_mock_srv.h33 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
H A Dopt.h357 #define OPT_SECTION(sec) { OPT_SECTION_STR, 1, '-', sec " options:\n" } argument
/openssl/ssl/
H A Dd1_lib.c264 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 Dt1_enc.c31 const unsigned char *sec, size_t slen, in tls1_PRF() argument
61 (unsigned char *)sec, in tls1_PRF()
/openssl/include/openssl/
H A Dkdf.h100 const unsigned char *sec, int seclen);
H A Dcrmf.h.in86 const unsigned char *sec, size_t seclen,
H A Dts.h256 typedef int (*TS_time_cb) (struct TS_resp_ctx *, void *, long *sec,
/openssl/apps/lib/
H A Dcmp_mock_srv.c179 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 Dossl_cmp_mock_srv_new.pod34 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
/openssl/crypto/cmp/
H A Dcmp_ctx.c421 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 Dopenssl-sess_id.pod.in92 Timeout : 300 (sec)
/openssl/crypto/x509/
H A Dx509_vfy.c1085 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()

Completed in 70 milliseconds

12