Home
last modified time | relevance | path

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

/external/avb/libavb/
Davb_crypto.c330 {.padding = NULL, .padding_len = 0, .hash_len = 0},
333 .padding_len = sizeof(padding_RSA2048_SHA256),
337 .padding_len = sizeof(padding_RSA4096_SHA256),
341 .padding_len = sizeof(padding_RSA8192_SHA256),
345 .padding_len = sizeof(padding_RSA2048_SHA512),
349 .padding_len = sizeof(padding_RSA4096_SHA512),
353 .padding_len = sizeof(padding_RSA8192_SHA512),
Davb_crypto.h109 size_t padding_len; member
Davb_vbmeta_image.c219 algorithm->padding_len); in avb_vbmeta_image_verify()
/external/vboot_reference/firmware/lib/cryptolib/
Drsa.c137 int padding_len; in RSAVerify() local
167 padding_len = padding_size_map[sig_type]; in RSAVerify()
173 if (SafeMemcmp(buf, padding, padding_len)) { in RSAVerify()
179 if (SafeMemcmp(buf + padding_len, hash, sig_len - padding_len)) { in RSAVerify()
/external/boringssl/src/crypto/cipher_extra/
De_ssl3.c211 size_t padding_len = block_size - ((in_len + mac_len) % block_size); in aead_ssl3_seal_scatter() local
212 OPENSSL_memset(padding, 0, padding_len - 1); in aead_ssl3_seal_scatter()
213 padding[padding_len - 1] = padding_len - 1; in aead_ssl3_seal_scatter()
215 (int)padding_len)) { in aead_ssl3_seal_scatter()
De_tls.c203 unsigned padding_len = block_size - ((in_len + mac_len) % block_size); in aead_tls_seal_scatter() local
204 OPENSSL_memset(padding, padding_len - 1, padding_len); in aead_tls_seal_scatter()
206 padding, (int)padding_len)) { in aead_tls_seal_scatter()
/external/syslinux/gpxe/src/net/
Dtls.c1129 size_t padding_len; in tls_assemble_block() local
1140 padding_len = ( ( blocksize - 1 ) & -( iv_len + len + mac_len + 1 ) ); in tls_assemble_block()
1141 *plaintext_len = ( iv_len + len + mac_len + padding_len + 1 ); in tls_assemble_block()
1156 memset ( padding, padding_len, ( padding_len + 1 ) ); in tls_assemble_block()
1317 size_t padding_len; in tls_split_block() local
1332 padding_len = *( ( uint8_t * ) ( plaintext + plaintext_len - 1 ) ); in tls_split_block()
1333 if ( plaintext_len < ( iv_len + mac_len + padding_len + 1 ) ) { in tls_split_block()
1338 content_len = ( plaintext_len - iv_len - mac_len - padding_len - 1 ); in tls_split_block()
1345 for ( i = 0 ; i < padding_len ; i++ ) { in tls_split_block()
1346 if ( *( ( uint8_t * ) ( padding + i ) ) != padding_len ) { in tls_split_block()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c180 size_t padding_len = to_len - 3 - from_len; in RSA_padding_add_PKCS1_type_2() local
181 if (!rand_nonzero(to + 2, padding_len)) { in RSA_padding_add_PKCS1_type_2()
185 to[2 + padding_len] = 0; in RSA_padding_add_PKCS1_type_2()
/external/boringssl/src/ssl/
Dhandshake_server.cc1390 size_t padding_len = decrypt_len - premaster_secret_len; in ssl3_get_client_key_exchange() local
1393 for (size_t i = 2; i < padding_len - 1; i++) { in ssl3_get_client_key_exchange()
1396 good &= constant_time_is_zero_8(decrypt_buf[padding_len - 1]); in ssl3_get_client_key_exchange()
1400 good &= constant_time_eq_8(decrypt_buf[padding_len], in ssl3_get_client_key_exchange()
1402 good &= constant_time_eq_8(decrypt_buf[padding_len + 1], in ssl3_get_client_key_exchange()
1409 good, decrypt_buf[padding_len + i], premaster_secret[i]); in ssl3_get_client_key_exchange()
Dt1_lib.cc2746 size_t padding_len = 0x200 - header_len; in ssl_add_clienthello_tlsext() local
2751 if (padding_len >= 4 + 1) { in ssl_add_clienthello_tlsext()
2752 padding_len -= 4; in ssl_add_clienthello_tlsext()
2754 padding_len = 1; in ssl_add_clienthello_tlsext()
2759 !CBB_add_u16(&extensions, padding_len) || in ssl_add_clienthello_tlsext()
2760 !CBB_add_space(&extensions, &padding_bytes, padding_len)) { in ssl_add_clienthello_tlsext()
2765 OPENSSL_memset(padding_bytes, 0, padding_len); in ssl_add_clienthello_tlsext()
Dhandshake_client.cc1817 size_t padding_len = 32 - ((ssl->s3->next_proto_negotiated_len + 2) % 32); in ssl3_send_next_proto() local
1825 !CBB_add_bytes(&child, kZero, padding_len) || in ssl3_send_next_proto()
/external/avb/libavb_atx/
Davb_atx_validate.c100 algorithm_data->padding_len)) { in verify_certificate()