Home
last modified time | relevance | path

Searched refs:computed_mac (Results 1 – 25 of 73) sorted by relevance

123

/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/
H A Daead_chacha20poly1305.c180 unsigned char computed_mac[crypto_aead_chacha20poly1305_ABYTES]; in crypto_aead_chacha20poly1305_decrypt_detached() local
198 crypto_onetimeauth_poly1305_final(&state, computed_mac); in crypto_aead_chacha20poly1305_decrypt_detached()
201 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_decrypt_detached()
202 ret = crypto_verify_16(computed_mac, mac); in crypto_aead_chacha20poly1305_decrypt_detached()
203 sodium_memzero(computed_mac, sizeof computed_mac); in crypto_aead_chacha20poly1305_decrypt_detached()
260 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES]; in crypto_aead_chacha20poly1305_ietf_decrypt_detached() local
282 crypto_onetimeauth_poly1305_final(&state, computed_mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
285 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
286 ret = crypto_verify_16(computed_mac, mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
287 sodium_memzero(computed_mac, sizeof computed_mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
/dports/security/libsodium/libsodium-1.0.18/src/libsodium/crypto_aead/chacha20poly1305/sodium/
H A Daead_chacha20poly1305.c180 unsigned char computed_mac[crypto_aead_chacha20poly1305_ABYTES];
198 crypto_onetimeauth_poly1305_final(&state, computed_mac);
201 COMPILER_ASSERT(sizeof computed_mac == 16U);
202 ret = crypto_verify_16(computed_mac, mac);
203 sodium_memzero(computed_mac, sizeof computed_mac);
260 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES];
282 crypto_onetimeauth_poly1305_final(&state, computed_mac);
285 COMPILER_ASSERT(sizeof computed_mac == 16U);
286 ret = crypto_verify_16(computed_mac, mac);
287 sodium_memzero(computed_mac, sizeof computed_mac);
/dports/security/py-pynacl/PyNaCl-1.4.0/src/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/
H A Daead_chacha20poly1305.c180 unsigned char computed_mac[crypto_aead_chacha20poly1305_ABYTES]; in crypto_aead_chacha20poly1305_decrypt_detached() local
198 crypto_onetimeauth_poly1305_final(&state, computed_mac); in crypto_aead_chacha20poly1305_decrypt_detached()
201 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_decrypt_detached()
202 ret = crypto_verify_16(computed_mac, mac); in crypto_aead_chacha20poly1305_decrypt_detached()
203 sodium_memzero(computed_mac, sizeof computed_mac); in crypto_aead_chacha20poly1305_decrypt_detached()
260 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES]; in crypto_aead_chacha20poly1305_ietf_decrypt_detached() local
282 crypto_onetimeauth_poly1305_final(&state, computed_mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
285 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
286 ret = crypto_verify_16(computed_mac, mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
287 sodium_memzero(computed_mac, sizeof computed_mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/
H A Daead_chacha20poly1305.c180 unsigned char computed_mac[crypto_aead_chacha20poly1305_ABYTES]; in crypto_aead_chacha20poly1305_decrypt_detached() local
198 crypto_onetimeauth_poly1305_final(&state, computed_mac); in crypto_aead_chacha20poly1305_decrypt_detached()
201 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_decrypt_detached()
202 ret = crypto_verify_16(computed_mac, mac); in crypto_aead_chacha20poly1305_decrypt_detached()
203 sodium_memzero(computed_mac, sizeof computed_mac); in crypto_aead_chacha20poly1305_decrypt_detached()
260 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES]; in crypto_aead_chacha20poly1305_ietf_decrypt_detached() local
282 crypto_onetimeauth_poly1305_final(&state, computed_mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
285 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
286 ret = crypto_verify_16(computed_mac, mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
287 sodium_memzero(computed_mac, sizeof computed_mac); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/
H A Daead_xchacha20poly1305.c80 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES]; in _decrypt_detached() local
102 crypto_onetimeauth_poly1305_final(&state, computed_mac); in _decrypt_detached()
105 COMPILER_ASSERT(sizeof computed_mac == 16U); in _decrypt_detached()
106 ret = crypto_verify_16(computed_mac, mac); in _decrypt_detached()
107 sodium_memzero(computed_mac, sizeof computed_mac); in _decrypt_detached()
/dports/security/libsodium/libsodium-1.0.18/src/libsodium/crypto_aead/xchacha20poly1305/sodium/
H A Daead_xchacha20poly1305.c80 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES];
102 crypto_onetimeauth_poly1305_final(&state, computed_mac);
105 COMPILER_ASSERT(sizeof computed_mac == 16U);
106 ret = crypto_verify_16(computed_mac, mac);
107 sodium_memzero(computed_mac, sizeof computed_mac);
/dports/security/py-pynacl/PyNaCl-1.4.0/src/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/
H A Daead_xchacha20poly1305.c80 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES]; in _decrypt_detached() local
102 crypto_onetimeauth_poly1305_final(&state, computed_mac); in _decrypt_detached()
105 COMPILER_ASSERT(sizeof computed_mac == 16U); in _decrypt_detached()
106 ret = crypto_verify_16(computed_mac, mac); in _decrypt_detached()
107 sodium_memzero(computed_mac, sizeof computed_mac); in _decrypt_detached()
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/
H A Daead_xchacha20poly1305.c80 unsigned char computed_mac[crypto_aead_chacha20poly1305_ietf_ABYTES]; in _decrypt_detached() local
102 crypto_onetimeauth_poly1305_final(&state, computed_mac); in _decrypt_detached()
105 COMPILER_ASSERT(sizeof computed_mac == 16U); in _decrypt_detached()
106 ret = crypto_verify_16(computed_mac, mac); in _decrypt_detached()
107 sodium_memzero(computed_mac, sizeof computed_mac); in _decrypt_detached()
/dports/security/botan110/Botan-1.10.17/src/filters/modes/eax/
H A Deax_dec.cpp105 SecureVector<byte> computed_mac = cmac->final(); in end_msg() local
107 xor_buf(&computed_mac[0], &nonce_mac[0], TAG_SIZE); in end_msg()
108 xor_buf(&computed_mac[0], &header_mac[0], TAG_SIZE); in end_msg()
110 if(!same_mem(included_mac, &computed_mac[0], TAG_SIZE)) in end_msg()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/wireguard/
H A Dcookie.c126 u8 computed_mac[COOKIE_LEN]; in wg_cookie_validate_packet() local
130 compute_mac1(computed_mac, skb->data, skb->len, in wg_cookie_validate_packet()
132 if (crypto_memneq(computed_mac, macs->mac1, COOKIE_LEN)) in wg_cookie_validate_packet()
142 compute_mac2(computed_mac, skb->data, skb->len, cookie); in wg_cookie_validate_packet()
143 if (crypto_memneq(computed_mac, macs->mac2, COOKIE_LEN)) in wg_cookie_validate_packet()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/wireguard/
H A Dcookie.c126 u8 computed_mac[COOKIE_LEN]; in wg_cookie_validate_packet() local
130 compute_mac1(computed_mac, skb->data, skb->len, in wg_cookie_validate_packet()
132 if (crypto_memneq(computed_mac, macs->mac1, COOKIE_LEN)) in wg_cookie_validate_packet()
142 compute_mac2(computed_mac, skb->data, skb->len, cookie); in wg_cookie_validate_packet()
143 if (crypto_memneq(computed_mac, macs->mac2, COOKIE_LEN)) in wg_cookie_validate_packet()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/wireguard/
H A Dcookie.c126 u8 computed_mac[COOKIE_LEN]; in wg_cookie_validate_packet() local
130 compute_mac1(computed_mac, skb->data, skb->len, in wg_cookie_validate_packet()
132 if (crypto_memneq(computed_mac, macs->mac1, COOKIE_LEN)) in wg_cookie_validate_packet()
142 compute_mac2(computed_mac, skb->data, skb->len, cookie); in wg_cookie_validate_packet()
143 if (crypto_memneq(computed_mac, macs->mac2, COOKIE_LEN)) in wg_cookie_validate_packet()
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/compat/sodium/
H A Dsodium_secretbox.cpp113 secure_vector<uint8_t> computed_mac = poly1305->final(); in crypto_secretbox_open_detached() local
115 if(!constant_time_compare(mac, computed_mac.data(), computed_mac.size())) in crypto_secretbox_open_detached()
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/compat/sodium/
H A Dsodium_secretbox.cpp113 secure_vector<uint8_t> computed_mac = poly1305->final(); in crypto_secretbox_open_detached() local
115 if(!constant_time_compare(mac, computed_mac.data(), computed_mac.size())) in crypto_secretbox_open_detached()
/dports/security/botan2/Botan-2.18.2/src/lib/compat/sodium/
H A Dsodium_secretbox.cpp113 secure_vector<uint8_t> computed_mac = poly1305->final(); in crypto_secretbox_open_detached() local
115 if(!constant_time_compare(mac, computed_mac.data(), computed_mac.size())) in crypto_secretbox_open_detached()
/dports/www/dooble/dooble-2021.12.05/Source/
H A Ddooble_cryptography.cc182 QByteArray computed_mac; in mac_then_decrypt() local
185 computed_mac = hmac(data.mid(dooble_hmac::preferred_output_size_in_bytes())); in mac_then_decrypt()
187 if(!computed_mac.isEmpty() && !mac.isEmpty() && in mac_then_decrypt()
188 dooble_cryptography::memcmp(computed_mac, mac)) in mac_then_decrypt()
/dports/security/botan110/Botan-1.10.17/src/constructs/cryptobox/
H A Dcryptobox.cpp142 byte computed_mac[MAC_OUTPUT_LEN]; in decrypt() local
143 pipe.read(computed_mac, MAC_OUTPUT_LEN, 1); in decrypt()
145 if(!same_mem(computed_mac, in decrypt()
/dports/security/beecrypt/beecrypt-4.2.1/c++/provider/
H A DBeeKeyStore.cxx450 bytearray computed_mac, original_mac; in engineLoad() local
458 computed_mac = m->doFinal(); in engineLoad()
460 if (macsize != computed_mac.size()) in engineLoad()
466 if (computed_mac != original_mac) in engineLoad()
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/misc/cryptobox/
H A Dcryptobox.cpp140 secure_vector<uint8_t> computed_mac = hmac->final(); in decrypt_bin() local
142 if(!constant_time_compare(computed_mac.data(), box_mac, MAC_OUTPUT_LEN)) in decrypt_bin()
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/misc/cryptobox/
H A Dcryptobox.cpp140 secure_vector<uint8_t> computed_mac = hmac->final(); in decrypt_bin() local
142 if(!constant_time_compare(computed_mac.data(), box_mac, MAC_OUTPUT_LEN)) in decrypt_bin()
/dports/security/botan2/Botan-2.18.2/src/lib/misc/cryptobox/
H A Dcryptobox.cpp140 secure_vector<uint8_t> computed_mac = hmac->final(); in decrypt_bin() local
142 if(!constant_time_compare(computed_mac.data(), box_mac, MAC_OUTPUT_LEN)) in decrypt_bin()
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/core/crypto/
H A Donion_ntor_v3.c554 uint8_t computed_mac[DIGEST256_LEN]; in onion_skin_ntor3_server_handshake_part1() local
563 crypto_digest_get_digest(d, (char *)computed_mac, DIGEST256_LEN); in onion_skin_ntor3_server_handshake_part1()
567 problems |= tor_memneq((*state_out)->msg_mac, computed_mac, DIGEST256_LEN); in onion_skin_ntor3_server_handshake_part1()
584 memwipe(computed_mac, 0, sizeof(computed_mac)); in onion_skin_ntor3_server_handshake_part1()
/dports/security/botan110/Botan-1.10.17/src/ssl/
H A Drec_read.cpp249 SecureVector<byte> computed_mac = mac->final(); in get_record() local
251 if(received_mac != computed_mac) in get_record()
/dports/www/joomla3/joomla3-3.9.24/libraries/vendor/paragonie/sodium_compat/src/
H A DCrypto.php114 $computed_mac = $state->finish();
117 if (!ParagonIE_Sodium_Core_Util::verify_16($computed_mac, $mac)) {
245 $computed_mac = $state->finish();
248 if (!ParagonIE_Sodium_Core_Util::verify_16($computed_mac, $mac)) {
H A DCrypto32.php114 $computed_mac = $state->finish();
117 if (!ParagonIE_Sodium_Core32_Util::verify_16($computed_mac, $mac)) {
245 $computed_mac = $state->finish();
248 if (!ParagonIE_Sodium_Core32_Util::verify_16($computed_mac, $mac)) {

123