Home
last modified time | relevance | path

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

12

/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c87 const unsigned char *sec, size_t slen,
104 unsigned char *sec; member
144 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_reset()
163 if (!ossl_prov_memdup(src->sec, src->seclen, &dest->sec, &dest->seclen)) in kdf_tls1_prf_dup()
259 if (ctx->sec == NULL) { in kdf_tls1_prf_derive()
278 ctx->sec, ctx->seclen, in kdf_tls1_prf_derive()
344 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_set_ctx_params()
345 ctx->sec = NULL; in kdf_tls1_prf_set_ctx_params()
474 if (!EVP_MAC_init(ctx_init, sec, sec_len, NULL)) in tls1_prf_P_hash()
550 const unsigned char *sec, size_t slen, in tls1_prf_alg() argument
[all …]
/openssl/test/
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()
H A Dasn1_time_test.c167 int day, sec; in test_table() local
186 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table()
190 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table()
195 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &gtime, &atime))) { in test_table()
198 } else if (!((td->cmp_result == 0 && TEST_true((day == 0 && sec == 0))) || in test_table()
199 (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) || in test_table()
200 (td->cmp_result == 1 && TEST_true((day > 0 || sec > 0))))) { in test_table()
248 day = sec = 0; in test_table()
249 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq( in test_table()
272 day = sec = 0; in test_table()
[all …]
H A Devp_pkey_dhkem_test.c209 unsigned char sec[256]; in test_input_size_small() local
211 size_t seclen = sizeof(sec); in test_input_size_small()
222 if (!TEST_int_eq(EVP_PKEY_encapsulate(ctx, enc, &enclen, sec, &seclen), in test_input_size_small()
228 if (!TEST_int_eq(EVP_PKEY_encapsulate(ctx, enc, &enclen, sec, &seclen), 0)) in test_input_size_small()
235 if (!TEST_int_eq(EVP_PKEY_decapsulate(ctx, sec, &seclen, enc, enclen), 0)) in test_input_size_small()
240 ret = TEST_int_eq(EVP_PKEY_decapsulate(ctx, sec, &seclen, enc, enclen), 0); in test_input_size_small()
/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.c554 int day, sec; in ASN1_TIME_cmp_time_t() local
562 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_TIME_cmp_time_t()
565 if (day > 0 || sec > 0) in ASN1_TIME_cmp_time_t()
567 if (day < 0 || sec < 0) in ASN1_TIME_cmp_time_t()
584 int day, sec; in ASN1_TIME_compare() local
586 if (!ASN1_TIME_diff(&day, &sec, b, a)) in ASN1_TIME_compare()
588 if (day > 0 || sec > 0) in ASN1_TIME_compare()
590 if (day < 0 || sec < 0) in ASN1_TIME_compare()
/openssl/crypto/ec/
H A Dec_kmeth.c154 unsigned char *sec = NULL; in ECDH_compute_key() local
164 if (!eckey->meth->compute_key(&sec, &seclen, pub_key, eckey)) in ECDH_compute_key()
167 KDF(sec, seclen, out, &outlen); in ECDH_compute_key()
171 memcpy(out, sec, outlen); in ECDH_compute_key()
173 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.pod125 const unsigned char *sec, int len);
530 OSSL_CMP_CTX_set1_secretValue() sets in I<ctx> the byte string I<sec> of length
531 I<len> to use as pre-shared secret, or clears it if the I<sec> argument is NULL.
804 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.c25 static int def_time_cb(struct TS_resp_ctx *, void *, long *sec, long *usec);
63 long *sec, long *usec) in def_time_cb() argument
77 *sec = (long int)tv.tv_sec; in def_time_cb()
532 long sec, usec; in ts_RESP_create_tst_info() local
548 if (!ctx->time_cb(ctx, ctx->time_cb_data, &sec, &usec) in ts_RESP_create_tst_info()
550 TS_RESP_set_genTime_with_precision(NULL, sec, usec, in ts_RESP_create_tst_info()
816 ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, in TS_RESP_set_genTime_with_precision() argument
819 time_t time_sec = (time_t)sec; in TS_RESP_set_genTime_with_precision()
/openssl/apps/include/
H A Dcmp_mock_srv.h37 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
H A Dopt.h390 #define OPT_SECTION(sec) { OPT_SECTION_STR, 1, '-', sec " options:\n" } argument
/openssl/include/openssl/
H A Dkdf.h100 const unsigned char *sec, int seclen);
H A Dcrmf.h.in93 const unsigned char *sec, size_t seclen,
H A Dts.h256 typedef int (*TS_time_cb) (struct TS_resp_ctx *, void *, long *sec,
/openssl/ssl/
H A Dt1_enc.c31 const unsigned char *sec, size_t slen, in tls1_PRF() argument
61 (unsigned char *)sec, in tls1_PRF()
/openssl/apps/lib/
H A Dcmp_mock_srv.c190 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec) in ossl_cmp_mock_srv_set_checkAfterTime() argument
198 ctx->checkAfterTime = sec; in ossl_cmp_mock_srv_set_checkAfterTime()
/openssl/doc/internal/man3/
H A Dossl_cmp_mock_srv_new.pod40 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
/openssl/doc/man1/
H A Dopenssl-sess_id.pod.in92 Timeout : 300 (sec)
/openssl/crypto/cmp/
H A Dcmp_ctx.c436 const unsigned char *sec, int len) in OSSL_CMP_CTX_set1_secretValue() argument
444 if (ossl_cmp_asn1_octet_string_set1_bytes(&secretValue, sec, len) != 1) in OSSL_CMP_CTX_set1_secretValue()
/openssl/crypto/x509/
H A Dx509_vfy.c1172 int day, sec; in get_crl_sk() local
1174 if (ASN1_TIME_diff(&day, &sec, X509_CRL_get0_lastUpdate(best_crl), in get_crl_sk()
1181 if (day <= 0 && sec <= 0) in get_crl_sk()
1977 int i, day, sec, ret = 0; in X509_cmp_time() local
2028 if (ASN1_TIME_diff(&day, &sec, ctm, asn1_cmp_time) == 0) in X509_cmp_time()
2035 ret = (day >= 0 && sec >= 0) ? -1 : 1; in X509_cmp_time()

Completed in 50 milliseconds

12