Lines Matching refs:keyslot
65 size_t keyslot) in ossl_qrl_enc_level_set_has_keyslot() argument
69 if (!ossl_assert(el != NULL && keyslot < 2)) in ossl_qrl_enc_level_set_has_keyslot()
75 return enc_level == QUIC_ENC_LEVEL_1RTT || keyslot == 0; in ossl_qrl_enc_level_set_has_keyslot()
78 return keyslot == (el->key_epoch & 1); in ossl_qrl_enc_level_set_has_keyslot()
86 size_t keyslot) in el_teardown_keyslot() argument
90 if (!ossl_qrl_enc_level_set_has_keyslot(els, enc_level, el->state, keyslot)) in el_teardown_keyslot()
93 if (el->cctx[keyslot] != NULL) { in el_teardown_keyslot()
94 EVP_CIPHER_CTX_free(el->cctx[keyslot]); in el_teardown_keyslot()
95 el->cctx[keyslot] = NULL; in el_teardown_keyslot()
98 OPENSSL_cleanse(el->iv[keyslot], sizeof(el->iv[keyslot])); in el_teardown_keyslot()
104 size_t keyslot, in el_setup_keyslot() argument
117 tgt_state, keyslot))) { in el_setup_keyslot()
136 assert(el->cctx[keyslot] == NULL); in el_setup_keyslot()
145 el->iv[keyslot], iv_len, 1)) in el_setup_keyslot()
176 if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, el->iv[keyslot], 0)) { in el_setup_keyslot()
181 el->cctx[keyslot] = cctx; in el_setup_keyslot()
191 OPENSSL_cleanse(el->iv[keyslot], sizeof(el->iv[keyslot])); in el_setup_keyslot()