@scriptc/runtime 0.0.0 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/package.json +16 -6
- package/src/scr_array.c +488 -0
- package/src/scr_assert.c +1393 -0
- package/src/scr_async.c +2593 -0
- package/src/scr_async_dyn.c +607 -0
- package/src/scr_bytes.c +1425 -0
- package/src/scr_bytes_io.c +161 -0
- package/src/scr_child.c +3587 -0
- package/src/scr_closure.c +214 -0
- package/src/scr_console.c +143 -0
- package/src/scr_cycle.c +218 -0
- package/src/scr_dc.c +805 -0
- package/src/scr_dgram.c +1007 -0
- package/src/scr_dyn_handle.c +154 -0
- package/src/scr_dyn_invoke.c +644 -0
- package/src/scr_error.c +332 -0
- package/src/scr_events.c +714 -0
- package/src/scr_events_emitter.c +699 -0
- package/src/scr_exception.c +242 -0
- package/src/scr_fetch.c +1130 -0
- package/src/scr_fetch_curl.c +654 -0
- package/src/scr_http.c +3482 -0
- package/src/scr_http2.c +3030 -0
- package/src/scr_inspect.c +803 -0
- package/src/scr_inspect_island.c +51 -0
- package/src/scr_island.c +9363 -0
- package/src/scr_json.c +2151 -0
- package/src/scr_lib.c +3612 -0
- package/src/scr_loop_epoll.c +241 -0
- package/src/scr_loop_kqueue.c +121 -0
- package/src/scr_loop_wsapoll.c +208 -0
- package/src/scr_map.c +591 -0
- package/src/scr_net.c +3017 -0
- package/src/scr_net_island.c +458 -0
- package/src/scr_number.c +115 -0
- package/src/scr_object.c +25 -0
- package/src/scr_path.c +1266 -0
- package/src/scr_platform.h +119 -0
- package/src/scr_readline.c +287 -0
- package/src/scr_regex.c +1080 -0
- package/src/scr_runtime.h +5046 -0
- package/src/scr_stream.c +2877 -0
- package/src/scr_string.c +1264 -0
- package/src/scr_symbol.c +132 -0
- package/src/scr_test.c +662 -0
- package/src/scr_tls.c +1520 -0
- package/src/scr_union.c +105 -0
- package/src/scr_url.c +911 -0
- package/src/scr_url_internal.h +29 -0
- package/src/scr_url_params.c +561 -0
- package/src/scr_watch.c +568 -0
- package/src/scr_web.c +1778 -0
- package/src/scr_win.c +76 -0
- package/src/scr_zlib.c +197 -0
- package/src/scr_zlib_island.c +15 -0
- package/vendor/README.md +52 -0
- package/vendor/curl/COPYRIGHT +534 -0
- package/vendor/curl/include/curl/curl.h +3214 -0
- package/vendor/curl/include/curl/curlver.h +79 -0
- package/vendor/curl/include/curl/easy.h +125 -0
- package/vendor/curl/include/curl/header.h +74 -0
- package/vendor/curl/include/curl/mprintf.h +52 -0
- package/vendor/curl/include/curl/multi.h +460 -0
- package/vendor/curl/include/curl/options.h +70 -0
- package/vendor/curl/include/curl/stdcheaders.h +35 -0
- package/vendor/curl/include/curl/system.h +508 -0
- package/vendor/curl/include/curl/typecheck-gcc.h +716 -0
- package/vendor/curl/include/curl/urlapi.h +149 -0
- package/vendor/curl/include/curl/websockets.h +84 -0
- package/vendor/mbedtls/LICENSE +553 -0
- package/vendor/mbedtls/include/CMakeLists.txt +22 -0
- package/vendor/mbedtls/include/mbedtls/aes.h +631 -0
- package/vendor/mbedtls/include/mbedtls/aria.h +343 -0
- package/vendor/mbedtls/include/mbedtls/asn1.h +642 -0
- package/vendor/mbedtls/include/mbedtls/asn1write.h +390 -0
- package/vendor/mbedtls/include/mbedtls/base64.h +82 -0
- package/vendor/mbedtls/include/mbedtls/bignum.h +1088 -0
- package/vendor/mbedtls/include/mbedtls/block_cipher.h +76 -0
- package/vendor/mbedtls/include/mbedtls/build_info.h +194 -0
- package/vendor/mbedtls/include/mbedtls/camellia.h +305 -0
- package/vendor/mbedtls/include/mbedtls/ccm.h +526 -0
- package/vendor/mbedtls/include/mbedtls/chacha20.h +209 -0
- package/vendor/mbedtls/include/mbedtls/chachapoly.h +351 -0
- package/vendor/mbedtls/include/mbedtls/check_config.h +1149 -0
- package/vendor/mbedtls/include/mbedtls/cipher.h +1250 -0
- package/vendor/mbedtls/include/mbedtls/cmac.h +246 -0
- package/vendor/mbedtls/include/mbedtls/compat-2.x.h +46 -0
- package/vendor/mbedtls/include/mbedtls/config_adjust_legacy_crypto.h +578 -0
- package/vendor/mbedtls/include/mbedtls/config_adjust_legacy_from_psa.h +873 -0
- package/vendor/mbedtls/include/mbedtls/config_adjust_psa_from_legacy.h +359 -0
- package/vendor/mbedtls/include/mbedtls/config_adjust_psa_superset_legacy.h +145 -0
- package/vendor/mbedtls/include/mbedtls/config_adjust_ssl.h +91 -0
- package/vendor/mbedtls/include/mbedtls/config_adjust_x509.h +35 -0
- package/vendor/mbedtls/include/mbedtls/config_psa.h +61 -0
- package/vendor/mbedtls/include/mbedtls/constant_time.h +36 -0
- package/vendor/mbedtls/include/mbedtls/ctr_drbg.h +596 -0
- package/vendor/mbedtls/include/mbedtls/debug.h +156 -0
- package/vendor/mbedtls/include/mbedtls/des.h +385 -0
- package/vendor/mbedtls/include/mbedtls/dhm.h +972 -0
- package/vendor/mbedtls/include/mbedtls/ecdh.h +455 -0
- package/vendor/mbedtls/include/mbedtls/ecdsa.h +674 -0
- package/vendor/mbedtls/include/mbedtls/ecjpake.h +298 -0
- package/vendor/mbedtls/include/mbedtls/ecp.h +1517 -0
- package/vendor/mbedtls/include/mbedtls/entropy.h +274 -0
- package/vendor/mbedtls/include/mbedtls/error.h +201 -0
- package/vendor/mbedtls/include/mbedtls/gcm.h +387 -0
- package/vendor/mbedtls/include/mbedtls/hkdf.h +124 -0
- package/vendor/mbedtls/include/mbedtls/hmac_drbg.h +434 -0
- package/vendor/mbedtls/include/mbedtls/lms.h +440 -0
- package/vendor/mbedtls/include/mbedtls/mbedtls_config.h +4446 -0
- package/vendor/mbedtls/include/mbedtls/md.h +526 -0
- package/vendor/mbedtls/include/mbedtls/md5.h +190 -0
- package/vendor/mbedtls/include/mbedtls/memory_buffer_alloc.h +142 -0
- package/vendor/mbedtls/include/mbedtls/net_sockets.h +299 -0
- package/vendor/mbedtls/include/mbedtls/nist_kw.h +166 -0
- package/vendor/mbedtls/include/mbedtls/oid.h +727 -0
- package/vendor/mbedtls/include/mbedtls/pem.h +160 -0
- package/vendor/mbedtls/include/mbedtls/pk.h +1303 -0
- package/vendor/mbedtls/include/mbedtls/pkcs12.h +186 -0
- package/vendor/mbedtls/include/mbedtls/pkcs5.h +198 -0
- package/vendor/mbedtls/include/mbedtls/pkcs7.h +252 -0
- package/vendor/mbedtls/include/mbedtls/platform.h +516 -0
- package/vendor/mbedtls/include/mbedtls/platform_time.h +79 -0
- package/vendor/mbedtls/include/mbedtls/platform_util.h +247 -0
- package/vendor/mbedtls/include/mbedtls/poly1305.h +168 -0
- package/vendor/mbedtls/include/mbedtls/private_access.h +20 -0
- package/vendor/mbedtls/include/mbedtls/psa_util.h +207 -0
- package/vendor/mbedtls/include/mbedtls/ripemd160.h +136 -0
- package/vendor/mbedtls/include/mbedtls/rsa.h +1170 -0
- package/vendor/mbedtls/include/mbedtls/sha1.h +219 -0
- package/vendor/mbedtls/include/mbedtls/sha256.h +200 -0
- package/vendor/mbedtls/include/mbedtls/sha3.h +172 -0
- package/vendor/mbedtls/include/mbedtls/sha512.h +208 -0
- package/vendor/mbedtls/include/mbedtls/ssl.h +5887 -0
- package/vendor/mbedtls/include/mbedtls/ssl_cache.h +187 -0
- package/vendor/mbedtls/include/mbedtls/ssl_ciphersuites.h +482 -0
- package/vendor/mbedtls/include/mbedtls/ssl_cookie.h +106 -0
- package/vendor/mbedtls/include/mbedtls/ssl_ticket.h +199 -0
- package/vendor/mbedtls/include/mbedtls/threading.h +167 -0
- package/vendor/mbedtls/include/mbedtls/timing.h +94 -0
- package/vendor/mbedtls/include/mbedtls/version.h +78 -0
- package/vendor/mbedtls/include/mbedtls/x509.h +500 -0
- package/vendor/mbedtls/include/mbedtls/x509_crl.h +184 -0
- package/vendor/mbedtls/include/mbedtls/x509_crt.h +1208 -0
- package/vendor/mbedtls/include/mbedtls/x509_csr.h +382 -0
- package/vendor/mbedtls/include/psa/build_info.h +20 -0
- package/vendor/mbedtls/include/psa/crypto.h +4998 -0
- package/vendor/mbedtls/include/psa/crypto_adjust_auto_enabled.h +31 -0
- package/vendor/mbedtls/include/psa/crypto_adjust_config_dependencies.h +51 -0
- package/vendor/mbedtls/include/psa/crypto_adjust_config_key_pair_types.h +101 -0
- package/vendor/mbedtls/include/psa/crypto_adjust_config_synonyms.h +49 -0
- package/vendor/mbedtls/include/psa/crypto_builtin_composites.h +214 -0
- package/vendor/mbedtls/include/psa/crypto_builtin_key_derivation.h +118 -0
- package/vendor/mbedtls/include/psa/crypto_builtin_primitives.h +114 -0
- package/vendor/mbedtls/include/psa/crypto_compat.h +230 -0
- package/vendor/mbedtls/include/psa/crypto_config.h +145 -0
- package/vendor/mbedtls/include/psa/crypto_driver_common.h +44 -0
- package/vendor/mbedtls/include/psa/crypto_driver_contexts_composites.h +151 -0
- package/vendor/mbedtls/include/psa/crypto_driver_contexts_key_derivation.h +52 -0
- package/vendor/mbedtls/include/psa/crypto_driver_contexts_primitives.h +105 -0
- package/vendor/mbedtls/include/psa/crypto_extra.h +2145 -0
- package/vendor/mbedtls/include/psa/crypto_legacy.h +88 -0
- package/vendor/mbedtls/include/psa/crypto_platform.h +102 -0
- package/vendor/mbedtls/include/psa/crypto_se_driver.h +1383 -0
- package/vendor/mbedtls/include/psa/crypto_sizes.h +1319 -0
- package/vendor/mbedtls/include/psa/crypto_struct.h +527 -0
- package/vendor/mbedtls/include/psa/crypto_types.h +508 -0
- package/vendor/mbedtls/include/psa/crypto_values.h +2782 -0
- package/vendor/mbedtls/library/aes.c +2294 -0
- package/vendor/mbedtls/library/aesce.c +624 -0
- package/vendor/mbedtls/library/aesce.h +136 -0
- package/vendor/mbedtls/library/aesni.c +846 -0
- package/vendor/mbedtls/library/aesni.h +162 -0
- package/vendor/mbedtls/library/alignment.h +704 -0
- package/vendor/mbedtls/library/aria.c +969 -0
- package/vendor/mbedtls/library/asn1parse.c +468 -0
- package/vendor/mbedtls/library/asn1write.c +440 -0
- package/vendor/mbedtls/library/base64.c +322 -0
- package/vendor/mbedtls/library/base64_internal.h +45 -0
- package/vendor/mbedtls/library/bignum.c +2583 -0
- package/vendor/mbedtls/library/bignum_core.c +1240 -0
- package/vendor/mbedtls/library/bignum_core.h +872 -0
- package/vendor/mbedtls/library/bignum_core_invasive.h +38 -0
- package/vendor/mbedtls/library/bignum_internal.h +122 -0
- package/vendor/mbedtls/library/bignum_mod.c +394 -0
- package/vendor/mbedtls/library/bignum_mod.h +452 -0
- package/vendor/mbedtls/library/bignum_mod_raw.c +276 -0
- package/vendor/mbedtls/library/bignum_mod_raw.h +416 -0
- package/vendor/mbedtls/library/bignum_mod_raw_invasive.h +34 -0
- package/vendor/mbedtls/library/block_cipher.c +207 -0
- package/vendor/mbedtls/library/block_cipher_internal.h +99 -0
- package/vendor/mbedtls/library/bn_mul.h +1094 -0
- package/vendor/mbedtls/library/camellia.c +1058 -0
- package/vendor/mbedtls/library/ccm.c +777 -0
- package/vendor/mbedtls/library/chacha20.c +563 -0
- package/vendor/mbedtls/library/chacha20_internal.h +23 -0
- package/vendor/mbedtls/library/chachapoly.c +487 -0
- package/vendor/mbedtls/library/check_crypto_config.h +136 -0
- package/vendor/mbedtls/library/cipher.c +1712 -0
- package/vendor/mbedtls/library/cipher_invasive.h +28 -0
- package/vendor/mbedtls/library/cipher_wrap.c +2482 -0
- package/vendor/mbedtls/library/cipher_wrap.h +178 -0
- package/vendor/mbedtls/library/cmac.c +1067 -0
- package/vendor/mbedtls/library/common.h +487 -0
- package/vendor/mbedtls/library/constant_time.c +247 -0
- package/vendor/mbedtls/library/constant_time_impl.h +541 -0
- package/vendor/mbedtls/library/constant_time_internal.h +579 -0
- package/vendor/mbedtls/library/ctr.h +35 -0
- package/vendor/mbedtls/library/ctr_drbg.c +1016 -0
- package/vendor/mbedtls/library/debug.c +475 -0
- package/vendor/mbedtls/library/debug_internal.h +185 -0
- package/vendor/mbedtls/library/des.c +1042 -0
- package/vendor/mbedtls/library/dhm.c +700 -0
- package/vendor/mbedtls/library/ecdh.c +696 -0
- package/vendor/mbedtls/library/ecdsa.c +858 -0
- package/vendor/mbedtls/library/ecjpake.c +1216 -0
- package/vendor/mbedtls/library/ecp.c +3674 -0
- package/vendor/mbedtls/library/ecp_curves.c +6125 -0
- package/vendor/mbedtls/library/ecp_curves_new.c +9 -0
- package/vendor/mbedtls/library/ecp_internal_alt.h +287 -0
- package/vendor/mbedtls/library/ecp_invasive.h +305 -0
- package/vendor/mbedtls/library/entropy.c +680 -0
- package/vendor/mbedtls/library/entropy_poll.c +233 -0
- package/vendor/mbedtls/library/entropy_poll.h +64 -0
- package/vendor/mbedtls/library/error.c +878 -0
- package/vendor/mbedtls/library/gcm.c +1330 -0
- package/vendor/mbedtls/library/hkdf.c +161 -0
- package/vendor/mbedtls/library/hmac_drbg.c +633 -0
- package/vendor/mbedtls/library/lmots.c +789 -0
- package/vendor/mbedtls/library/lmots.h +288 -0
- package/vendor/mbedtls/library/lms.c +778 -0
- package/vendor/mbedtls/library/md.c +1108 -0
- package/vendor/mbedtls/library/md5.c +426 -0
- package/vendor/mbedtls/library/md_psa.h +26 -0
- package/vendor/mbedtls/library/md_wrap.h +46 -0
- package/vendor/mbedtls/library/memory_buffer_alloc.c +751 -0
- package/vendor/mbedtls/library/mps_common.h +181 -0
- package/vendor/mbedtls/library/mps_error.h +89 -0
- package/vendor/mbedtls/library/mps_reader.c +538 -0
- package/vendor/mbedtls/library/mps_reader.h +366 -0
- package/vendor/mbedtls/library/mps_trace.c +112 -0
- package/vendor/mbedtls/library/mps_trace.h +154 -0
- package/vendor/mbedtls/library/net_sockets.c +694 -0
- package/vendor/mbedtls/library/nist_kw.c +729 -0
- package/vendor/mbedtls/library/oid.c +1166 -0
- package/vendor/mbedtls/library/padlock.c +157 -0
- package/vendor/mbedtls/library/padlock.h +111 -0
- package/vendor/mbedtls/library/pem.c +554 -0
- package/vendor/mbedtls/library/pk.c +1602 -0
- package/vendor/mbedtls/library/pk_ecc.c +261 -0
- package/vendor/mbedtls/library/pk_internal.h +241 -0
- package/vendor/mbedtls/library/pk_wrap.c +1618 -0
- package/vendor/mbedtls/library/pk_wrap.h +138 -0
- package/vendor/mbedtls/library/pkcs12.c +437 -0
- package/vendor/mbedtls/library/pkcs5.c +500 -0
- package/vendor/mbedtls/library/pkcs7.c +787 -0
- package/vendor/mbedtls/library/pkparse.c +1392 -0
- package/vendor/mbedtls/library/pkwrite.c +631 -0
- package/vendor/mbedtls/library/pkwrite.h +121 -0
- package/vendor/mbedtls/library/platform.c +402 -0
- package/vendor/mbedtls/library/platform_util.c +258 -0
- package/vendor/mbedtls/library/poly1305.c +492 -0
- package/vendor/mbedtls/library/psa_crypto.c +9532 -0
- package/vendor/mbedtls/library/psa_crypto_aead.c +646 -0
- package/vendor/mbedtls/library/psa_crypto_aead.h +499 -0
- package/vendor/mbedtls/library/psa_crypto_cipher.c +747 -0
- package/vendor/mbedtls/library/psa_crypto_cipher.h +316 -0
- package/vendor/mbedtls/library/psa_crypto_client.c +22 -0
- package/vendor/mbedtls/library/psa_crypto_core.h +983 -0
- package/vendor/mbedtls/library/psa_crypto_core_common.h +52 -0
- package/vendor/mbedtls/library/psa_crypto_driver_wrappers.h +2896 -0
- package/vendor/mbedtls/library/psa_crypto_driver_wrappers_no_static.c +256 -0
- package/vendor/mbedtls/library/psa_crypto_driver_wrappers_no_static.h +31 -0
- package/vendor/mbedtls/library/psa_crypto_ecp.c +594 -0
- package/vendor/mbedtls/library/psa_crypto_ecp.h +267 -0
- package/vendor/mbedtls/library/psa_crypto_ffdh.c +361 -0
- package/vendor/mbedtls/library/psa_crypto_ffdh.h +131 -0
- package/vendor/mbedtls/library/psa_crypto_hash.c +470 -0
- package/vendor/mbedtls/library/psa_crypto_hash.h +211 -0
- package/vendor/mbedtls/library/psa_crypto_invasive.h +92 -0
- package/vendor/mbedtls/library/psa_crypto_its.h +131 -0
- package/vendor/mbedtls/library/psa_crypto_mac.c +505 -0
- package/vendor/mbedtls/library/psa_crypto_mac.h +264 -0
- package/vendor/mbedtls/library/psa_crypto_pake.c +571 -0
- package/vendor/mbedtls/library/psa_crypto_pake.h +159 -0
- package/vendor/mbedtls/library/psa_crypto_random.c +181 -0
- package/vendor/mbedtls/library/psa_crypto_random.h +72 -0
- package/vendor/mbedtls/library/psa_crypto_random_impl.h +200 -0
- package/vendor/mbedtls/library/psa_crypto_rsa.c +714 -0
- package/vendor/mbedtls/library/psa_crypto_rsa.h +321 -0
- package/vendor/mbedtls/library/psa_crypto_se.c +373 -0
- package/vendor/mbedtls/library/psa_crypto_se.h +192 -0
- package/vendor/mbedtls/library/psa_crypto_slot_management.c +1137 -0
- package/vendor/mbedtls/library/psa_crypto_slot_management.h +344 -0
- package/vendor/mbedtls/library/psa_crypto_storage.c +481 -0
- package/vendor/mbedtls/library/psa_crypto_storage.h +392 -0
- package/vendor/mbedtls/library/psa_its_file.c +254 -0
- package/vendor/mbedtls/library/psa_util.c +614 -0
- package/vendor/mbedtls/library/psa_util_internal.h +100 -0
- package/vendor/mbedtls/library/ripemd160.c +490 -0
- package/vendor/mbedtls/library/rsa.c +3121 -0
- package/vendor/mbedtls/library/rsa_alt_helpers.c +455 -0
- package/vendor/mbedtls/library/rsa_alt_helpers.h +209 -0
- package/vendor/mbedtls/library/rsa_internal.h +188 -0
- package/vendor/mbedtls/library/sha1.c +480 -0
- package/vendor/mbedtls/library/sha256.c +983 -0
- package/vendor/mbedtls/library/sha3.c +721 -0
- package/vendor/mbedtls/library/sha512.c +1115 -0
- package/vendor/mbedtls/library/ssl_cache.c +410 -0
- package/vendor/mbedtls/library/ssl_ciphersuites.c +2050 -0
- package/vendor/mbedtls/library/ssl_ciphersuites_internal.h +154 -0
- package/vendor/mbedtls/library/ssl_client.c +1023 -0
- package/vendor/mbedtls/library/ssl_client.h +22 -0
- package/vendor/mbedtls/library/ssl_cookie.c +384 -0
- package/vendor/mbedtls/library/ssl_debug_helpers.h +85 -0
- package/vendor/mbedtls/library/ssl_debug_helpers_generated.c +251 -0
- package/vendor/mbedtls/library/ssl_misc.h +3198 -0
- package/vendor/mbedtls/library/ssl_msg.c +6619 -0
- package/vendor/mbedtls/library/ssl_ticket.c +556 -0
- package/vendor/mbedtls/library/ssl_tls.c +10234 -0
- package/vendor/mbedtls/library/ssl_tls12_client.c +3688 -0
- package/vendor/mbedtls/library/ssl_tls12_server.c +4311 -0
- package/vendor/mbedtls/library/ssl_tls13_client.c +3208 -0
- package/vendor/mbedtls/library/ssl_tls13_generic.c +1793 -0
- package/vendor/mbedtls/library/ssl_tls13_invasive.h +23 -0
- package/vendor/mbedtls/library/ssl_tls13_keys.c +1918 -0
- package/vendor/mbedtls/library/ssl_tls13_keys.h +668 -0
- package/vendor/mbedtls/library/ssl_tls13_server.c +3624 -0
- package/vendor/mbedtls/library/threading.c +193 -0
- package/vendor/mbedtls/library/threading_internal.h +28 -0
- package/vendor/mbedtls/library/timing.c +152 -0
- package/vendor/mbedtls/library/version.c +32 -0
- package/vendor/mbedtls/library/version_features.c +856 -0
- package/vendor/mbedtls/library/x509.c +1776 -0
- package/vendor/mbedtls/library/x509_create.c +570 -0
- package/vendor/mbedtls/library/x509_crl.c +708 -0
- package/vendor/mbedtls/library/x509_crt.c +3311 -0
- package/vendor/mbedtls/library/x509_csr.c +648 -0
- package/vendor/mbedtls/library/x509_internal.h +101 -0
- package/vendor/mbedtls/library/x509write.c +174 -0
- package/vendor/mbedtls/library/x509write_crt.c +688 -0
- package/vendor/mbedtls/library/x509write_csr.c +336 -0
- package/vendor/quickjs-ng/CMakeLists.txt +566 -0
- package/vendor/quickjs-ng/LICENSE +24 -0
- package/vendor/quickjs-ng/README.md +24 -0
- package/vendor/quickjs-ng/api-test.c +1195 -0
- package/vendor/quickjs-ng/builtin-array-fromasync.h +119 -0
- package/vendor/quickjs-ng/builtin-iterator-zip-keyed.h +332 -0
- package/vendor/quickjs-ng/builtin-iterator-zip.h +337 -0
- package/vendor/quickjs-ng/cutils.h +1998 -0
- package/vendor/quickjs-ng/dtoa.c +1619 -0
- package/vendor/quickjs-ng/dtoa.h +87 -0
- package/vendor/quickjs-ng/gen/function_source.c +81 -0
- package/vendor/quickjs-ng/gen/hello.c +53 -0
- package/vendor/quickjs-ng/gen/hello_module.c +106 -0
- package/vendor/quickjs-ng/gen/repl.c +3036 -0
- package/vendor/quickjs-ng/gen/standalone.c +323 -0
- package/vendor/quickjs-ng/gen/test_fib.c +81 -0
- package/vendor/quickjs-ng/libregexp-opcode.h +73 -0
- package/vendor/quickjs-ng/libregexp.c +3474 -0
- package/vendor/quickjs-ng/libregexp.h +101 -0
- package/vendor/quickjs-ng/libunicode-table.h +5173 -0
- package/vendor/quickjs-ng/libunicode.c +2069 -0
- package/vendor/quickjs-ng/libunicode.h +172 -0
- package/vendor/quickjs-ng/list.h +107 -0
- package/vendor/quickjs-ng/lre-test.c +52 -0
- package/vendor/quickjs-ng/qjs.c +762 -0
- package/vendor/quickjs-ng/qjsc.c +673 -0
- package/vendor/quickjs-ng/quickjs-atom.h +280 -0
- package/vendor/quickjs-ng/quickjs-c-atomics.h +54 -0
- package/vendor/quickjs-ng/quickjs-libc.c +5037 -0
- package/vendor/quickjs-ng/quickjs-libc.h +87 -0
- package/vendor/quickjs-ng/quickjs-opcode.h +377 -0
- package/vendor/quickjs-ng/quickjs.c +64041 -0
- package/vendor/quickjs-ng/quickjs.h +1447 -0
- package/vendor/quickjs-ng/run-test262.c +2374 -0
- package/vendor/quickjs-ng/unicode_gen.c +3121 -0
- package/vendor/quickjs-ng/unicode_gen_def.h +310 -0
- package/vendor/ryu/LICENSE-Boost +23 -0
- package/vendor/ryu/common.h +114 -0
- package/vendor/ryu/d2s.c +509 -0
- package/vendor/ryu/d2s_full_table.h +367 -0
- package/vendor/ryu/d2s_intrinsics.h +357 -0
- package/vendor/ryu/d2s_small_table.h +186 -0
- package/vendor/ryu/digit_table.h +35 -0
- package/vendor/ryu/ryu.h +46 -0
- package/vendor/zlib/LICENSE +22 -0
- package/vendor/zlib/adler32.c +164 -0
- package/vendor/zlib/compress.c +75 -0
- package/vendor/zlib/crc32.c +1049 -0
- package/vendor/zlib/crc32.h +9446 -0
- package/vendor/zlib/deflate.c +2139 -0
- package/vendor/zlib/deflate.h +377 -0
- package/vendor/zlib/gzclose.c +23 -0
- package/vendor/zlib/gzguts.h +214 -0
- package/vendor/zlib/gzlib.c +582 -0
- package/vendor/zlib/gzread.c +602 -0
- package/vendor/zlib/gzwrite.c +631 -0
- package/vendor/zlib/infback.c +628 -0
- package/vendor/zlib/inffast.c +320 -0
- package/vendor/zlib/inffast.h +11 -0
- package/vendor/zlib/inffixed.h +94 -0
- package/vendor/zlib/inflate.c +1526 -0
- package/vendor/zlib/inflate.h +126 -0
- package/vendor/zlib/inftrees.c +299 -0
- package/vendor/zlib/inftrees.h +62 -0
- package/vendor/zlib/trees.c +1117 -0
- package/vendor/zlib/trees.h +128 -0
- package/vendor/zlib/uncompr.c +85 -0
- package/vendor/zlib/zconf.h +543 -0
- package/vendor/zlib/zlib.h +1938 -0
- package/vendor/zlib/zutil.c +299 -0
- package/vendor/zlib/zutil.h +254 -0
- package/README.md +0 -3
- package/index.js +0 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* \file bignum_mod_raw_invasive.h
|
|
3
|
+
*
|
|
4
|
+
* \brief Function declarations for invasive functions of Low-level
|
|
5
|
+
* modular bignum.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Copyright The Mbed TLS Contributors
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#ifndef MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H
|
|
13
|
+
#define MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H
|
|
14
|
+
|
|
15
|
+
#include "common.h"
|
|
16
|
+
#include "mbedtls/bignum.h"
|
|
17
|
+
#include "bignum_mod.h"
|
|
18
|
+
|
|
19
|
+
#if defined(MBEDTLS_TEST_HOOKS)
|
|
20
|
+
|
|
21
|
+
/** Convert the result of a quasi-reduction to its canonical representative.
|
|
22
|
+
*
|
|
23
|
+
* \param[in,out] X The address of the MPI to be converted. Must have the
|
|
24
|
+
* same number of limbs as \p N. The input value must
|
|
25
|
+
* be in range 0 <= X < 2N.
|
|
26
|
+
* \param[in] N The address of the modulus.
|
|
27
|
+
*/
|
|
28
|
+
MBEDTLS_STATIC_TESTABLE
|
|
29
|
+
void mbedtls_mpi_mod_raw_fix_quasi_reduction(mbedtls_mpi_uint *X,
|
|
30
|
+
const mbedtls_mpi_mod_modulus *N);
|
|
31
|
+
|
|
32
|
+
#endif /* MBEDTLS_TEST_HOOKS */
|
|
33
|
+
|
|
34
|
+
#endif /* MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H */
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* \file block_cipher.c
|
|
3
|
+
*
|
|
4
|
+
* \brief Lightweight abstraction layer for block ciphers with 128 bit blocks,
|
|
5
|
+
* for use by the GCM and CCM modules.
|
|
6
|
+
*/
|
|
7
|
+
/*
|
|
8
|
+
* Copyright The Mbed TLS Contributors
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#include "common.h"
|
|
13
|
+
|
|
14
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
|
|
15
|
+
#include "psa/crypto.h"
|
|
16
|
+
#include "psa_crypto_core.h"
|
|
17
|
+
#include "psa_util_internal.h"
|
|
18
|
+
#endif
|
|
19
|
+
|
|
20
|
+
#include "block_cipher_internal.h"
|
|
21
|
+
|
|
22
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_C)
|
|
23
|
+
|
|
24
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
|
|
25
|
+
static psa_key_type_t psa_key_type_from_block_cipher_id(mbedtls_block_cipher_id_t cipher_id)
|
|
26
|
+
{
|
|
27
|
+
switch (cipher_id) {
|
|
28
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_AES_VIA_PSA)
|
|
29
|
+
case MBEDTLS_BLOCK_CIPHER_ID_AES:
|
|
30
|
+
return PSA_KEY_TYPE_AES;
|
|
31
|
+
#endif
|
|
32
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_ARIA_VIA_PSA)
|
|
33
|
+
case MBEDTLS_BLOCK_CIPHER_ID_ARIA:
|
|
34
|
+
return PSA_KEY_TYPE_ARIA;
|
|
35
|
+
#endif
|
|
36
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_CAMELLIA_VIA_PSA)
|
|
37
|
+
case MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA:
|
|
38
|
+
return PSA_KEY_TYPE_CAMELLIA;
|
|
39
|
+
#endif
|
|
40
|
+
default:
|
|
41
|
+
return PSA_KEY_TYPE_NONE;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static int mbedtls_cipher_error_from_psa(psa_status_t status)
|
|
46
|
+
{
|
|
47
|
+
return PSA_TO_MBEDTLS_ERR_LIST(status, psa_to_cipher_errors,
|
|
48
|
+
psa_generic_status_to_mbedtls);
|
|
49
|
+
}
|
|
50
|
+
#endif /* MBEDTLS_BLOCK_CIPHER_SOME_PSA */
|
|
51
|
+
|
|
52
|
+
void mbedtls_block_cipher_free(mbedtls_block_cipher_context_t *ctx)
|
|
53
|
+
{
|
|
54
|
+
if (ctx == NULL) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
|
|
59
|
+
if (ctx->engine == MBEDTLS_BLOCK_CIPHER_ENGINE_PSA) {
|
|
60
|
+
psa_destroy_key(ctx->psa_key_id);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
#endif
|
|
64
|
+
switch (ctx->id) {
|
|
65
|
+
#if defined(MBEDTLS_AES_C)
|
|
66
|
+
case MBEDTLS_BLOCK_CIPHER_ID_AES:
|
|
67
|
+
mbedtls_aes_free(&ctx->ctx.aes);
|
|
68
|
+
break;
|
|
69
|
+
#endif
|
|
70
|
+
#if defined(MBEDTLS_ARIA_C)
|
|
71
|
+
case MBEDTLS_BLOCK_CIPHER_ID_ARIA:
|
|
72
|
+
mbedtls_aria_free(&ctx->ctx.aria);
|
|
73
|
+
break;
|
|
74
|
+
#endif
|
|
75
|
+
#if defined(MBEDTLS_CAMELLIA_C)
|
|
76
|
+
case MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA:
|
|
77
|
+
mbedtls_camellia_free(&ctx->ctx.camellia);
|
|
78
|
+
break;
|
|
79
|
+
#endif
|
|
80
|
+
default:
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
ctx->id = MBEDTLS_BLOCK_CIPHER_ID_NONE;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
int mbedtls_block_cipher_setup(mbedtls_block_cipher_context_t *ctx,
|
|
87
|
+
mbedtls_cipher_id_t cipher_id)
|
|
88
|
+
{
|
|
89
|
+
ctx->id = (cipher_id == MBEDTLS_CIPHER_ID_AES) ? MBEDTLS_BLOCK_CIPHER_ID_AES :
|
|
90
|
+
(cipher_id == MBEDTLS_CIPHER_ID_ARIA) ? MBEDTLS_BLOCK_CIPHER_ID_ARIA :
|
|
91
|
+
(cipher_id == MBEDTLS_CIPHER_ID_CAMELLIA) ? MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA :
|
|
92
|
+
MBEDTLS_BLOCK_CIPHER_ID_NONE;
|
|
93
|
+
|
|
94
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
|
|
95
|
+
psa_key_type_t psa_key_type = psa_key_type_from_block_cipher_id(ctx->id);
|
|
96
|
+
if (psa_key_type != PSA_KEY_TYPE_NONE &&
|
|
97
|
+
psa_can_do_cipher(psa_key_type, PSA_ALG_ECB_NO_PADDING)) {
|
|
98
|
+
ctx->engine = MBEDTLS_BLOCK_CIPHER_ENGINE_PSA;
|
|
99
|
+
return 0;
|
|
100
|
+
}
|
|
101
|
+
ctx->engine = MBEDTLS_BLOCK_CIPHER_ENGINE_LEGACY;
|
|
102
|
+
#endif
|
|
103
|
+
|
|
104
|
+
switch (ctx->id) {
|
|
105
|
+
#if defined(MBEDTLS_AES_C)
|
|
106
|
+
case MBEDTLS_BLOCK_CIPHER_ID_AES:
|
|
107
|
+
mbedtls_aes_init(&ctx->ctx.aes);
|
|
108
|
+
return 0;
|
|
109
|
+
#endif
|
|
110
|
+
#if defined(MBEDTLS_ARIA_C)
|
|
111
|
+
case MBEDTLS_BLOCK_CIPHER_ID_ARIA:
|
|
112
|
+
mbedtls_aria_init(&ctx->ctx.aria);
|
|
113
|
+
return 0;
|
|
114
|
+
#endif
|
|
115
|
+
#if defined(MBEDTLS_CAMELLIA_C)
|
|
116
|
+
case MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA:
|
|
117
|
+
mbedtls_camellia_init(&ctx->ctx.camellia);
|
|
118
|
+
return 0;
|
|
119
|
+
#endif
|
|
120
|
+
default:
|
|
121
|
+
ctx->id = MBEDTLS_BLOCK_CIPHER_ID_NONE;
|
|
122
|
+
return MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
int mbedtls_block_cipher_setkey(mbedtls_block_cipher_context_t *ctx,
|
|
127
|
+
const unsigned char *key,
|
|
128
|
+
unsigned key_bitlen)
|
|
129
|
+
{
|
|
130
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
|
|
131
|
+
if (ctx->engine == MBEDTLS_BLOCK_CIPHER_ENGINE_PSA) {
|
|
132
|
+
psa_key_attributes_t key_attr = PSA_KEY_ATTRIBUTES_INIT;
|
|
133
|
+
psa_status_t status;
|
|
134
|
+
|
|
135
|
+
psa_set_key_type(&key_attr, psa_key_type_from_block_cipher_id(ctx->id));
|
|
136
|
+
psa_set_key_bits(&key_attr, key_bitlen);
|
|
137
|
+
psa_set_key_algorithm(&key_attr, PSA_ALG_ECB_NO_PADDING);
|
|
138
|
+
psa_set_key_usage_flags(&key_attr, PSA_KEY_USAGE_ENCRYPT);
|
|
139
|
+
|
|
140
|
+
status = psa_import_key(&key_attr, key, PSA_BITS_TO_BYTES(key_bitlen), &ctx->psa_key_id);
|
|
141
|
+
if (status != PSA_SUCCESS) {
|
|
142
|
+
return mbedtls_cipher_error_from_psa(status);
|
|
143
|
+
}
|
|
144
|
+
psa_reset_key_attributes(&key_attr);
|
|
145
|
+
|
|
146
|
+
return 0;
|
|
147
|
+
}
|
|
148
|
+
#endif /* MBEDTLS_BLOCK_CIPHER_SOME_PSA */
|
|
149
|
+
|
|
150
|
+
switch (ctx->id) {
|
|
151
|
+
#if defined(MBEDTLS_AES_C)
|
|
152
|
+
case MBEDTLS_BLOCK_CIPHER_ID_AES:
|
|
153
|
+
return mbedtls_aes_setkey_enc(&ctx->ctx.aes, key, key_bitlen);
|
|
154
|
+
#endif
|
|
155
|
+
#if defined(MBEDTLS_ARIA_C)
|
|
156
|
+
case MBEDTLS_BLOCK_CIPHER_ID_ARIA:
|
|
157
|
+
return mbedtls_aria_setkey_enc(&ctx->ctx.aria, key, key_bitlen);
|
|
158
|
+
#endif
|
|
159
|
+
#if defined(MBEDTLS_CAMELLIA_C)
|
|
160
|
+
case MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA:
|
|
161
|
+
return mbedtls_camellia_setkey_enc(&ctx->ctx.camellia, key, key_bitlen);
|
|
162
|
+
#endif
|
|
163
|
+
default:
|
|
164
|
+
return MBEDTLS_ERR_CIPHER_INVALID_CONTEXT;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
int mbedtls_block_cipher_encrypt(mbedtls_block_cipher_context_t *ctx,
|
|
169
|
+
const unsigned char input[16],
|
|
170
|
+
unsigned char output[16])
|
|
171
|
+
{
|
|
172
|
+
#if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
|
|
173
|
+
if (ctx->engine == MBEDTLS_BLOCK_CIPHER_ENGINE_PSA) {
|
|
174
|
+
psa_status_t status;
|
|
175
|
+
size_t olen;
|
|
176
|
+
|
|
177
|
+
status = psa_cipher_encrypt(ctx->psa_key_id, PSA_ALG_ECB_NO_PADDING,
|
|
178
|
+
input, 16, output, 16, &olen);
|
|
179
|
+
if (status != PSA_SUCCESS) {
|
|
180
|
+
return mbedtls_cipher_error_from_psa(status);
|
|
181
|
+
}
|
|
182
|
+
return 0;
|
|
183
|
+
}
|
|
184
|
+
#endif /* MBEDTLS_BLOCK_CIPHER_SOME_PSA */
|
|
185
|
+
|
|
186
|
+
switch (ctx->id) {
|
|
187
|
+
#if defined(MBEDTLS_AES_C)
|
|
188
|
+
case MBEDTLS_BLOCK_CIPHER_ID_AES:
|
|
189
|
+
return mbedtls_aes_crypt_ecb(&ctx->ctx.aes, MBEDTLS_AES_ENCRYPT,
|
|
190
|
+
input, output);
|
|
191
|
+
#endif
|
|
192
|
+
#if defined(MBEDTLS_ARIA_C)
|
|
193
|
+
case MBEDTLS_BLOCK_CIPHER_ID_ARIA:
|
|
194
|
+
return mbedtls_aria_crypt_ecb(&ctx->ctx.aria, input, output);
|
|
195
|
+
#endif
|
|
196
|
+
#if defined(MBEDTLS_CAMELLIA_C)
|
|
197
|
+
case MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA:
|
|
198
|
+
return mbedtls_camellia_crypt_ecb(&ctx->ctx.camellia,
|
|
199
|
+
MBEDTLS_CAMELLIA_ENCRYPT,
|
|
200
|
+
input, output);
|
|
201
|
+
#endif
|
|
202
|
+
default:
|
|
203
|
+
return MBEDTLS_ERR_CIPHER_INVALID_CONTEXT;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
#endif /* MBEDTLS_BLOCK_CIPHER_C */
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* \file block_cipher_internal.h
|
|
3
|
+
*
|
|
4
|
+
* \brief Lightweight abstraction layer for block ciphers with 128 bit blocks,
|
|
5
|
+
* for use by the GCM and CCM modules.
|
|
6
|
+
*/
|
|
7
|
+
/*
|
|
8
|
+
* Copyright The Mbed TLS Contributors
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
10
|
+
*/
|
|
11
|
+
#ifndef MBEDTLS_BLOCK_CIPHER_INTERNAL_H
|
|
12
|
+
#define MBEDTLS_BLOCK_CIPHER_INTERNAL_H
|
|
13
|
+
|
|
14
|
+
#include "mbedtls/build_info.h"
|
|
15
|
+
|
|
16
|
+
#include "mbedtls/cipher.h"
|
|
17
|
+
|
|
18
|
+
#include "mbedtls/block_cipher.h"
|
|
19
|
+
|
|
20
|
+
#ifdef __cplusplus
|
|
21
|
+
extern "C" {
|
|
22
|
+
#endif
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* \brief Initialize the context.
|
|
26
|
+
* This must be the first API call before using the context.
|
|
27
|
+
*
|
|
28
|
+
* \param ctx The context to initialize.
|
|
29
|
+
*/
|
|
30
|
+
static inline void mbedtls_block_cipher_init(mbedtls_block_cipher_context_t *ctx)
|
|
31
|
+
{
|
|
32
|
+
memset(ctx, 0, sizeof(*ctx));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* \brief Set the block cipher to use with this context.
|
|
37
|
+
* This must be called after mbedtls_block_cipher_init().
|
|
38
|
+
*
|
|
39
|
+
* \param ctx The context to set up.
|
|
40
|
+
* \param cipher_id The identifier of the cipher to use.
|
|
41
|
+
* This must be either AES, ARIA or Camellia.
|
|
42
|
+
* Warning: this is a ::mbedtls_cipher_id_t,
|
|
43
|
+
* not a ::mbedtls_block_cipher_id_t!
|
|
44
|
+
*
|
|
45
|
+
* \retval \c 0 on success.
|
|
46
|
+
* \retval #MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA if \p cipher_id was
|
|
47
|
+
* invalid.
|
|
48
|
+
*/
|
|
49
|
+
int mbedtls_block_cipher_setup(mbedtls_block_cipher_context_t *ctx,
|
|
50
|
+
mbedtls_cipher_id_t cipher_id);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* \brief Set the key into the context.
|
|
54
|
+
*
|
|
55
|
+
* \param ctx The context to configure.
|
|
56
|
+
* \param key The buffer holding the key material.
|
|
57
|
+
* \param key_bitlen The size of the key in bits.
|
|
58
|
+
*
|
|
59
|
+
* \retval \c 0 on success.
|
|
60
|
+
* \retval #MBEDTLS_ERR_CIPHER_INVALID_CONTEXT if the context was not
|
|
61
|
+
* properly set up before calling this function.
|
|
62
|
+
* \retval One of #MBEDTLS_ERR_AES_INVALID_KEY_LENGTH,
|
|
63
|
+
* #MBEDTLS_ERR_ARIA_BAD_INPUT_DATA,
|
|
64
|
+
* #MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA if \p key_bitlen is
|
|
65
|
+
* invalid.
|
|
66
|
+
*/
|
|
67
|
+
int mbedtls_block_cipher_setkey(mbedtls_block_cipher_context_t *ctx,
|
|
68
|
+
const unsigned char *key,
|
|
69
|
+
unsigned key_bitlen);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* \brief Encrypt one block (16 bytes) with the configured key.
|
|
73
|
+
*
|
|
74
|
+
* \param ctx The context holding the key.
|
|
75
|
+
* \param input The buffer holding the input block. Must be 16 bytes.
|
|
76
|
+
* \param output The buffer to which the output block will be written.
|
|
77
|
+
* Must be writable and 16 bytes long.
|
|
78
|
+
* This must either not overlap with \p input, or be equal.
|
|
79
|
+
*
|
|
80
|
+
* \retval \c 0 on success.
|
|
81
|
+
* \retval #MBEDTLS_ERR_CIPHER_INVALID_CONTEXT if the context was not
|
|
82
|
+
* properly set up before calling this function.
|
|
83
|
+
* \retval Another negative value if encryption failed.
|
|
84
|
+
*/
|
|
85
|
+
int mbedtls_block_cipher_encrypt(mbedtls_block_cipher_context_t *ctx,
|
|
86
|
+
const unsigned char input[16],
|
|
87
|
+
unsigned char output[16]);
|
|
88
|
+
/**
|
|
89
|
+
* \brief Clear the context.
|
|
90
|
+
*
|
|
91
|
+
* \param ctx The context to clear.
|
|
92
|
+
*/
|
|
93
|
+
void mbedtls_block_cipher_free(mbedtls_block_cipher_context_t *ctx);
|
|
94
|
+
|
|
95
|
+
#ifdef __cplusplus
|
|
96
|
+
}
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
#endif /* MBEDTLS_BLOCK_CIPHER_INTERNAL_H */
|