Home
last modified time | relevance | path

Searched refs:tctx (Results 1 – 7 of 7) sorted by relevance

/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_default_hw.c26 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ede2_initkey() local
29 tctx->tstream.cbc = NULL; in ossl_cipher_hw_tdes_ede2_initkey()
35 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey()
44 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey()
55 DES_ede3_ofb64_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_ofb()
62 DES_ede3_ofb64_encrypt(in, out, (long)inl, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_ofb()
78 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb()
86 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb()
110 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb1()
126 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb8()
[all …]
H A Dcipher_tdes_hw.c26 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ede3_initkey() local
29 tctx->tstream.cbc = NULL; in ossl_cipher_hw_tdes_ede3_initkey()
42 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey()
43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey()
61 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_cbc() local
63 if (tctx->tstream.cbc != NULL) { in ossl_cipher_hw_tdes_cbc()
64 (*tctx->tstream.cbc) (in, out, inl, tctx->tks.ks, ctx->iv); in ossl_cipher_hw_tdes_cbc()
69 DES_ede3_cbc_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cbc()
76 DES_ede3_cbc_encrypt(in, out, (long)inl, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cbc()
85 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ecb() local
[all …]
H A Dcipher_desx_hw.c30 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in cipher_hw_desx_cbc_initkey() local
33 DES_set_key_unchecked(deskey, &tctx->ks1); in cipher_hw_desx_cbc_initkey()
34 memcpy(&tctx->ks2, &key[8], 8); in cipher_hw_desx_cbc_initkey()
35 memcpy(&tctx->ks3, &key[16], 8); in cipher_hw_desx_cbc_initkey()
53 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in cipher_hw_desx_cbc() local
56 DES_xcbc_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, in cipher_hw_desx_cbc()
57 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
64 DES_xcbc_encrypt(in, out, (long)inl, &tctx->ks1, in cipher_hw_desx_cbc()
65 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
H A Dcipher_tdes_common.c26 PROV_TDES_CTX *tctx; in ossl_tdes_newctx() local
31 tctx = OPENSSL_zalloc(sizeof(*tctx)); in ossl_tdes_newctx()
32 if (tctx != NULL) { in ossl_tdes_newctx()
33 OSSL_FIPS_IND_INIT(tctx) in ossl_tdes_newctx()
34 ossl_cipher_generic_initkey(tctx, kbits, blkbits, ivbits, mode, flags, in ossl_tdes_newctx()
37 return tctx; in ossl_tdes_newctx()
/openssl/ssl/statem/
H A Dstatem_srvr.c3936 SSL_CTX *tctx = s->session_ctx; in construct_stateless_ticket() local
3966 hctx = ssl_hmac_new(tctx); in construct_stateless_ticket()
4009 if (tctx->ext.ticket_key_evp_cb != NULL || tctx->ext.ticket_key_cb != NULL) in construct_stateless_ticket()
4011 if (tctx->ext.ticket_key_evp_cb != NULL) in construct_stateless_ticket()
4016 if (tctx->ext.ticket_key_evp_cb != NULL) in construct_stateless_ticket()
4021 else if (tctx->ext.ticket_key_cb != NULL) in construct_stateless_ticket()
4080 memcpy(key_name, tctx->ext.tick_key_name, in construct_stateless_ticket()
4081 sizeof(tctx->ext.tick_key_name)); in construct_stateless_ticket()
4166 SSL_CTX *tctx = s->session_ctx; in tls_construct_new_session_ticket() local
4252 if (tctx->generate_ticket_cb != NULL && in tls_construct_new_session_ticket()
[all …]
/openssl/apps/
H A Ddgst.c413 EVP_MD_CTX *tctx; in dgst_main() local
415 BIO_get_md_ctx(bmd, &tctx); in dgst_main()
416 md = EVP_MD_CTX_get1_md(tctx); in dgst_main()
/openssl/ssl/
H A Dt1_lib.c2382 SSL_CTX *tctx = s->session_ctx; in tls_decrypt_ticket() local
2411 hctx = ssl_hmac_new(tctx); in tls_decrypt_ticket()
2422 if (tctx->ext.ticket_key_evp_cb != NULL || tctx->ext.ticket_key_cb != NULL) in tls_decrypt_ticket()
2424 if (tctx->ext.ticket_key_evp_cb != NULL) in tls_decrypt_ticket()
2430 if (tctx->ext.ticket_key_evp_cb != NULL) in tls_decrypt_ticket()
2431 rv = tctx->ext.ticket_key_evp_cb(SSL_CONNECTION_GET_USER_SSL(s), in tls_decrypt_ticket()
2438 else if (tctx->ext.ticket_key_cb != NULL) in tls_decrypt_ticket()
2458 if (memcmp(etick, tctx->ext.tick_key_name, in tls_decrypt_ticket()
2467 || ssl_hmac_init(hctx, tctx->ext.secure->tick_hmac_key, in tls_decrypt_ticket()
2468 sizeof(tctx->ext.secure->tick_hmac_key), in tls_decrypt_ticket()
[all …]

Completed in 31 milliseconds