Home
last modified time | relevance | path

Searched refs:padding_len (Results 1 – 8 of 8) sorted by relevance

/third_party/openssl/crypto/modes/
Dwrap128.c196 const size_t padding_len = padded_len - inlen; in CRYPTO_128_wrap_pad() local
224 memset(out + 8 + inlen, 0, padding_len); in CRYPTO_128_wrap_pad()
229 memset(out + inlen, 0, padding_len); /* Section 4.1 step 1 */ in CRYPTO_128_wrap_pad()
259 size_t padding_len; in CRYPTO_128_unwrap_pad() local
323 padding_len = padded_len - ptext_len; in CRYPTO_128_unwrap_pad()
324 if (CRYPTO_memcmp(out + ptext_len, zeros, padding_len) != 0) { in CRYPTO_128_unwrap_pad()
/third_party/mbedtls/library/
Dcipher.c775 size_t padding_len = output_len - data_len; in add_pkcs_padding() local
778 for( i = 0; i < padding_len; i++ ) in add_pkcs_padding()
779 output[data_len + i] = (unsigned char) padding_len; in add_pkcs_padding()
786 unsigned char padding_len, bad = 0; in get_pkcs_padding() local
791 padding_len = input[input_len - 1]; in get_pkcs_padding()
792 *data_len = input_len - padding_len; in get_pkcs_padding()
795 bad |= padding_len > input_len; in get_pkcs_padding()
796 bad |= padding_len == 0; in get_pkcs_padding()
800 pad_idx = input_len - padding_len; in get_pkcs_padding()
802 bad |= ( input[i] ^ padding_len ) * ( i >= pad_idx ); in get_pkcs_padding()
[all …]
Dpk_wrap.c506 size_t unpadded_len, padding_len; in extract_ecdsa_sig_int() local
523 padding_len = to_len - unpadded_len; in extract_ecdsa_sig_int()
524 memset( to, 0x00, padding_len ); in extract_ecdsa_sig_int()
525 memcpy( to + padding_len, *from, unpadded_len ); in extract_ecdsa_sig_int()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_output.c2067 uint16_t *padding_len, uint16_t *chunk_len) in sctp_add_addresses_to_i_ia() argument
2179 (padding_len != NULL) && in sctp_add_addresses_to_i_ia()
2180 (*padding_len > 0)) { in sctp_add_addresses_to_i_ia()
2181 memset(mtod(m_at, caddr_t) + *chunk_len, 0, *padding_len); in sctp_add_addresses_to_i_ia()
2182 SCTP_BUF_LEN(m_at) += *padding_len; in sctp_add_addresses_to_i_ia()
2183 *chunk_len += *padding_len; in sctp_add_addresses_to_i_ia()
2184 *padding_len = 0; in sctp_add_addresses_to_i_ia()
2257 (padding_len != NULL) && in sctp_add_addresses_to_i_ia()
2258 (*padding_len > 0)) { in sctp_add_addresses_to_i_ia()
2259 memset(mtod(m_at, caddr_t) + *chunk_len, 0, *padding_len); in sctp_add_addresses_to_i_ia()
[all …]
Dsctp_output.h54 uint16_t *padding_len, uint16_t *chunk_len);
Dsctputil.c3530 int notifhdr_len, chk_len, chkhdr_len, padding_len, payload_len; in sctp_notify_send_failed() local
3560 padding_len = 0; in sctp_notify_send_failed()
3568 padding_len = chk->send_size - chk_len; in sctp_notify_send_failed()
3569 payload_len = chk->send_size - chkhdr_len - padding_len; in sctp_notify_send_failed()
3613 if (chk->send_size == chkhdr_len + payload_len + padding_len) { in sctp_notify_send_failed()
3615 m_adj(chk->data, -padding_len); in sctp_notify_send_failed()
3617 chk->send_size -= (chkhdr_len + padding_len); in sctp_notify_send_failed()
/third_party/openssl/ssl/statem/
Dstatem_srvr.c3003 size_t j, padding_len; in tls_process_cke_rsa() local
3089 padding_len = decrypt_len - SSL_MAX_MASTER_KEY_LENGTH; in tls_process_cke_rsa()
3092 for (j = 2; j < padding_len - 1; j++) { in tls_process_cke_rsa()
3095 decrypt_good &= constant_time_is_zero_8(rsa_decrypt[padding_len - 1]); in tls_process_cke_rsa()
3106 constant_time_eq_8(rsa_decrypt[padding_len], in tls_process_cke_rsa()
3109 constant_time_eq_8(rsa_decrypt[padding_len + 1], in tls_process_cke_rsa()
3123 workaround_good = constant_time_eq_8(rsa_decrypt[padding_len], in tls_process_cke_rsa()
3126 constant_time_eq_8(rsa_decrypt[padding_len + 1], in tls_process_cke_rsa()
3144 rsa_decrypt[padding_len + j] = in tls_process_cke_rsa()
3146 rsa_decrypt[padding_len + j], in tls_process_cke_rsa()
[all …]
Dstatem_clnt.c3637 size_t len, padding_len; in tls_construct_next_proto() local
3641 padding_len = 32 - ((len + 2) % 32); in tls_construct_next_proto()
3644 || !WPACKET_sub_allocate_bytes_u8(pkt, padding_len, &padding)) { in tls_construct_next_proto()
3650 memset(padding, 0, padding_len); in tls_construct_next_proto()