Home
last modified time | relevance | path

Searched refs:enc_len (Results 1 – 19 of 19) sorted by relevance

/freebsd/crypto/openssl/test/
H A Devp_skey_test.c123 int enc_len, fin_len; in test_aes_raw_skey() local
156 enc_len = sizeof(encrypted_skey); in test_aes_raw_skey()
160 || !TEST_int_gt(EVP_CipherUpdate(ctx, encrypted_skey, &enc_len, data, DATA_SIZE), 0) in test_aes_raw_skey()
161 || !TEST_int_gt(EVP_CipherFinal(ctx, encrypted_skey + enc_len, &fin_len), 0)) in test_aes_raw_skey()
167 enc_len = sizeof(encrypted_raw); in test_aes_raw_skey()
170 || !TEST_int_gt(EVP_CipherUpdate(ctx, encrypted_raw, &enc_len, data, DATA_SIZE), 0) in test_aes_raw_skey()
171 || !TEST_int_gt(EVP_CipherFinal(ctx, encrypted_raw + enc_len, &fin_len), 0) in test_aes_raw_skey()
201 int enc_len, fin_len; in test_des_raw_skey() local
233 enc_len = sizeof(encrypted_skey); in test_des_raw_skey()
237 || !TEST_int_gt(EVP_CipherUpdate(ctx, encrypted_skey, &enc_len, data, DATA_SIZE), 0) in test_des_raw_skey()
[all …]
H A Dendecode_test.c1326 size_t enc_len = 0; in ec_encode_to_data_multi() local
1331 && TEST_int_eq(OSSL_ENCODER_to_data(ectx, NULL, &enc_len), 1) in ec_encode_to_data_multi()
1332 && TEST_int_eq(OSSL_ENCODER_to_data(ectx, &enc, &enc_len), 1); in ec_encode_to_data_multi()
/freebsd/crypto/openssl/crypto/
H A Dpunycode.c119 int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, in ossl_punycode_decode() argument
130 for (loop = 0; loop < enc_len; loop++) { in ossl_punycode_decode()
149 for (loop = processed_in; loop < enc_len;) { in ossl_punycode_decode()
156 if (loop >= enc_len) in ossl_punycode_decode()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dqat_crypt.c296 crypto_key_t *key, uint64_t crypt, uint32_t enc_len) in qat_crypt() argument
301 Cpa16U nr_bufs = (enc_len >> PAGE_SHIFT) + 2; in qat_crypt()
322 QAT_STAT_INCR(encrypt_total_in_bytes, enc_len); in qat_crypt()
325 QAT_STAT_INCR(decrypt_total_in_bytes, enc_len); in qat_crypt()
374 bytes_left = enc_len; in qat_crypt()
391 bytes_left = enc_len; in qat_crypt()
415 op_data.messageLenToCipherInBytes = enc_len; in qat_crypt()
440 QAT_STAT_INCR(encrypt_total_out_bytes, enc_len); in qat_crypt()
442 QAT_STAT_INCR(decrypt_total_out_bytes, enc_len); in qat_crypt()
H A Dzio_crypt.c497 uint_t enc_len, keydata_len, aad_len; in zio_crypt_key_wrap() local
537 enc_len = zio_crypt_table[crypt].ci_keylen + SHA512_HMAC_KEYLEN; in zio_crypt_key_wrap()
546 ret = zio_do_crypt_uio(B_TRUE, crypt, cwkey, NULL, iv, enc_len, in zio_crypt_key_wrap()
566 uint_t enc_len, keydata_len, aad_len; in zio_crypt_key_unwrap() local
599 enc_len = keydata_len + SHA512_HMAC_KEYLEN; in zio_crypt_key_unwrap()
608 ret = zio_do_crypt_uio(B_FALSE, crypt, cwkey, NULL, iv, enc_len, in zio_crypt_key_unwrap()
1405 zfs_uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, in zio_crypt_init_uios_zil() argument
1575 *enc_len = total_len; in zio_crypt_init_uios_zil()
1600 *enc_len = 0; in zio_crypt_init_uios_zil()
1617 zfs_uio_t *puio, zfs_uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, in zio_crypt_init_uios_dnode() argument
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c433 uint_t enc_len, keydata_len, aad_len; in zio_crypt_key_wrap() local
479 enc_len = zio_crypt_table[crypt].ci_keylen + SHA512_HMAC_KEYLEN; in zio_crypt_key_wrap()
487 iv, enc_len, &cuio, aad_len); in zio_crypt_key_wrap()
513 uint_t enc_len, keydata_len, aad_len; in zio_crypt_key_unwrap() local
555 enc_len = keydata_len + SHA512_HMAC_KEYLEN; in zio_crypt_key_unwrap()
565 iv, enc_len, &cuio, aad_len); in zio_crypt_key_unwrap()
1245 zfs_uio_t *out_uio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, in zio_crypt_init_uios_zil() argument
1400 *enc_len = total_len; in zio_crypt_init_uios_zil()
1415 zfs_uio_t *puio, zfs_uio_t *out_uio, uint_t *enc_len, uint8_t **authbuf, in zio_crypt_init_uios_dnode() argument
1550 *enc_len = total_len; in zio_crypt_init_uios_dnode()
[all …]
/freebsd/crypto/openssl/crypto/ml_dsa/
H A Dml_dsa_encoders.c628 size_t enc_len = key->params->pk_len; in ossl_ml_dsa_pk_encode() local
629 uint8_t *enc = OPENSSL_malloc(enc_len); in ossl_ml_dsa_pk_encode()
635 if (!WPACKET_init_static_len(&pkt, enc, enc_len, 0) in ossl_ml_dsa_pk_encode()
642 || written != enc_len) in ossl_ml_dsa_pk_encode()
713 size_t enc_len = params->sk_len; in ossl_ml_dsa_sk_encode() local
716 uint8_t *enc = OPENSSL_malloc(enc_len); in ossl_ml_dsa_sk_encode()
727 if (!WPACKET_init_static_len(&pkt, enc, enc_len, 0) in ossl_ml_dsa_sk_encode()
742 || written != enc_len) in ossl_ml_dsa_sk_encode()
744 OPENSSL_clear_free(key->priv_encoding, enc_len); in ossl_ml_dsa_sk_encode()
750 OPENSSL_clear_free(enc, enc_len); in ossl_ml_dsa_sk_encode()
/freebsd/crypto/krb5/src/plugins/kdb/lmdb/
H A Dklmdb-int.h51 const void *enc, size_t enc_len,
57 const void *enc, size_t enc_len,
H A Dmarshal.c167 const void *enc, size_t enc_len, krb5_db_entry **entry_out) in klmdb_decode_princ() argument
191 k5_input_init(&in, enc, enc_len); in klmdb_decode_princ()
264 const void *enc, size_t enc_len, osa_policy_ent_t *pol_out) in klmdb_decode_policy() argument
281 k5_input_init(&in, enc, enc_len); in klmdb_decode_policy()
/freebsd/crypto/openssl/crypto/pem/
H A Dpem_info.c138 xi->enc_len = 0; in STACK_OF()
177 xi->enc_len = (int)len; in STACK_OF()
254 if ((xi->enc_data != NULL) && (xi->enc_len > 0)) { in PEM_X509_INFO_write_bio()
263 i = xi->enc_len; in PEM_X509_INFO_write_bio()
/freebsd/contrib/wpa/src/ap/
H A Dwpa_auth_ft.c75 const u8 *enc, size_t enc_len, in wpa_ft_rrb_decrypt() argument
86 wpa_hexdump(MSG_DEBUG, "FT(RRB): encrypted TLVs", enc, enc_len); in wpa_ft_rrb_decrypt()
90 *plain = os_memdup(enc, enc_len); in wpa_ft_rrb_decrypt()
91 if (enc_len > 0 && !*plain) in wpa_ft_rrb_decrypt()
94 *plain_size = enc_len; in wpa_ft_rrb_decrypt()
102 if (enc_len < AES_BLOCK_SIZE) in wpa_ft_rrb_decrypt()
105 *plain = os_zalloc(enc_len - AES_BLOCK_SIZE); in wpa_ft_rrb_decrypt()
109 if (aes_siv_decrypt(key, key_len, enc, enc_len, 3, ad, ad_len, in wpa_ft_rrb_decrypt()
111 if (enc_len < AES_BLOCK_SIZE + 2) in wpa_ft_rrb_decrypt()
117 enc_len -= 2; in wpa_ft_rrb_decrypt()
[all …]
/freebsd/crypto/openssl/crypto/ec/
H A Dec2_oct.c261 size_t field_len, enc_len; in ossl_ec_GF2m_simple_oct2point() local
309 enc_len = (form == POINT_CONVERSION_COMPRESSED) ? 1 + field_len : 1 + 2 * field_len; in ossl_ec_GF2m_simple_oct2point()
311 if (len != enc_len) { in ossl_ec_GF2m_simple_oct2point()
H A Decp_oct.c281 size_t field_len, enc_len; in ossl_ec_GFp_simple_oct2point() local
312 enc_len = (form == POINT_CONVERSION_COMPRESSED) ? 1 + field_len : 1 + 2 * field_len; in ossl_ec_GFp_simple_oct2point()
314 if (len != enc_len) { in ossl_ec_GFp_simple_oct2point()
/freebsd/crypto/openssl/include/crypto/
H A Dpunycode.h18 const size_t enc_len,
/freebsd/crypto/openssl/doc/internal/man3/
H A Dossl_punycode_decode.pod12 int ossl_punycode_decode(const char *pEncoded, const size_t enc_len,
/freebsd/sys/contrib/openzfs/include/sys/
H A Dqat.h184 crypto_key_t *key, uint64_t crypt, uint32_t enc_len);
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c4960 const u8 *enc, size_t enc_len, in hpke_extract_and_expand() argument
4972 if (enc_len > HPKE_MAX_PUB_LEN || pk_rm_len > HPKE_MAX_PUB_LEN) in hpke_extract_and_expand()
4975 os_memcpy(kem_context, enc, enc_len); in hpke_extract_and_expand()
4976 os_memcpy(&kem_context[enc_len], pk_rm, pk_rm_len); in hpke_extract_and_expand()
4981 kem_context, enc_len + pk_rm_len, in hpke_extract_and_expand()
5424 size_t enc_len, ct_len; in hpke_base_seal() local
5440 enc_len = OSSL_HPKE_get_public_encap_size(suite); in hpke_base_seal()
5442 buf = wpabuf_alloc(enc_len + ct_len); in hpke_base_seal()
5455 if (OSSL_HPKE_encap(ctx, wpabuf_put(buf, 0), &enc_len, in hpke_base_seal()
5462 wpabuf_put(buf, enc_len); in hpke_base_seal()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dx509.h.in222 int enc_len; member
H A Dx509.h392 int enc_len; member