Botan 3.6.1
Crypto and TLS for C&
|
Public Header. More...
#include <botan/compiler.h>
Go to the source code of this file.
Namespaces | |
namespace | Botan |
Macros | |
#define | BOTAN_ARG_CHECK(expr, msg) |
#define | BOTAN_ASSERT(expr, assertion_made) |
#define | BOTAN_ASSERT_EQUAL(expr1, expr2, assertion_made) |
#define | BOTAN_ASSERT_IMPLICATION(expr1, expr2, msg) |
#define | BOTAN_ASSERT_NOMSG(expr) |
#define | BOTAN_ASSERT_NONNULL(ptr) |
#define | BOTAN_ASSERT_UNREACHABLE() |
#define | BOTAN_DEBUG_ASSERT(expr) |
#define | BOTAN_STATE_CHECK(expr) |
#define | BOTAN_UNUSED Botan::ignore_params |
Functions | |
void | Botan::assert_unreachable (const char *file, int line) |
void | Botan::assertion_failure (const char *expr_str, const char *assertion_made, const char *func, const char *file, int line) |
template<typename T > | |
constexpr void | Botan::ignore_param (T &&) |
template<typename... T> | |
constexpr void | Botan::ignore_params (T &&... args) |
void | Botan::throw_invalid_argument (const char *message, const char *func, const char *file) |
void | Botan::throw_invalid_state (const char *expr, const char *func, const char *file) |
Public Header.
Definition in file assert.h.
#define BOTAN_ARG_CHECK | ( | expr, | |
msg ) |
Definition at line 29 of file assert.h.
Referenced by Botan::EC_Point::add(), Botan::Argon2::Argon2(), Botan::ranges::assert_equal_byte_lengths(), Botan::Bcrypt_PBKDF::Bcrypt_PBKDF(), Botan::bigint_monty_redc(), Botan::bigint_monty_redc_generic(), Botan::Scalar448::bytes_are_reduced(), Botan::TLS::Certificate_Type_Base::Certificate_Type_Base(), Botan::ChaCha::ChaCha(), Botan::StreamCipher::cipher(), Botan::TLS::Client::Client(), Botan::detail::concatenate(), Botan::CT::copy_output(), Botan::Dilithium_PrivateKey::create_signature_op(), Botan::HSS_LMS_PrivateKey::create_signature_op(), Botan::SphincsPlus_PrivateKey::create_signature_op(), Botan::TPM2::EC_PrivateKey::create_unrestricted_transient(), Botan::TPM2::RSA_PrivateKey::create_unrestricted_transient(), Botan::Dilithium_PublicKey::create_verification_op(), Botan::CTR_BE::CTR_BE(), Botan::Dilithium_Expanded_Keypair_Codec::decode_keypair(), Botan::Kyber_Expanded_Keypair_Codec::decode_keypair(), Botan::decode_point(), Botan::decode_scalar(), Botan::PK_KEM_Decryptor::decrypt(), Botan::TLS::Cipher_State::decrypt_record_fragment(), Botan::Bcrypt_PBKDF::derive_key(), Botan::Dilithium_PrivateKey::Dilithium_PrivateKey(), Botan::Dilithium_PublicKey::Dilithium_PublicKey(), Botan::DSA_PrivateKey::DSA_PrivateKey(), Botan::DSA_PrivateKey::DSA_PrivateKey(), Botan::DSA_PrivateKey::DSA_PrivateKey(), Botan::DSA_PublicKey::DSA_PublicKey(), Botan::DSA_PublicKey::DSA_PublicKey(), Botan::EC_Group::EC_Group(), Botan::EC_Mul2Table_Data_BN::EC_Mul2Table_Data_BN(), Botan::EC_Mul2Table_Data_PC::EC_Mul2Table_Data_PC(), Botan::ASN1_Time::encode_into(), Botan::ML_DSA_Expanding_Keypair_Codec::encode_keypair(), Botan::ML_KEM_Expanding_Keypair_Codec::encode_keypair(), Botan::PK_KEM_Encryptor::encrypt(), Botan::TPM2::Context::evict(), Botan::Kyber_Algos::expand_keypair(), Botan::Buffered_Computation::final(), Botan::GHASH::final(), Botan::generate_passhash9(), Botan::Scalar448::get_bit(), Botan::hkdf_expand_label(), Botan::HMAC::HMAC(), Botan::HOTP::HOTP(), Botan::HSS_LMS_Params::HSS_LMS_Params(), Botan::HSS_LMS_Params::HSS_LMS_Params(), Botan::TLS::Hybrid_KEM_PrivateKey::Hybrid_KEM_PrivateKey(), Botan::TLS::Hybrid_KEM_PublicKey::Hybrid_KEM_PublicKey(), Botan::SP800_56C_One_Step_Hash::kdf(), Botan::Keccak_Permutation::Keccak_Permutation(), Botan::PK_Ops::KEM_Decryption_with_KDF::kem_decrypt(), Botan::PK_Ops::KEM_Encryption_with_KDF::kem_encrypt(), Botan::TLS::KEX_to_KEM_Adapter_PrivateKey::KEX_to_KEM_Adapter_PrivateKey(), Botan::TLS::KEX_to_KEM_Adapter_PublicKey::KEX_to_KEM_Adapter_PublicKey(), Botan::KMAC::KMAC(), Botan::LMS_PublicKey::LMS_PublicKey(), Botan::detail::load_any(), Botan::BigInt::mod_add(), Botan::BigInt::mod_mul(), Botan::EC_AffinePoint_Data_BN::mul(), Botan::EC_AffinePoint_Data_PC::mul(), Botan::EC_Mul2Table_Data_BN::mul2_vartime(), Botan::EC_Mul2Table_Data_PC::mul2_vartime(), Botan::EC_Mul2Table_Data_BN::mul2_vartime_x_mod_order_eq(), Botan::EC_Mul2Table_Data_PC::mul2_vartime_x_mod_order_eq(), Botan::OCB_Mode::OCB_Mode(), Botan::operator*(), Botan::EC_Scalar::operator=(), Botan::CCM_Decryption::output_length(), Botan::ChaCha20Poly1305_Decryption::output_length(), Botan::EAX_Decryption::output_length(), Botan::GCM_Decryption::output_length(), Botan::TPM2::Context::persist(), Botan::TLS::Text_Policy::record_size_limit(), Botan::rfc3394_keyunwrap(), Botan::rfc3394_keywrap(), Botan::round_up(), Botan::Blowfish::salted_set_key(), Botan::Scalar448::Scalar448(), Botan::EC_AffinePoint_Data_BN::serialize_compressed_to(), Botan::EC_AffinePoint_Data_PC::serialize_compressed_to(), Botan::EC_Scalar::serialize_pair_to(), Botan::PCurve::PrimeOrderCurveImpl< C >::serialize_point(), Botan::PCurve::PrimeOrderCurveImpl< C >::serialize_point_compressed(), Botan::PCurve::PrimeOrderCurveImpl< C >::serialize_point_x(), Botan::PCurve::PrimeOrderCurveImpl< C >::serialize_scalar(), Botan::BigInt::serialize_to(), Botan::EC_Scalar_Data_BN::serialize_to(), Botan::EC_Scalar_Data_PC::serialize_to(), Botan::EC_AffinePoint_Data_BN::serialize_uncompressed_to(), Botan::EC_AffinePoint_Data_PC::serialize_uncompressed_to(), Botan::EC_AffinePoint_Data_BN::serialize_x_to(), Botan::EC_AffinePoint_Data_PC::serialize_x_to(), Botan::EC_AffinePoint_Data_BN::serialize_xy_to(), Botan::EC_AffinePoint_Data_PC::serialize_xy_to(), Botan::EC_AffinePoint_Data_BN::serialize_y_to(), Botan::EC_AffinePoint_Data_PC::serialize_y_to(), Botan::TLS::Session::Session(), Botan::TLS::Session::Session(), Botan::TLS::Session::Session(), Botan::CCM_Mode::set_associated_data_n(), Botan::ChaCha20Poly1305_Mode::set_associated_data_n(), Botan::EAX_Mode::set_associated_data_n(), Botan::GCM_Mode::set_associated_data_n(), Botan::OCB_Mode::set_associated_data_n(), Botan::TLS::TLS_CBC_HMAC_AEAD_Mode::set_associated_data_n(), Botan::EC_Group_Data::set_oid(), Botan::TLS::Record_Layer::set_record_size_limits(), Botan::Threefish_512::set_tweak(), Botan::LMOTS_Private_Key::sign(), Botan::LMS_PrivateKey::sign_and_get_pk(), Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey(), Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey(), Botan::SphincsPlus_PublicKey::SphincsPlus_PublicKey(), Botan::sqrt_modulo_prime(), Botan::srp6_client_agree(), Botan::DilithiumMessageHash::start(), Botan::GHASH::start(), Botan::SRP6_Server_Session::step1(), Botan::TOTP::TOTP(), Botan::X448_PrivateKey::X448_PrivateKey(), Botan::X448_PublicKey::X448_PublicKey(), Botan::XMSS_PrivateKey::XMSS_PrivateKey(), Botan::XMSS_PublicKey::XMSS_PublicKey(), Botan::xor_buf(), Botan::xor_buf(), and Botan::xor_buf().
#define BOTAN_ASSERT | ( | expr, | |
assertion_made ) |
Make an assertion
Definition at line 50 of file assert.h.
Referenced by Botan::Output_Buffers::add(), Botan::ranges::assert_exact_byte_length(), Botan::TLS::TLS_CBC_HMAC_AEAD_Mode::assoc_data_with_len(), Botan::bigint_add2_nc(), Botan::bigint_cnd_add(), Botan::bigint_cnd_sub(), Botan::bigint_sqr(), Botan::bigint_sub2(), Botan::bigint_sub2_rev(), Botan::bigint_sub3(), Botan::Cascade_Cipher::Cascade_Cipher(), Botan::TLS::Channel_Impl_12::change_cipher_spec_reader(), Botan::TLS::Channel_Impl_12::change_cipher_spec_writer(), Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::Kyber_Expanded_Keypair_Codec::decode_keypair(), Botan::PK_Decryptor::decrypt_or_random(), Botan::CRYSTALS::detail::dot_product(), Botan::polyn_gf2m::eea_with_coefficients(), Botan::TLS::Session_Manager::establish(), Botan::TLS::Session_Manager_Stateless::establish(), Botan::TPM2::Context::evict(), Botan::TLS::Session_Manager_Hybrid::find_some(), Botan::Stream_Compression::finish(), Botan::TLS::Channel_Impl_12::from_peer(), Botan::TLS::Channel_Impl_13::from_peer(), Botan::XMSS_Address::get_chain_address(), Botan::XMSS_Address::get_hash_address(), Botan::XMSS_Address::get_ltree_address(), Botan::XMSS_Address::get_ots_address(), Botan::XMSS_Address::get_tree_height(), Botan::XMSS_Address::get_tree_index(), Botan::SP800_108_Counter::kdf(), Botan::SP800_108_Feedback::kdf(), Botan::SP800_108_Pipeline::kdf(), Botan::EC_Point_Base_Point_Precompute::mul(), Botan::FrodoMatrix::mul_add_as_plus_e(), Botan::FrodoMatrix::mul_add_sa_plus_e(), Botan::FrodoMatrix::mul_add_sb_plus_e(), Botan::TLS::Datagram_Sequence_Numbers::next_write_sequence(), Botan::GHASH::nonce_hash(), Botan::CRYSTALS::PolynomialVector< Trait, D >::operator+=(), Botan::CRYSTALS::PolynomialVector< Trait, D >::operator-=(), Botan::OCB_Decryption::output_length(), Botan::SIV_Decryption::output_length(), Botan::Kyber_Algos::polynomial_from_message(), Botan::TLS::Record_Layer::prepare_records(), Botan::XMSS_Common_Ops::randomize_tree_hash(), Botan::TLS::Record_Size_Limit::Record_Size_Limit(), Botan::redc_p192(), Botan::redc_p224(), Botan::redc_p256(), Botan::redc_p384(), Botan::Stateful_RNG::reseed_check(), Botan::TLS::Session_Manager_Hybrid::retrieve_one(), Botan::Kyber_Algos::sample_matrix(), Botan::TLS::Server_Key_Exchange::Server_Key_Exchange(), Botan::XMSS_Address::set_chain_address(), Botan::XMSS_Address::set_hash_address(), Botan::XMSS_Address::set_key_mask_mode(), Botan::XMSS_Address::set_layer_addr(), Botan::XMSS_Address::set_ltree_address(), Botan::XMSS_Address::set_ots_address(), Botan::XMSS_Address::set_tree_addr(), Botan::XMSS_Address::set_tree_height(), Botan::XMSS_Address::set_tree_index(), Botan::sign_message(), Botan::treehash(), Botan::Cipher_Mode::update(), Botan::Stream_Compression::update(), Botan::TLS::write_record(), Botan::XMSS_Address::XMSS_Address(), Botan::XMSS_Hash::XMSS_Hash(), and Botan::XMSS_WOTS_Parameters::XMSS_WOTS_Parameters().
#define BOTAN_ASSERT_EQUAL | ( | expr1, | |
expr2, | |||
assertion_made ) |
Assert that value1 == value2
Definition at line 68 of file assert.h.
Referenced by Botan::base_encode_to_string(), Botan::PK_Ops::KEM_Decryption_with_KDF::kem_decrypt(), Botan::PK_Ops::KEM_Encryption_with_KDF::kem_encrypt(), Botan::ASN1::maybe_BER(), Botan::PBKDF::pbkdf_iterations(), Botan::TPM2::Context::persist(), and Botan::redc_p521().
#define BOTAN_ASSERT_IMPLICATION | ( | expr1, | |
expr2, | |||
msg ) |
Assert that expr1 (if true) implies expr2 is also true
Definition at line 77 of file assert.h.
Referenced by Botan::copy_mem(), Botan::TLS::Session_Manager_Hybrid::establish(), and Botan::TLS::Channel_Impl_12::from_peer().
#define BOTAN_ASSERT_NOMSG | ( | expr | ) |
Make an assertion
Definition at line 59 of file assert.h.
Referenced by Botan::FrodoMatrix::add(), Botan::EC_Point::add_affine(), Botan::TLS::Cipher_State::advance_with_client_finished(), Botan::TLS::Cipher_State::advance_with_client_hello(), Botan::TLS::Cipher_State::advance_with_server_finished(), Botan::TLS::Cipher_State::advance_with_server_hello(), Botan::TLS::Connection_Cipher_State::aead_nonce(), Botan::TLS::Connection_Cipher_State::aead_nonce(), Botan::AlignmentBuffer< T, BLOCK_SIZE, FINAL_BLOCK_STRATEGY >::aligned_data_to_process(), Botan::Memory_Pool::allocate(), Botan::AlignmentBuffer< T, BLOCK_SIZE, FINAL_BLOCK_STRATEGY >::append(), Botan::TPM2::as_span(), Botan::TLS::Server_Hello_13::basic_validation(), botan_cipher_update(), Botan::buffer_insert(), Botan::buffer_insert(), Botan::TLS::PSK::calculate_binders(), Botan::TLS::Certificate_13::Certificate_13(), Botan::TLS::Certificate_13::Certificate_13(), Botan::TLS::Certificate_Verify_13::Certificate_Verify_13(), Botan::PKIX::check_chain(), Botan::X448_PrivateKey::check_key(), Botan::TLS::Client_Impl_12::Client_Impl_12(), Botan::Kyber_Algos::compress_ciphertext(), Botan::MD4::compress_n(), Botan::compute_root(), Botan::compute_root(), Botan::TLS::Connection_Cipher_State::Connection_Cipher_State(), Botan::FrodoMatrix::constant_time_compare(), Botan::AlignmentBuffer< T, BLOCK_SIZE, FINAL_BLOCK_STRATEGY >::consume(), Botan::detail::copy_out_any_word_aligned_portion(), Botan::TLS::Server_Hello_13::create(), Botan::create_aes_row_generator(), Botan::X509::create_self_signed_cert(), Botan::create_shake_row_generator(), Botan::TPM2::PrivateKey::create_transient_from_template(), Botan::cSHAKE_XOF::cSHAKE_XOF(), Botan::BigInt::ct_shift_left(), Botan::Kyber_KEM_Decryptor::decapsulate(), Botan::ML_KEM_Decryptor::decapsulate(), Botan::BigInt::decode(), Botan::OID::decode_from(), Botan::Kyber_Expanded_Keypair_Codec::decode_keypair(), Botan::ML_KEM_Expanding_Keypair_Codec::decode_keypair(), Botan::Kyber_Algos::decode_polynomial_vector(), Botan::Dilithium_Algos::decode_public_key(), Botan::ZFEC::decode_shares(), Botan::Dilithium_Algos::decode_signature(), Botan::Kyber_Algos::decompress_ciphertext(), Botan::FrodoMatrix::deserialize(), Botan::Dilithium_PublicKeyInternal::Dilithium_PublicKeyInternal(), Botan::AlignmentBuffer< T, BLOCK_SIZE, FINAL_BLOCK_STRATEGY >::directly_modify_first(), Botan::AlignmentBuffer< T, BLOCK_SIZE, FINAL_BLOCK_STRATEGY >::directly_modify_last(), Botan::TLS::New_Session_Ticket_13::early_data_byte_limit(), Botan::TLS::PSK::empty(), Botan::FrodoMatrix::encode(), Botan::ASN1_String::encode_into(), Botan::CCM_Mode::encode_length(), Botan::Kyber_Algos::encode_polynomial_vector(), Botan::Dilithium_Algos::encode_public_key(), Botan::TLS::Session::encrypt(), Botan::TLS::Cipher_State::export_key(), Botan::TLS::Session_Manager::find(), Botan::TLS::Cipher_State::finished_mac(), Botan::fors_public_key_from_signature(), Botan::fors_sign_and_pkgen(), Botan::FrodoKEM_PrivateKey::FrodoKEM_PrivateKey(), Botan::FrodoKEM_PublicKey::FrodoKEM_PublicKey(), Botan::PSS_Params::from_emsa_name(), Botan::Sphincs_Hash_Functions::H_msg(), Botan::ht_sign(), Botan::ht_verify(), Botan::inverse_mod(), Botan::TLS::Cipher_State::is_compatible_with(), Botan::KDF2::kdf(), Botan::X942_PRF::kdf(), Botan::keccak_absorb_padded_strings_encoding(), Botan::keccak_int_left_encode(), Botan::keccak_int_right_encode(), Botan::PK_Ops::KEM_Encryption_with_KDF::kem_encrypt(), Botan::BLAKE2b::key_schedule(), Botan::TLS::Hybrid_KEM_PublicKey::load_for_group(), Botan::Montgomery_Int::Montgomery_Int(), Botan::Montgomery_Int::Montgomery_Int(), Botan::Montgomery_Int::Montgomery_Int(), Botan::EC_Point_Var_Point_Precompute::mul(), Botan::AlignmentBuffer< T, BLOCK_SIZE, FINAL_BLOCK_STRATEGY >::next_aligned_block_to_process(), Botan::TLS::Handshake_Layer::next_message(), Botan::RFC6979_Nonce_Generator::nonce_for(), Botan::operator<(), Botan::CRYSTALS::Polynomial< Trait, D >::operator=(), Botan::FrodoMatrix::pack(), Botan::FrodoMatrix::packed_size(), Botan::passes_miller_rabin_test(), Botan::pbkdf2(), Botan::TPM2::Context::persist(), Botan::TLS::Record_Layer::prepare_records(), Botan::Ed448_PrivateKey::private_key_bits(), Botan::TLS::Cipher_State::psk(), Botan::TLS::Cipher_State::psk_binder_mac(), Botan::TPM2::PrivateKey::raw_private_key_bits(), Botan::TLS::Transcript_Hash_State::recreate_after_hello_retry_request(), Botan::redc_p192(), Botan::redc_p224(), Botan::redc_p256(), Botan::redc_p384(), Botan::TLS::Channel_Impl::request_downgrade_for_resumption(), Botan::TLS::Channel_Impl_12::reset_active_association_state(), Botan::TLS::Client_Hello_13::retry(), Botan::Sqlite3_Database::rows_changed_by_last_statement(), Botan::Salsa20::salsa_core(), Botan::FrodoMatrix::sample(), Botan::CTR_BE::seek(), Botan::TLS::Certificate_Type_Base::selected_certificate_type(), Botan::TLS::Server_Hello_13::selected_version(), Botan::Filter::send(), Botan::TLS::Record_Header::sequence(), Botan::TLS::Certificate_Type_Base::serialize(), Botan::TLS::Certificate_Verify::serialize(), Botan::TLS::PSK_Key_Exchange_Modes::serialize(), Botan::TLS::Supported_Versions::serialize(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::SHAKE_XOF::SHAKE_XOF(), Botan::HSS_LMS_PrivateKeyInternal::sign(), Botan::LMOTS_Private_Key::sign(), Botan::TPM2::Signature_Operation::sign(), Botan::LMS_PrivateKey::sign_and_get_pk(), Botan::TLS::Certificate_Request_13::signature_schemes(), Botan::Sphincs_Hash_Functions_Sha2::Sphincs_Hash_Functions_Sha2(), Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey(), Botan::sqrt_modulo_prime(), Botan::srp6_client_agree(), Botan::TLS::Session_Manager_In_Memory::store(), Botan::string_to_ipv4(), Botan::FrodoMatrix::sub(), Botan::TLS::Extensions::take(), Botan::TLS::Callbacks::tls_deserialize_peer_public_key(), Botan::TLS::Callbacks::tls_generate_ephemeral_key(), Botan::HSS_LMS_PrivateKeyInternal::to_bytes(), Botan::BigInt::to_dec_string(), Botan::treehash(), Botan::treehash(), Botan::TLS::Record_Header::type(), Botan::FrodoMatrix::unpack(), Botan::TLS::Cipher_State::update_read_keys(), Botan::TLS::Cipher_State::update_write_keys(), Botan::TLS::Certificate_Type_Base::validate_selection(), Botan::vartime_divide(), Botan::TPM2::Context::vendor(), Botan::TLS::Certificate_Verify_13::verify(), Botan::TLS::Cipher_State::verify_peer_finished_mac(), Botan::TLS::Record_Header::version(), Botan::wots_sign_and_pkgen(), and Botan::xmss_sign_and_pkgen().
#define BOTAN_ASSERT_NONNULL | ( | ptr | ) |
Assert that a pointer is not null
Definition at line 86 of file assert.h.
Referenced by Botan::TPM2::Object::_public_info(), Botan::TLS::Connection_Cipher_State::aead(), Botan::TPM2::Session::authenticated_session(), Botan::TLS::Certificate_13::Certificate_Entry::Certificate_Entry(), Botan::TLS::Certificate_Verify_12::Certificate_Verify_12(), Botan::TLS::Channel_Impl_12::Channel_Impl_12(), Botan::TLS::Channel_Impl_13::Channel_Impl_13(), Botan::TLS::Client_Hello::Client_Hello(), Botan::TLS::Client_Impl_12::Client_Impl_12(), Botan::TPM2::PrivateKey::create_transient_from_template(), Botan::TLS::Cipher_State::decrypt_output_length(), Botan::TLS::Cipher_State::decrypt_record_fragment(), Botan::DLIES_Decryptor::DLIES_Decryptor(), Botan::DLIES_Encryptor::DLIES_Encryptor(), Botan::EC_AffinePoint_Data_BN::EC_AffinePoint_Data_BN(), Botan::TPM2::enable_crypto_callbacks(), Botan::Kyber_Expanded_Keypair_Codec::encode_keypair(), Botan::ML_DSA_Expanding_Keypair_Codec::encode_keypair(), Botan::ML_KEM_Expanding_Keypair_Codec::encode_keypair(), Botan::TLS::Cipher_State::encrypt_output_length(), Botan::TLS::Cipher_State::encrypt_record_fragment(), Botan::TPM2::Context::evict(), Botan::TPM2::HashFunction::final_with_ticket(), Botan::TLS::Certificate_Status_Request::get_ocsp_response(), Botan::TLS::Cipher_State::hash_algorithm(), Botan::TLS::Client_Hello_13::highest_supported_version(), Botan::HMAC_DRBG::HMAC_DRBG(), Botan::HMAC_DRBG::HMAC_DRBG(), Botan::HMAC_DRBG::HMAC_DRBG(), Botan::HMAC_DRBG::HMAC_DRBG(), Botan::KMAC::KMAC(), Botan::TPM2::PrivateKey::load_transient(), Botan::TPM2::PublicKey::load_transient(), Botan::TLS::TLS_CBC_HMAC_AEAD_Mode::mac(), Botan::TLS::Cipher_State::minimum_decryption_input_length(), Botan::TPM2::Object::Object(), Botan::CBC_Mode::padding(), Botan::EC_Group_Data::pcurve(), Botan::TLS::Certificate_13::Certificate_Entry::public_key(), Botan::TPM2::RandomNumberGenerator::RandomNumberGenerator(), Botan::TLS::Certificate_Status_Request::serialize(), Botan::TLS::Server_Impl_12::Server_Impl_12(), Botan::TLS::Server_Key_Exchange::server_kex_key(), Botan::TLS::Session_Manager::Session_Manager(), Botan::TLS::Session_Manager_Hybrid::Session_Manager_Hybrid(), Botan::TLS::Session_Manager_Stateless::Session_Manager_Stateless(), Botan::TPM2::Signature_Operation::sign(), Botan::TPM2::Signature_Operation_Base< PKOpT >::Signature_Operation_Base(), Botan::TLS::PSK::take_selected_psk_info(), Botan::TLS::Callbacks::tls_ephemeral_key_agreement(), Botan::TLS::Callbacks::tls_kem_encapsulate(), Botan::Truncated_Hash::Truncated_Hash(), Botan::TPM2::Session::unauthenticated_session(), and Botan::TLS::Channel_Impl_13::update_traffic_keys().
#define BOTAN_ASSERT_UNREACHABLE | ( | ) |
Definition at line 137 of file assert.h.
Referenced by Botan::Sphincs_Hash_Functions::create(), Botan::Sphincs_Parameters::create(), Botan::Kyber_PrivateKey::create_kem_decryption_op(), Botan::Kyber_PublicKey::create_kem_encryption_op(), Botan::Dilithium_Algos::decompose(), Botan::TPM2::Context::find_free_persistent_handle(), Botan::Sphincs_Parameters::hash_name(), Botan::GeneralName::name(), Botan::Kyber_Algos::sample_polynomial_from_cbd(), Botan::DilithiumMode::to_string(), Botan::FrodoKEMMode::to_string(), Botan::KyberMode::to_string(), and Botan::GeneralName::type().
#define BOTAN_DEBUG_ASSERT | ( | expr | ) |
Definition at line 98 of file assert.h.
Referenced by Botan::SolinasAccum< W, N >::accum(), Botan::EC_Point::add_affine(), Botan::ANSI_X923_Padding::add_padding(), Botan::ESP_Padding::add_padding(), Botan::OneAndZeros_Padding::add_padding(), Botan::PKCS7_Padding::add_padding(), Botan::bigint_cmp(), Botan::bigint_mod_sub(), Botan::bigint_mod_sub_n(), botan_cipher_update(), Botan::CRYSTALS::Polynomial< Trait, D >::clone(), Botan::Kyber_Algos::compress(), Botan::create_aes_row_generator(), Botan::BigInt::ct_shift_left(), Botan::CurveGFp_Repr::curve_mul(), Botan::CurveGFp_Repr::curve_sqr(), Botan::Kyber_Algos::decompress(), Botan::SolinasAccum< W, N >::final_carry(), Botan::gcd(), Botan::generate_rsa_prime(), Botan::Dilithium_Algos::infinity_norm_within_bound(), Botan::inverse_mod(), Botan::Dilithium_Algos::make_hint(), Botan::BigInt::mod_add(), Botan::BigInt::mod_mul(), Botan::BigInt::mod_sub(), Botan::EC_Point::mul(), Botan::EC_Point_Base_Point_Precompute::mul(), Botan::Montgomery_Params::mul(), Botan::Montgomery_Params::mul(), Botan::Montgomery_Params::mul_by(), Botan::Montgomery_Params::mul_by(), Botan::RFC6979_Nonce_Generator::nonce_for(), Botan::CRYSTALS::operator+(), Botan::operator<(), Botan::CRYSTALS::pack(), Botan::CRYSTALS::Trait_Base< ConstantsT, DerivedT >::poly_in_polyvec(), Botan::CRYSTALS::Polynomial< Trait, D >::Polynomial(), Botan::CRYSTALS::Polynomial< Trait, D >::Polynomial(), Botan::CRYSTALS::Trait_Base< ConstantsT, DerivedT >::polys_in_polyvec(), Botan::BigInt::random_integer(), Botan::random_prime(), Botan::redc_p192(), Botan::redc_p224(), Botan::redc_p256(), Botan::redc_p384(), Botan::redc_p521(), Botan::RSA_PrivateKey::RSA_PrivateKey(), Botan::Dilithium_Algos::sample_in_ball(), Botan::Montgomery_Params::sqr(), Botan::Montgomery_Params::square_this(), Botan::Dilithium_Algos::use_hint(), and Botan::vartime_divide().
#define BOTAN_STATE_CHECK | ( | expr | ) |
Definition at line 41 of file assert.h.
Referenced by Botan::EC_PrivateKey::_private_key(), Botan::TPM2::Object::_public_info(), Botan::EC_PublicKey::_public_key(), Botan::TLS::Cipher_State::advance_with_server_hello(), Botan::TLS::Certificate_13::cert_chain(), Botan::TLS::Certificate_13::Certificate_Entry::certificate(), Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::TLS::Client_Hello::cookie_input_data(), Botan::TLS::Server_Hello_13::create(), Botan::TLS::Transcript_Hash_State::current(), Botan::EC_PublicKey::domain(), Botan::TLS::ExternalPSK::extract_master_secret(), Botan::TLS::Session::extract_master_secret(), Botan::TLS::PSK::filter(), Botan::TPM2::HashFunction::final_with_ticket(), Botan::FrodoKEM_PrivateKey::FrodoKEM_PrivateKey(), Botan::TLS::Channel_Impl_13::from_peer(), Botan::TLS::Certificate_Status_Request::get_ocsp_response(), Botan::EC_Group_Data::gk_x_mod_order(), Botan::TLS::Hello_Retry_Request::Hello_Retry_Request(), Botan::TLS::Channel_Impl_13::key_material_export(), Botan::TLS::Certificate_13::leaf(), Botan::BufferStuffer::next(), Botan::BufferStuffer::next(), Botan::TLS::Cipher_State::next_ticket_nonce(), Botan::TPM2::Context::persist(), Botan::TPM2::Object::persistent_handle(), Botan::EC_Group_Data::point_g_mul(), Botan::TLS::Channel_Impl::preserve_client_hello(), Botan::TLS::Channel_Impl::preserve_peer_transcript(), Botan::TLS::Transcript_Hash_State::previous(), Botan::EC_PrivateKey::private_key_bits(), Botan::EC_PrivateKey::private_value(), Botan::TLS::Certificate_13::public_key(), Botan::EC_PublicKey::public_point(), Botan::EC_PrivateKey::raw_private_key_bits(), Botan::TPM2::PrivateKey::raw_private_key_bits(), Botan::TLS::Transcript_Hash_State::recreate_after_hello_retry_request(), Botan::TLS::Channel_Impl::request_downgrade(), Botan::TLS::Channel_Impl::request_downgrade_for_resumption(), Botan::TLS::Client_Hello_13::retry(), Botan::TLS::PSK::select_offered_psk(), Botan::TLS::Channel_Impl_13::AggregatedMessages::send(), Botan::TLS::Server_Impl_13::send_new_session_tickets(), Botan::TLS::PSK::serialize(), Botan::EC_AffinePoint::serialize_compressed_to(), Botan::EC_AffinePoint_Data_BN::serialize_compressed_to(), Botan::EC_AffinePoint_Data_PC::serialize_compressed_to(), Botan::EC_AffinePoint::serialize_uncompressed_to(), Botan::EC_AffinePoint_Data_BN::serialize_uncompressed_to(), Botan::EC_AffinePoint_Data_PC::serialize_uncompressed_to(), Botan::EC_AffinePoint::serialize_x_to(), Botan::EC_AffinePoint_Data_BN::serialize_x_to(), Botan::EC_AffinePoint_Data_PC::serialize_x_to(), Botan::EC_AffinePoint::serialize_xy_to(), Botan::EC_AffinePoint_Data_BN::serialize_xy_to(), Botan::EC_AffinePoint_Data_PC::serialize_xy_to(), Botan::EC_AffinePoint::serialize_y_to(), Botan::EC_AffinePoint_Data_BN::serialize_y_to(), Botan::EC_AffinePoint_Data_PC::serialize_y_to(), Botan::Cert_Extension::TNAuthList::Entry::service_provider_code(), Botan::TLS::Transcript_Hash_State::set_algorithm(), Botan::TLS::Channel_Impl::set_io_buffer_size(), Botan::EC_Group_Data::set_oid(), Botan::TLS::Application_Layer_Protocol_Notification::single_protocol(), Botan::DilithiumMessageHash::start(), Botan::TLS::Internal::Handshake_State_13_Base::store(), Botan::BufferSlicer::take(), Botan::BufferSlicer::take(), Botan::TLS::PSK::take_selected_psk_info(), Botan::TLS::PSK::take_session_to_resume_or_psk(), Botan::Cert_Extension::TNAuthList::Entry::telephone_number(), Botan::Cert_Extension::TNAuthList::Entry::telephone_number_range(), Botan::TLS::Transcript_Hash_State::truncated(), Botan::TLS::Client_Hello_12::update_hello_cookie(), Botan::TLS::Channel_Impl_13::update_traffic_keys(), Botan::TPM2::Context::use_botan_crypto_backend(), Botan::TLS::PSK::validate_binder(), and Botan::CT::Option< T >::value().
#define BOTAN_UNUSED Botan::ignore_params |
Definition at line 118 of file assert.h.
Referenced by Botan::OS::allocate_locked_pages(), Botan::PKCS8::BER_encode(), Botan::PKCS8::BER_encode_encrypted_pbkdf_iter(), Botan::PKCS8::BER_encode_encrypted_pbkdf_msec(), Botan::bigint_mod_sub(), Botan::bigint_mod_sub_n(), Botan::CPUID::bit_from_string(), botan_bcrypt_generate(), botan_bcrypt_is_valid(), botan_fpe_decrypt(), botan_fpe_destroy(), botan_fpe_encrypt(), botan_fpe_fe1_init(), botan_hotp_check(), botan_hotp_destroy(), botan_hotp_generate(), botan_hotp_init(), botan_mceies_decrypt(), botan_mceies_encrypt(), botan_nist_kw_dec(), botan_nist_kw_enc(), botan_pkcs_hash_id(), botan_privkey_create_dsa(), botan_privkey_create_elgamal(), botan_privkey_ed25519_get_privkey(), botan_privkey_ed448_get_privkey(), botan_privkey_load(), botan_privkey_load_dh(), botan_privkey_load_dsa(), botan_privkey_load_ecdh(), botan_privkey_load_ecdsa(), botan_privkey_load_ed25519(), botan_privkey_load_ed448(), botan_privkey_load_elgamal(), botan_privkey_load_frodokem(), botan_privkey_load_kyber(), botan_privkey_load_ml_dsa(), botan_privkey_load_ml_kem(), botan_privkey_load_rsa(), botan_privkey_load_rsa_pkcs1(), botan_privkey_load_slh_dsa(), botan_privkey_load_sm2(), botan_privkey_load_x25519(), botan_privkey_load_x448(), botan_privkey_rsa_get_privkey(), botan_privkey_view_kyber_raw_key(), botan_privkey_x25519_get_privkey(), botan_privkey_x448_get_privkey(), botan_pubkey_ecc_key_used_explicit_encoding(), botan_pubkey_ed25519_get_pubkey(), botan_pubkey_ed448_get_pubkey(), botan_pubkey_load_dh(), botan_pubkey_load_dsa(), botan_pubkey_load_ecdh(), botan_pubkey_load_ecdsa(), botan_pubkey_load_ed25519(), botan_pubkey_load_ed448(), botan_pubkey_load_elgamal(), botan_pubkey_load_frodokem(), botan_pubkey_load_kyber(), botan_pubkey_load_ml_dsa(), botan_pubkey_load_ml_kem(), botan_pubkey_load_rsa(), botan_pubkey_load_slh_dsa(), botan_pubkey_load_sm2(), botan_pubkey_load_x25519(), botan_pubkey_load_x448(), botan_pubkey_view_ec_public_point(), botan_pubkey_view_kyber_raw_key(), botan_pubkey_x25519_get_pubkey(), botan_pubkey_x448_get_pubkey(), botan_srp6_client_agree(), botan_srp6_generate_verifier(), botan_srp6_group_size(), botan_srp6_server_session_init(), botan_srp6_server_session_step1(), botan_srp6_server_session_step2(), botan_totp_check(), botan_totp_destroy(), botan_totp_generate(), botan_totp_init(), botan_tpm2_ctx_destroy(), botan_tpm2_ctx_enable_crypto_backend(), botan_tpm2_ctx_init(), botan_tpm2_ctx_init_ex(), botan_tpm2_rng_init(), botan_tpm2_session_destroy(), botan_tpm2_unauthenticated_session_init(), botan_x509_cert_allowed_usage(), botan_x509_cert_destroy(), botan_x509_cert_dup(), botan_x509_cert_get_authority_key_id(), botan_x509_cert_get_fingerprint(), botan_x509_cert_get_issuer_dn(), botan_x509_cert_get_public_key(), botan_x509_cert_get_serial_number(), botan_x509_cert_get_subject_dn(), botan_x509_cert_get_subject_key_id(), botan_x509_cert_get_time_expires(), botan_x509_cert_get_time_starts(), botan_x509_cert_hostname_match(), botan_x509_cert_load(), botan_x509_cert_not_after(), botan_x509_cert_not_before(), botan_x509_cert_verify(), botan_x509_cert_verify_with_crl(), botan_x509_cert_view_as_string(), botan_x509_cert_view_public_key_bits(), botan_x509_crl_destroy(), botan_x509_crl_load(), botan_x509_is_revoked(), botan_zfec_decode(), botan_zfec_encode(), Botan::TLS::Connection_Cipher_State::Connection_Cipher_State(), Botan::AEAD_Mode::create(), Botan::BlockCipher::create(), Botan::Compression_Algorithm::create(), Botan::Decompression_Algorithm::create(), Botan::Entropy_Source::create(), Botan::KDF::create(), Botan::MessageAuthenticationCode::create(), Botan::PasswordHashFamily::create(), Botan::PBKDF::create(), Botan::StreamCipher::create(), Botan::TPM2::RSA_PrivateKey::create_decryption_op(), Botan::create_ec_private_key(), Botan::SM2_PublicKey::create_encryption_op(), Botan::TPM2::RSA_PublicKey::create_encryption_op(), Botan::FrodoKEM_PrivateKey::create_kem_decryption_op(), Botan::Kyber_PrivateKey::create_kem_decryption_op(), Botan::create_private_key(), Botan::Dilithium_PrivateKey::create_signature_op(), Botan::HSS_LMS_PrivateKey::create_signature_op(), Botan::SphincsPlus_PrivateKey::create_signature_op(), Botan::TPM2::EC_PrivateKey::create_signature_op(), Botan::TPM2::RSA_PrivateKey::create_signature_op(), Botan::TPM2::EC_PublicKey::create_verification_op(), Botan::TPM2::RSA_PublicKey::create_verification_op(), Botan::Sodium::crypto_aead_chacha20poly1305_decrypt(), Botan::Sodium::crypto_aead_chacha20poly1305_decrypt_detached(), Botan::Sodium::crypto_aead_chacha20poly1305_encrypt(), Botan::Sodium::crypto_aead_chacha20poly1305_encrypt_detached(), Botan::Sodium::crypto_aead_chacha20poly1305_ietf_decrypt(), Botan::Sodium::crypto_aead_chacha20poly1305_ietf_decrypt_detached(), Botan::Sodium::crypto_aead_chacha20poly1305_ietf_encrypt(), Botan::Sodium::crypto_aead_chacha20poly1305_ietf_encrypt_detached(), Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_decrypt(), Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_decrypt_detached(), Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_encrypt(), Botan::Sodium::crypto_aead_xchacha20poly1305_ietf_encrypt_detached(), Botan::PasswordHash::derive_key(), Botan::TPM2::enable_crypto_callbacks(), Botan::TLS::Session_Manager::establish(), Botan::Certificate_Store_MacOS::find_cert_by_raw_subject_dn_sha256(), Botan::Certificate_Store_Windows::find_cert_by_raw_subject_dn_sha256(), Botan::Certificate_Store_MacOS::find_crl_for(), Botan::Certificate_Store_Windows::find_crl_for(), Botan::Flatfile_Certificate_Store::find_crl_for(), Botan::TLS::Session_Manager_In_Memory::find_some(), Botan::OS::get_auxval(), Botan::get_files_recursive(), Botan::OS::get_memory_locking_limit(), Botan::detail::is_native(), Botan::detail::is_opposite(), Botan::SP800_56C_One_Step_Hash::kdf(), Botan::BigInt::mod_add(), Botan::EC_AffinePoint_Data_PC::mul(), Botan::TLS::Ciphersuite::nonce_bytes_from_record(), Botan::OS::open_socket(), Botan::OS::open_socket_udp(), Botan::OS::page_allow_access(), Botan::OS::page_named(), Botan::OS::page_prohibit_access(), Botan::PK_KEM_Encryptor::PK_KEM_Encryptor(), Botan::CT::poison(), Botan::probe_provider_private_key(), Botan::redc_p192(), Botan::redc_p224(), Botan::redc_p256(), Botan::redc_p384(), Botan::OS::run_cpu_instruction_probe(), Botan::TLS::Server_Key_Exchange::Server_Key_Exchange(), Botan::TPM2::Signature_Operation::sign(), Botan::MessageAuthenticationCode::start_msg(), Botan::OS::system_page_size(), Botan::TLS::Callbacks::tls_log_debug(), Botan::TLS::Callbacks::tls_log_debug_bin(), Botan::TLS::Callbacks::tls_log_error(), Botan::TLS::Callbacks::tls_provide_cert_status(), Botan::TLS::Callbacks::tls_session_established(), Botan::TLS::Callbacks::tls_ssl_key_log_data(), Botan::TLS::Callbacks::tls_verify_raw_public_key(), Botan::CPUID::to_string(), Botan::Scrypt_Family::tune(), Botan::CT::unpoison(), Botan::TPM2::Context::use_botan_crypto_backend(), Botan::TLS::Certificate_Verify_12::verify(), Botan::TLS::Certificate_Verify_13::verify(), and Botan::TLS::Server_Key_Exchange::verify().