/third_party/node/deps/openssl/openssl/crypto/rsa/ |
H A D | rsa_sign.c | 277 size_t encoded_len = 0; in RSA_sign() local 297 encoded_len = SSL_SIG_LENGTH; in RSA_sign() 300 if (!encode_pkcs1(&tmps, &encoded_len, type, m, m_len)) in RSA_sign() 305 if (encoded_len + RSA_PKCS1_PADDING_SIZE > (size_t)RSA_size(rsa)) { in RSA_sign() 309 encrypt_len = RSA_private_encrypt((int)encoded_len, encoded, sigret, rsa, in RSA_sign() 318 OPENSSL_clear_free(tmps, encoded_len); in RSA_sign() 336 size_t decrypt_len, encoded_len = 0; in ossl_rsa_verify() local 425 if (!encode_pkcs1(&encoded, &encoded_len, type, m, m_len)) in ossl_rsa_verify() 428 if (encoded_len != decrypt_len in ossl_rsa_verify() 429 || memcmp(encoded, decrypt_buf, encoded_len) ! in ossl_rsa_verify() [all...] |
/third_party/openssl/crypto/rsa/ |
H A D | rsa_sign.c | 277 size_t encoded_len = 0; in RSA_sign() local 297 encoded_len = SSL_SIG_LENGTH; in RSA_sign() 300 if (!encode_pkcs1(&tmps, &encoded_len, type, m, m_len)) in RSA_sign() 305 if (encoded_len + RSA_PKCS1_PADDING_SIZE > (size_t)RSA_size(rsa)) { in RSA_sign() 309 encrypt_len = RSA_private_encrypt((int)encoded_len, encoded, sigret, rsa, in RSA_sign() 318 OPENSSL_clear_free(tmps, encoded_len); in RSA_sign() 336 size_t decrypt_len, encoded_len = 0; in ossl_rsa_verify() local 425 if (!encode_pkcs1(&encoded, &encoded_len, type, m, m_len)) in ossl_rsa_verify() 428 if (encoded_len != decrypt_len in ossl_rsa_verify() 429 || memcmp(encoded, decrypt_buf, encoded_len) ! in ossl_rsa_verify() [all...] |
/third_party/eudev/src/shared/ |
H A D | utf8.c | 148 int encoded_len, val; in utf8_is_printable_newline() local 150 encoded_len = utf8_encoded_valid_unichar((const char *) p); in utf8_is_printable_newline() 151 if (encoded_len < 0 || in utf8_is_printable_newline() 152 (size_t) encoded_len > length) in utf8_is_printable_newline() 161 length -= encoded_len; in utf8_is_printable_newline() 162 p += encoded_len; in utf8_is_printable_newline()
|
/third_party/rust/crates/regex/src/ |
H A D | utf8.rs | 160 let encoded_len = given_cp.encode_utf8(&mut tmp).len(); in prop_roundtrip() 161 let (got_cp, got_len) = decode_utf8(&tmp[..encoded_len]).unwrap(); in prop_roundtrip() 162 encoded_len == got_len && given_cp == got_cp in prop_roundtrip() 171 let encoded_len = given_cp.encode_utf8(&mut tmp).len(); in prop_roundtrip_last() 173 decode_last_utf8(&tmp[..encoded_len]).unwrap(); in prop_roundtrip_last() 174 encoded_len == got_len && given_cp == got_cp in prop_roundtrip_last()
|
/third_party/node/deps/openssl/openssl/crypto/dsa/ |
H A D | dsa_sign.c | 82 size_t encoded_len; in i2d_DSA_SIG() local 100 || !WPACKET_get_total_written(&pkt, &encoded_len) in i2d_DSA_SIG() 113 *ppout += encoded_len; in i2d_DSA_SIG() 117 return (int)encoded_len; in i2d_DSA_SIG()
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | evp_pkey.c | 72 int encoded_len; in EVP_PKCS82PKEY_ex() local 77 if ((encoded_len = i2d_PKCS8_PRIV_KEY_INFO(p8, &encoded_data)) <= 0 in EVP_PKCS82PKEY_ex() 82 len = encoded_len; in EVP_PKCS82PKEY_ex() 91 OPENSSL_clear_free(encoded_data, encoded_len); in EVP_PKCS82PKEY_ex()
|
/third_party/openssl/crypto/dsa/ |
H A D | dsa_sign.c | 82 size_t encoded_len; in i2d_DSA_SIG() local 100 || !WPACKET_get_total_written(&pkt, &encoded_len) in i2d_DSA_SIG() 113 *ppout += encoded_len; in i2d_DSA_SIG() 117 return (int)encoded_len; in i2d_DSA_SIG()
|
/third_party/openssl/crypto/evp/ |
H A D | evp_pkey.c | 72 int encoded_len; in EVP_PKCS82PKEY_ex() local 77 if ((encoded_len = i2d_PKCS8_PRIV_KEY_INFO(p8, &encoded_data)) <= 0 in EVP_PKCS82PKEY_ex() 82 len = encoded_len; in EVP_PKCS82PKEY_ex() 91 OPENSSL_clear_free(encoded_data, encoded_len); in EVP_PKCS82PKEY_ex()
|
/third_party/googletest/googlemock/src/ |
H A D | gmock-internal-utils.cc | 224 size_t encoded_len = encoded.size(); in Base64Unescape() local 225 decoded->reserve(3 * (encoded_len / 4) + (encoded_len % 4)); in Base64Unescape()
|
/third_party/openssl/test/ |
H A D | endecode_test.c | 131 void **encoded, long *encoded_len, 136 void **object, void *encoded, long encoded_len, 159 long encoded_len = 0; in test_encode_decode() local 170 if (!TEST_true(encode_cb(file, line, &encoded, &encoded_len, pkey, selection, in test_encode_decode() 176 encoded_len, output_type, output_structure, in test_encode_decode() 183 if (!TEST_true(check_cb(file, line, type, encoded, encoded_len)) in test_encode_decode() 184 || !TEST_true(decode_cb(file, line, (void **)&pkey2, encoded, encoded_len, in test_encode_decode() 206 && !test_cb(file, line, encoded, encoded_len, encoded2, encoded2_len)) in test_encode_decode() 212 if (encoded != NULL && encoded_len != 0) in test_encode_decode() 213 dump_cb("|pkey| encoded", encoded, encoded_len); in test_encode_decode() 226 encode_EVP_PKEY_prov(const char *file, const int line, void **encoded, long *encoded_len, void *object, int selection, const char *output_type, const char *output_structure, const char *pass, const char *pcipher) encode_EVP_PKEY_prov() argument 267 decode_EVP_PKEY_prov(const char *file, const int line, void **object, void *encoded, long encoded_len, const char *input_type, const char *structure_type, const char *keytype, int selection, const char *pass) decode_EVP_PKEY_prov() argument 342 encode_EVP_PKEY_legacy_PEM(const char *file, const int line, void **encoded, long *encoded_len, void *object, ossl_unused int selection, ossl_unused const char *output_type, ossl_unused const char *output_structure, const char *pass, const char *pcipher) encode_EVP_PKEY_legacy_PEM() argument 382 encode_EVP_PKEY_MSBLOB(const char *file, const int line, void **encoded, long *encoded_len, void *object, int selection, ossl_unused const char *output_type, ossl_unused const char *output_structure, ossl_unused const char *pass, ossl_unused const char *pcipher) encode_EVP_PKEY_MSBLOB() argument 427 encode_EVP_PKEY_PVK(const char *file, const int line, void **encoded, long *encoded_len, void *object, int selection, ossl_unused const char *output_type, ossl_unused const char *output_structure, const char *pass, ossl_unused const char *pcipher) encode_EVP_PKEY_PVK() argument [all...] |
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | encrypt.rs | 212 /// let encoded_len = encrypter.encrypt(&input, &mut encoded).unwrap(); 215 /// let encoded = &encoded[..encoded_len]; 502 let encoded_len = encrypter.encrypt(&input, &mut encoded).unwrap(); in rsa_encrypt_decrypt() 503 let encoded = &encoded[..encoded_len]; in rsa_encrypt_decrypt() 531 let encoded_len = encrypter.encrypt(&input, &mut encoded).unwrap(); in rsa_encrypt_decrypt_with_sha256() 532 let encoded = &encoded[..encoded_len]; in rsa_encrypt_decrypt_with_sha256() 559 let encoded_len = encrypter.encrypt(&input, &mut encoded).unwrap(); in rsa_encrypt_decrypt_oaep_label() 560 let encoded = &encoded[..encoded_len]; in rsa_encrypt_decrypt_oaep_label()
|
H A D | base64.rs | 17 let len = encoded_len(src_len).unwrap(); in encode_block() 20 // SAFETY: `encoded_len` ensures space for 4 output characters in encode_block() 75 fn encoded_len(src_len: LenType) -> Option<LenType> { in encoded_len() functions
|
/third_party/mbedtls/library/ |
H A D | oid.c | 1050 size_t encoded_len; in mbedtls_oid_from_numeric_string() local 1144 encoded_len = (size_t) (out_ptr - oid->p); in mbedtls_oid_from_numeric_string() 1145 resized_mem = mbedtls_calloc(encoded_len, 1); in mbedtls_oid_from_numeric_string() 1150 memcpy(resized_mem, oid->p, encoded_len); in mbedtls_oid_from_numeric_string() 1153 oid->len = encoded_len; in mbedtls_oid_from_numeric_string()
|
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ec_asn1.c | 1250 size_t encoded_len; in i2d_ECDSA_SIG() local 1268 || !WPACKET_get_total_written(&pkt, &encoded_len) in i2d_ECDSA_SIG() 1281 *ppout += encoded_len; in i2d_ECDSA_SIG() 1285 return (int)encoded_len; in i2d_ECDSA_SIG()
|
/third_party/openssl/crypto/ec/ |
H A D | ec_asn1.c | 1250 size_t encoded_len; in i2d_ECDSA_SIG() local 1268 || !WPACKET_get_total_written(&pkt, &encoded_len) in i2d_ECDSA_SIG() 1281 *ppout += encoded_len; in i2d_ECDSA_SIG() 1285 return (int)encoded_len; in i2d_ECDSA_SIG()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | config_file.c | 301 size_t encoded_len = 0, len; in wpa_config_read_blob() local 313 nencoded = os_realloc(encoded, encoded_len + len); in wpa_config_read_blob() 321 os_memcpy(encoded + encoded_len, pos, len); in wpa_config_read_blob() 322 encoded_len += len; in wpa_config_read_blob() 338 blob->data = base64_decode(encoded, encoded_len, &blob->len); in wpa_config_read_blob()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | config_file.c | 255 size_t encoded_len = 0, len; in wpa_config_read_blob() local 267 nencoded = os_realloc(encoded, encoded_len + len); in wpa_config_read_blob() 275 os_memcpy(encoded + encoded_len, pos, len); in wpa_config_read_blob() 276 encoded_len += len; in wpa_config_read_blob() 292 blob->data = base64_decode(encoded, encoded_len, &blob->len); in wpa_config_read_blob()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | wps_er.c | 901 size_t encoded_len; in wps_er_soap_hdr() local 906 &encoded_len); in wps_er_soap_hdr() 911 encoded_len = 0; in wps_er_soap_hdr() 914 buf = wpabuf_alloc(1000 + encoded_len); in wps_er_soap_hdr()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | wps_er.c | 901 size_t encoded_len; in wps_er_soap_hdr() local 906 &encoded_len); in wps_er_soap_hdr() 911 encoded_len = 0; in wps_er_soap_hdr() 914 buf = wpabuf_alloc(1000 + encoded_len); in wps_er_soap_hdr()
|