Searched refs:encoded_len (Results 1 - 11 of 11) sorted by relevance

/freebsd-current/crypto/openssl/crypto/rsa/
H A Drsa_sign.c277 size_t encoded_len = 0; local
297 encoded_len = SSL_SIG_LENGTH;
300 if (!encode_pkcs1(&tmps, &encoded_len, type, m, m_len))
305 if (encoded_len + RSA_PKCS1_PADDING_SIZE > (size_t)RSA_size(rsa)) {
309 encrypt_len = RSA_private_encrypt((int)encoded_len, encoded, sigret, rsa,
318 OPENSSL_clear_free(tmps, encoded_len);
336 size_t decrypt_len, encoded_len = 0; local
425 if (!encode_pkcs1(&encoded, &encoded_len, type, m, m_len))
428 if (encoded_len != decrypt_len
429 || memcmp(encoded, decrypt_buf, encoded_len) !
[all...]
/freebsd-current/contrib/googletest/googlemock/src/
H A Dgmock-internal-utils.cc230 size_t encoded_len = encoded.size(); local
231 decoded->reserve(3 * (encoded_len / 4) + (encoded_len % 4));
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/
H A Dargon2.c208 size_t encoded_len; local
218 encoded_len = strlen(encoded);
219 if (encoded_len > UINT32_MAX) {
222 ctx.adlen = (uint32_t) encoded_len;
223 ctx.saltlen = (uint32_t) encoded_len;
224 ctx.outlen = (uint32_t) encoded_len;
/freebsd-current/crypto/openssl/crypto/dsa/
H A Ddsa_sign.c82 size_t encoded_len; local
100 || !WPACKET_get_total_written(&pkt, &encoded_len)
113 *ppout += encoded_len;
117 return (int)encoded_len;
/freebsd-current/crypto/openssl/crypto/evp/
H A Devp_pkey.c72 int encoded_len; local
77 if ((encoded_len = i2d_PKCS8_PRIV_KEY_INFO(p8, &encoded_data)) <= 0
82 len = encoded_len;
91 OPENSSL_clear_free(encoded_data, encoded_len);
/freebsd-current/crypto/openssl/test/
H A Dendecode_test.c131 void **encoded, long *encoded_len,
136 void **object, void *encoded, long encoded_len,
159 long encoded_len = 0; local
171 if (!TEST_true(encode_cb(file, line, &encoded, &encoded_len, pkey, selection,
177 encoded_len, output_type, output_structure,
184 if (!TEST_true(check_cb(file, line, type, encoded, encoded_len))
185 || !TEST_true(decode_cb(file, line, (void **)&pkey2, encoded, encoded_len,
191 && !TEST_true(decode_cb(file, line, (void **)&pkey3, encoded, encoded_len,
217 && !test_cb(file, line, encoded, encoded_len, encoded2, encoded2_len))
223 if (encoded != NULL && encoded_len !
238 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) argument
279 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) argument
354 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) argument
394 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) argument
439 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) argument
[all...]
/freebsd-current/sys/contrib/openzfs/module/icp/algs/modes/
H A Dccm.c703 encode_adata_len(ulong_t auth_data_len, uint8_t *encoded, size_t *encoded_len) argument
714 *encoded_len = 2;
721 *encoded_len = 6;
737 *encoded_len = 10;
/freebsd-current/crypto/openssl/crypto/ec/
H A Dec_asn1.c1250 size_t encoded_len; local
1268 || !WPACKET_get_total_written(&pkt, &encoded_len)
1281 *ppout += encoded_len;
1285 return (int)encoded_len;
/freebsd-current/contrib/wpa/wpa_supplicant/
H A Dconfig_file.c217 size_t encoded_len = 0, len; local
229 nencoded = os_realloc(encoded, encoded_len + len);
237 os_memcpy(encoded + encoded_len, pos, len);
238 encoded_len += len;
254 blob->data = base64_decode(encoded, encoded_len, &blob->len);
/freebsd-current/contrib/wpa/src/wps/
H A Dwps_er.c901 size_t encoded_len; local
906 &encoded_len);
911 encoded_len = 0;
914 buf = wpabuf_alloc(1000 + encoded_len);
/freebsd-current/crypto/openssh/
H A Dsshkey.c2877 size_t encoded_len; local
2895 encoded_len = sshbuf_len(blob);
2896 if (encoded_len < (MARK_BEGIN_LEN + MARK_END_LEN) ||
2902 encoded_len -= MARK_BEGIN_LEN;
2905 while (encoded_len > 0) {
2911 encoded_len--;
2914 if (encoded_len >= MARK_END_LEN &&
2923 if (encoded_len == 0) {

Completed in 382 milliseconds