Searched refs:pad_len (Results 1 – 5 of 5) sorted by relevance
/openbsd/regress/lib/libcrypto/rsa/ |
H A D | rsa_padding_test.c | 133 int pad_len; in test_pkcs1_type1() local 148 pad_len = RSA_padding_check_PKCS1_type_1(out, sizeof(out) - 1, in test_pkcs1_type1() 150 if (pad_len != sizeof(in)) { in test_pkcs1_type1() 163 pad_len = RSA_padding_check_PKCS1_type_1(out, sizeof(out) - 1, in test_pkcs1_type1() 166 if (pad_len != pt->want) { in test_pkcs1_type1() 168 "PKCS1 type 1 padding (%d != %d)\n", i, pad_len, in test_pkcs1_type1() 269 int pad_len; in test_pkcs1_type2() local 284 pad_len = RSA_padding_check_PKCS1_type_2(out, sizeof(out) - 1, in test_pkcs1_type2() 286 if (pad_len != sizeof(in)) { in test_pkcs1_type2() 302 if (pad_len != pt->want) { in test_pkcs1_type2() [all …]
|
/openbsd/lib/libssl/ |
H A D | ssl_packet.c | 78 size_t data_len, pad_len, len; in ssl_convert_sslv2_client_hello() local 167 pad_len = SSL3_RANDOM_SIZE - len; in ssl_convert_sslv2_client_hello() 168 if (!CBB_add_space(&cbb, &pad, pad_len)) in ssl_convert_sslv2_client_hello() 170 memset(pad, 0, pad_len); in ssl_convert_sslv2_client_hello()
|
H A D | tls12_record_layer.c | 1178 size_t block_size, eiv_len, mac_len, pad_len; in tls12_record_layer_seal_record_protected_cipher() local 1216 pad_len = block_size - (plain_len % block_size); in tls12_record_layer_seal_record_protected_cipher() 1217 pad_val = pad_len - 1; in tls12_record_layer_seal_record_protected_cipher() 1219 if (pad_len > 255) in tls12_record_layer_seal_record_protected_cipher() 1221 if (!CBB_add_space(&cbb, &pad, pad_len)) in tls12_record_layer_seal_record_protected_cipher() 1223 memset(pad, pad_val, pad_len); in tls12_record_layer_seal_record_protected_cipher()
|
/openbsd/lib/libcrypto/evp/ |
H A D | e_chacha20poly1305.c | 108 size_t pad_len; in poly1305_pad16() local 111 if ((pad_len = data_len % 16) == 0) in poly1305_pad16() 114 CRYPTO_poly1305_update(poly1305, zero_pad16, 16 - pad_len); in poly1305_pad16()
|
/openbsd/gnu/usr.bin/perl/cpan/perlfaq/lib/ |
H A D | perlfaq4.pod | 988 place of C<$pad_len> if you know the pad length in advance. 994 C<$pad_len>. 997 my $padded = sprintf("%${pad_len}s", $text); 998 my $padded = sprintf("%*s", $pad_len, $text); # same thing 1001 my $padded = sprintf("%-${pad_len}s", $text); 1002 my $padded = sprintf("%-*s", $pad_len, $text); # same thing 1005 my $padded = sprintf("%0${pad_len}d", $num); 1006 my $padded = sprintf("%0*d", $pad_len, $num); # same thing 1009 my $padded = pack("A$pad_len",$text); 1018 my $padded = $pad_char x ( $pad_len - length( $text ) ) . $text; [all …]
|