grpc 1.85.4 → 1.86.0.pre1
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.
- checksums.yaml +4 -4
- data/Makefile +13 -9
- data/etc/roots.pem +0 -583
- data/include/grpc/channel_factory.h +78 -0
- data/include/grpc/credentials.h +21 -0
- data/include/grpc/grpc.h +7 -0
- data/include/grpc/grpc_security_constants.h +2 -0
- data/include/grpc/module.modulemap +1 -0
- data/src/core/call/call_filters.cc +4 -1
- data/src/core/call/call_filters.h +3 -1
- data/src/core/call/call_spine.h +12 -6
- data/src/core/call/call_state.h +3 -3
- data/src/core/call/client_call.cc +4 -1
- data/src/core/call/client_call.h +1 -0
- data/src/core/call/filter_fusion.h +2 -15
- data/src/core/call/interception_chain.h +2 -7
- data/src/core/call/metadata_batch.cc +5 -0
- data/src/core/call/metadata_batch.h +13 -3
- data/src/core/call/request_buffer.cc +1 -1
- data/src/core/call/server_call.cc +3 -3
- data/src/core/call/server_call.h +15 -0
- data/src/core/channelz/channelz_registry.cc +4 -4
- data/src/core/client_channel/backup_poller.cc +1 -2
- data/src/core/client_channel/channel_factory.cc +110 -0
- data/src/core/client_channel/channel_factory.h +45 -0
- data/src/core/client_channel/global_subchannel_pool.cc +2 -2
- data/src/core/client_channel/lame_channel.cc +59 -0
- data/src/core/client_channel/lame_channel.h +86 -0
- data/src/core/credentials/call/external/aws_request_signer.cc +2 -1
- data/src/core/credentials/call/external/url_external_account_credentials.cc +6 -17
- data/src/core/credentials/call/external/url_external_account_credentials.h +0 -1
- data/src/core/credentials/call/jwt/jwt_verifier.cc +25 -13
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc +14 -0
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.h +12 -2
- data/src/core/credentials/transport/tls/ssl_utils.cc +20 -0
- data/src/core/credentials/transport/tls/ssl_utils.h +4 -0
- data/src/core/credentials/transport/tls/tls_security_connector.cc +6 -2
- data/src/core/ext/filters/rbac/rbac_filter.cc +3 -41
- data/src/core/ext/filters/rbac/rbac_filter.h +2 -11
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +2 -2
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +31 -24
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +1 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +69 -102
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +1 -1
- data/src/core/ext/transport/chttp2/transport/flow_control.h +2 -2
- data/src/core/ext/transport/chttp2/transport/flow_control_manager.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame.cc +15 -19
- data/src/core/ext/transport/chttp2/transport/frame.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +18 -61
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +0 -4
- data/src/core/ext/transport/chttp2/transport/frame_security.cc +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +9 -0
- data/src/core/ext/transport/chttp2/transport/goaway.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/goaway.h +0 -5
- data/src/core/ext/transport/chttp2/transport/header_assembler.h +1 -5
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +34 -19
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.h +5 -2
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.cc +134 -82
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.h +30 -15
- data/src/core/ext/transport/chttp2/transport/http2_settings_promises.h +4 -3
- data/src/core/ext/transport/chttp2/transport/http2_transport.cc +9 -33
- data/src/core/ext/transport/chttp2/transport/http2_transport.h +1 -6
- data/src/core/ext/transport/chttp2/transport/http2_transport_stats.h +60 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +6 -1
- data/src/core/ext/transport/chttp2/transport/keepalive.h +1 -4
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -8
- data/src/core/ext/transport/chttp2/transport/ping_promise.cc +35 -11
- data/src/core/ext/transport/chttp2/transport/ping_promise.h +52 -47
- data/src/core/ext/transport/chttp2/transport/read_context.h +19 -5
- data/src/core/ext/transport/chttp2/transport/security_frame.h +7 -6
- data/src/core/ext/transport/chttp2/transport/stream_data_queue.h +7 -5
- data/src/core/ext/transport/chttp2/transport/transport_common.cc +47 -0
- data/src/core/ext/transport/chttp2/transport/transport_common.h +29 -0
- data/src/core/ext/transport/chttp2/transport/writable_streams.h +1 -1
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +16 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +4 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +129 -81
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +50 -39
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +411 -163
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +95 -44
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +41 -8
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +427 -222
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +97 -66
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +130 -99
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +29 -27
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +49 -33
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +19 -8
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +95 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +33 -6
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +93 -11
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +656 -134
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +117 -51
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +45 -23
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +19 -10
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +99 -34
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +12 -7
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +344 -273
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +62 -69
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +1 -3
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +108 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +26 -2
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +809 -231
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +183 -77
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +151 -26
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +17 -9
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +24 -8
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +6 -5
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb.h +224 -16
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.c +83 -10
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb.h +95 -79
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb_minitable.c +23 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +34 -18
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +10 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h +243 -2
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.c +53 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +9 -4
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +516 -215
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +99 -60
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +60 -28
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +12 -10
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +32 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb.h +37 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.c +7 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +65 -47
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +29 -12
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +20 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +6 -3
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb.h +776 -88
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.c +195 -35
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.h +5 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb_minitable.c +10 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +44 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +11 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb.h +218 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.h +31 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +30 -24
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +166 -152
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +467 -422
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +120 -110
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +912 -857
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +26 -19
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +59 -54
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +356 -346
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +49 -37
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +599 -483
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +65 -49
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +165 -161
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +369 -327
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +5 -15
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +129 -121
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +224 -204
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +2046 -1932
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +70 -37
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +7 -3
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +5 -3
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.c +121 -78
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upbdefs.c +165 -160
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +121 -118
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.c +68 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +48 -40
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +44 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +919 -870
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.c +26 -14
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +44 -36
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +372 -371
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +32 -28
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/address.upbdefs.c +17 -15
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +4 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.h +37 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +1 -1
- data/src/core/filter/ext_proc/ext_proc_filter.cc +537 -259
- data/src/core/filter/ext_proc/ext_proc_filter.h +47 -14
- data/src/core/filter/ext_proc/ext_proc_messages.cc +38 -17
- data/src/core/filter/ext_proc/ext_proc_messages.h +19 -7
- data/src/core/filter/filter_args.h +5 -60
- data/src/core/handshaker/http_connect/http_connect_client_handshaker.cc +1 -1
- data/src/core/handshaker/security/pipelined_secure_endpoint.cc +23 -22
- data/src/core/handshaker/security/secure_endpoint.cc +16 -16
- data/src/core/lib/channel/channel_stack.cc +0 -12
- data/src/core/lib/channel/channel_stack.h +0 -8
- data/src/core/lib/channel/promise_based_filter.cc +57 -44
- data/src/core/lib/channel/promise_based_filter.h +29 -41
- data/src/core/lib/event_engine/ares_resolver.cc +10 -4
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +1 -1
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +3 -3
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +1 -5
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/file_descriptor_collection.cc +3 -17
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +21 -1
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/posix_interface.h +1 -1
- data/src/core/lib/event_engine/posix_engine/timer.cc +2 -2
- data/src/core/lib/event_engine/shim.cc +1 -6
- data/src/core/lib/event_engine/shim.h +0 -5
- data/src/core/lib/event_engine/windows/windows_engine.cc +4 -4
- data/src/core/lib/event_engine/windows/windows_listener.cc +1 -1
- data/src/core/lib/experiments/experiments.cc +141 -246
- data/src/core/lib/experiments/experiments.h +42 -109
- data/src/core/lib/iomgr/iomgr_windows.cc +1 -6
- data/src/core/lib/iomgr/tcp_posix.cc +21 -21
- data/src/core/lib/iomgr/tcp_server_posix.cc +64 -242
- data/src/core/lib/iomgr/tcp_server_windows.cc +0 -469
- data/src/core/lib/promise/activity.cc +8 -8
- data/src/core/lib/promise/activity.h +5 -5
- data/src/core/lib/promise/inter_activity_pipe.h +3 -3
- data/src/core/lib/promise/party.cc +5 -5
- data/src/core/lib/promise/status_flag.h +7 -2
- data/src/core/lib/resource_quota/memory_quota.cc +2 -2
- data/src/core/lib/security/authorization/rbac_policy.h +2 -2
- data/src/core/lib/surface/call.cc +13 -3
- data/src/core/lib/surface/call.h +23 -6
- data/src/core/lib/surface/channel_create.cc +7 -1
- data/src/core/lib/surface/channel_init.h +1 -8
- data/src/core/lib/surface/filter_stack_call.cc +16 -0
- data/src/core/lib/surface/filter_stack_call.h +1 -0
- data/src/core/lib/surface/init.cc +3 -3
- data/src/core/lib/surface/legacy_channel.cc +4 -1
- data/src/core/lib/surface/version.cc +1 -1
- data/src/core/lib/transport/transport.cc +15 -8
- data/src/core/lib/transport/transport_framing_endpoint_extension.h +8 -2
- data/src/core/load_balancing/autosharding/autosharding.cc +0 -8
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +99 -8
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.cc +38 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.h +55 -0
- data/src/core/load_balancing/ring_hash/ring_hash.cc +2 -1
- data/src/core/load_balancing/rls/rls.cc +21 -1
- data/src/core/load_balancing/xds/cds.cc +4 -51
- data/src/core/plugin_registry/grpc_plugin_registry.cc +10 -13
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -7
- data/src/core/resolver/xds/xds_resolver.cc +1 -1
- data/src/core/server/server.cc +60 -4
- data/src/core/server/server_config_selector.h +4 -18
- data/src/core/server/server_config_selector_filter.cc +20 -146
- data/src/core/server/server_config_selector_filter.h +2 -2
- data/src/core/server/xds_server_config_fetcher.cc +5 -20
- data/src/core/transport/auth_context.cc +15 -5
- data/src/core/transport/auth_context.h +5 -0
- data/src/core/tsi/ssl_telemetry_utils.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +158 -52
- data/src/core/tsi/ssl_transport_security.h +18 -2
- data/src/core/tsi/ssl_transport_security_utils.cc +123 -12
- data/src/core/tsi/ssl_transport_security_utils.h +19 -0
- data/src/core/util/latent_see.cc +65 -3
- data/src/core/util/latent_see.h +57 -12
- data/src/core/util/linux/cpu.cc +12 -6
- data/src/core/util/mpscq.cc +2 -2
- data/src/core/util/sync_abseil.cc +3 -3
- data/src/core/util/trie_lookup.h +5 -1
- data/src/core/util/windows/env.cc +1 -0
- data/src/core/util/work_serializer.cc +1 -1
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc +10 -9
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.h +3 -3
- data/src/core/xds/grpc/streaming_call_promise_wrapper.cc +5 -2
- data/src/core/xds/grpc/streaming_call_promise_wrapper.h +2 -5
- data/src/core/xds/grpc/xds_audit_logger_registry.cc +0 -54
- data/src/core/xds/grpc/xds_audit_logger_registry.h +0 -8
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.cc +2 -28
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.h +0 -20
- data/src/core/xds/grpc/xds_client_grpc.cc +4 -4
- data/src/core/xds/grpc/xds_client_grpc.h +1 -1
- data/src/core/xds/grpc/xds_cluster_parser.cc +5 -1
- data/src/core/xds/grpc/xds_common_types_parser.cc +12 -0
- data/src/core/xds/grpc/xds_endpoint_parser.cc +3 -3
- data/src/core/xds/grpc/xds_http_composite_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_composite_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_ext_proc_filter.cc +1 -5
- data/src/core/xds/grpc/xds_http_ext_proc_filter.h +3 -29
- data/src/core/xds/grpc/xds_http_fault_filter.cc +0 -4
- data/src/core/xds/grpc/xds_http_fault_filter.h +0 -26
- data/src/core/xds/grpc/xds_http_filter.h +1 -63
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_rbac_filter.cc +0 -527
- data/src/core/xds/grpc/xds_http_rbac_filter.h +0 -15
- data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_stateful_session_filter.h +0 -26
- data/src/core/xds/grpc/xds_listener.cc +0 -2
- data/src/core/xds/grpc/xds_listener.h +0 -2
- data/src/core/xds/grpc/xds_listener_parser.cc +0 -7
- data/src/core/xds/grpc/xds_matcher.cc +17 -11
- data/src/core/xds/grpc/xds_matcher.h +2 -1
- data/src/core/xds/grpc/xds_matcher_context.cc +3 -0
- data/src/core/xds/grpc/xds_matcher_context.h +1 -1
- data/src/core/xds/grpc/xds_matcher_input.cc +19 -1
- data/src/core/xds/grpc/xds_matcher_parse.cc +3 -2
- data/src/core/xds/grpc/xds_route_config.cc +0 -2
- data/src/core/xds/grpc/xds_route_config.h +0 -2
- data/src/core/xds/grpc/xds_route_config_parser.cc +0 -5
- data/src/core/xds/grpc/xds_routing.cc +1 -112
- data/src/core/xds/grpc/xds_routing.h +0 -26
- data/src/core/xds/grpc/xds_transport_factory_grpc.cc +236 -0
- data/src/core/xds/grpc/xds_transport_factory_grpc.h +95 -0
- data/src/core/xds/grpc/xds_transport_grpc.cc +78 -241
- data/src/core/xds/grpc/xds_transport_grpc.h +41 -51
- data/src/core/xds/xds_client/lrs_client.cc +3 -5
- data/src/core/xds/xds_client/lrs_client.h +2 -1
- data/src/core/xds/xds_client/xds_client.cc +36 -23
- data/src/core/xds/xds_client/xds_client.h +6 -5
- data/src/core/xds/xds_client/xds_transport.h +110 -108
- data/src/core/xds/xds_client/xds_transport_factory.h +43 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
- data/src/ruby/lib/grpc/generic/rpc_server.rb +2 -2
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/a_type.cc +54 -19
- data/third_party/boringssl-with-bazel/crypto/asn1/asn1_lib.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/internal.h +58 -12
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_dec.cc +13 -13
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_enc.cc +13 -11
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_fre.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_new.cc +31 -35
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_typ.cc +0 -2
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_utl.cc +17 -24
- data/third_party/boringssl-with-bazel/crypto/bio/bio.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/bio_mem.cc +9 -3
- data/third_party/boringssl-with-bazel/crypto/bio/connect.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/bio/fd.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/file.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/internal.h +2 -3
- data/third_party/boringssl-with-bazel/crypto/bio/pair.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/socket.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbb.cc +70 -45
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbs.cc +15 -34
- data/third_party/boringssl-with-bazel/crypto/bytestring/internal.h +5 -0
- data/third_party/boringssl-with-bazel/crypto/cipher/e_aesgcmsiv.cc +20 -165
- data/third_party/boringssl-with-bazel/crypto/cipher/e_tls.cc +7 -4
- data/third_party/boringssl-with-bazel/crypto/cipher/internal.h +159 -0
- data/third_party/boringssl-with-bazel/crypto/curve25519/curve25519.cc +295 -16
- data/third_party/boringssl-with-bazel/crypto/curve25519/internal.h +25 -14
- data/third_party/boringssl-with-bazel/crypto/dh/params.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/ec/hash_to_curve.cc +208 -36
- data/third_party/boringssl-with-bazel/crypto/err/err.cc +3 -2
- data/third_party/boringssl-with-bazel/crypto/evp/evp.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/evp/evp_kem.cc +25 -6
- data/third_party/boringssl-with-bazel/crypto/evp/internal.h +15 -11
- data/third_party/boringssl-with-bazel/crypto/evp/p_ec.cc +121 -0
- data/third_party/boringssl-with-bazel/crypto/evp/p_mlkem.cc +34 -9
- data/third_party/boringssl-with-bazel/crypto/evp/p_rsa.cc +76 -8
- data/third_party/boringssl-with-bazel/crypto/evp/p_xwing.cc +47 -20
- data/third_party/boringssl-with-bazel/crypto/ex_data.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/aes_nohw.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/gcm.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bcm.cc +1 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/add.cc.inc +9 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/asm/x86_64-gcc.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/exponentiation.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/internal.h +12 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/jacobi.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/montgomery_inv.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/prime.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/rsaz_exp.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/sqrt.cc.inc +21 -21
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/aead.cc.inc +4 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/cipher.cc.inc +97 -132
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/internal.h +7 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/dh.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec.cc.inc +77 -17
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec_montgomery.cc.inc +13 -13
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/felem.cc.inc +117 -34
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/internal.h +67 -18
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/oct.cc.inc +29 -151
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.cc.inc +740 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.h +207 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256.cc.inc +407 -519
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/simple.cc.inc +27 -28
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ecdsa/ecdsa.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/entropy/jitter.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/fips_shared_support.cc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/internal.h +70 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/keccak.cc.inc +292 -52
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mldsa/mldsa.cc.inc +226 -69
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mlkem/mlkem.cc.inc +238 -83
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/rsa_impl.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/sha1.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/fors.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/hpke/hpke.cc +327 -272
- data/third_party/boringssl-with-bazel/crypto/hrss/hrss.cc +14 -14
- data/third_party/boringssl-with-bazel/crypto/internal.h +63 -0
- data/third_party/boringssl-with-bazel/crypto/mem_internal.h +38 -3
- data/third_party/boringssl-with-bazel/crypto/obj/obj_dat.h +97 -1
- data/third_party/boringssl-with-bazel/crypto/pem/internal.h +86 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_all.cc +8 -5
- data/third_party/boringssl-with-bazel/crypto/pem/pem_lib.cc +41 -73
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pk8.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pkey.cc +10 -4
- data/third_party/boringssl-with-bazel/crypto/pem/pem_x509.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_xaux.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7_x509.cc +2 -2
- data/third_party/boringssl-with-bazel/crypto/pkcs8/pkcs8_x509.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/poly1305/internal.h +17 -0
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_arm.cc +1 -13
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_vec.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/slhdsa/slhdsa.cc +23 -6
- data/third_party/boringssl-with-bazel/crypto/stack/stack.cc +7 -0
- data/third_party/boringssl-with-bazel/crypto/trust_token/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/a_verify.cc +14 -7
- data/third_party/boringssl-with-bazel/crypto/x509/internal.h +110 -76
- data/third_party/boringssl-with-bazel/crypto/x509/name_print.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/rsa_pss.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_req.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_x509.cc +6 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_crld.cc +11 -53
- data/third_party/boringssl-with-bazel/crypto/x509/v3_ncons.cc +5 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_purp.cc +16 -39
- data/third_party/boringssl-with-bazel/crypto/x509/v3_skey.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/v3_utl.cc +12 -16
- data/third_party/boringssl-with-bazel/crypto/x509/x509_cmp.cc +9 -11
- data/third_party/boringssl-with-bazel/crypto/x509/x509_mtc.cc +598 -0
- data/third_party/boringssl-with-bazel/crypto/x509/x509_obj.cc +9 -8
- data/third_party/boringssl-with-bazel/crypto/x509/x509_set.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vfy.cc +315 -390
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vpm.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x509name.cc +31 -29
- data/third_party/boringssl-with-bazel/crypto/x509/x_all.cc +10 -9
- data/third_party/boringssl-with-bazel/crypto/x509/x_crl.cc +3 -53
- data/third_party/boringssl-with-bazel/crypto/x509/x_name.cc +37 -59
- data/third_party/boringssl-with-bazel/crypto/x509/x_pubkey.cc +29 -47
- data/third_party/boringssl-with-bazel/crypto/x509/x_req.cc +2 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x_x509.cc +53 -53
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_64_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/crypto/err_data.cc +509 -497
- data/third_party/boringssl-with-bazel/include/openssl/aead.h +7 -19
- data/third_party/boringssl-with-bazel/include/openssl/asm_base.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/asn1.h +6 -10
- data/third_party/boringssl-with-bazel/include/openssl/base.h +43 -16
- data/third_party/boringssl-with-bazel/include/openssl/bio.h +25 -10
- data/third_party/boringssl-with-bazel/include/openssl/bytestring.h +33 -1
- data/third_party/boringssl-with-bazel/include/openssl/cipher.h +11 -9
- data/third_party/boringssl-with-bazel/include/openssl/configuration.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/curve25519.h +36 -0
- data/third_party/boringssl-with-bazel/include/openssl/digest.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/ec.h +35 -1
- data/third_party/boringssl-with-bazel/include/openssl/ec_key.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/evp.h +120 -3
- data/third_party/boringssl-with-bazel/include/openssl/evp_errors.h +1 -0
- data/third_party/boringssl-with-bazel/include/openssl/hmac.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/hpke.h +38 -7
- data/third_party/boringssl-with-bazel/include/openssl/mem.h +5 -5
- data/third_party/boringssl-with-bazel/include/openssl/nid.h +42 -0
- data/third_party/boringssl-with-bazel/include/openssl/pem.h +650 -351
- data/third_party/boringssl-with-bazel/include/openssl/posix_time.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols.h +130 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_S.h +48 -0
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_c.h +24 -0
- data/third_party/boringssl-with-bazel/include/openssl/rsa.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/slhdsa.h +25 -1
- data/third_party/boringssl-with-bazel/include/openssl/ssl.h +256 -87
- data/third_party/boringssl-with-bazel/include/openssl/stack.h +9 -0
- data/third_party/boringssl-with-bazel/include/openssl/types.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/x509.h +40 -21
- data/third_party/boringssl-with-bazel/ssl/bio_ssl.cc +3 -5
- data/third_party/boringssl-with-bazel/ssl/d1_both.cc +146 -81
- data/third_party/boringssl-with-bazel/ssl/d1_lib.cc +39 -34
- data/third_party/boringssl-with-bazel/ssl/d1_pkt.cc +6 -6
- data/third_party/boringssl-with-bazel/ssl/d1_srtp.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/dtls_method.cc +4 -4
- data/third_party/boringssl-with-bazel/ssl/dtls_record.cc +15 -14
- data/third_party/boringssl-with-bazel/ssl/encrypted_client_hello.cc +41 -25
- data/third_party/boringssl-with-bazel/ssl/extensions.cc +153 -171
- data/third_party/boringssl-with-bazel/ssl/handoff.cc +79 -64
- data/third_party/boringssl-with-bazel/ssl/handshake.cc +15 -16
- data/third_party/boringssl-with-bazel/ssl/handshake_client.cc +35 -78
- data/third_party/boringssl-with-bazel/ssl/handshake_server.cc +75 -155
- data/third_party/boringssl-with-bazel/ssl/internal.h +419 -308
- data/third_party/boringssl-with-bazel/ssl/s3_both.cc +17 -150
- data/third_party/boringssl-with-bazel/ssl/s3_lib.cc +2 -3
- data/third_party/boringssl-with-bazel/ssl/s3_pkt.cc +10 -9
- data/third_party/boringssl-with-bazel/ssl/ssl_asn1.cc +13 -13
- data/third_party/boringssl-with-bazel/ssl/ssl_buffer.cc +8 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_cert.cc +58 -24
- data/third_party/boringssl-with-bazel/ssl/ssl_cipher.cc +198 -26
- data/third_party/boringssl-with-bazel/ssl/ssl_credential.cc +164 -37
- data/third_party/boringssl-with-bazel/ssl/ssl_file.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_key_share.cc +2 -95
- data/third_party/boringssl-with-bazel/ssl/ssl_lib.cc +785 -472
- data/third_party/boringssl-with-bazel/ssl/ssl_privkey.cc +78 -67
- data/third_party/boringssl-with-bazel/ssl/ssl_session.cc +187 -150
- data/third_party/boringssl-with-bazel/ssl/ssl_stat.cc +6 -3
- data/third_party/boringssl-with-bazel/ssl/ssl_transcript.cc +1 -1
- data/third_party/boringssl-with-bazel/ssl/ssl_versions.cc +25 -19
- data/third_party/boringssl-with-bazel/ssl/ssl_x509.cc +148 -114
- data/third_party/boringssl-with-bazel/ssl/t1_enc.cc +28 -19
- data/third_party/boringssl-with-bazel/ssl/tls13_both.cc +24 -22
- data/third_party/boringssl-with-bazel/ssl/tls13_client.cc +30 -30
- data/third_party/boringssl-with-bazel/ssl/tls13_enc.cc +17 -16
- data/third_party/boringssl-with-bazel/ssl/tls13_server.cc +55 -63
- data/third_party/boringssl-with-bazel/ssl/tls_method.cc +12 -12
- data/third_party/boringssl-with-bazel/ssl/tls_record.cc +23 -20
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64.h +38 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64_msvc.h +2 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_field.c.inc +26 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_point.br.c.inc +0 -54
- data/third_party/cares/cares/include/ares.h +8 -0
- data/third_party/cares/cares/include/ares_dns_record.h +3 -2
- data/third_party/cares/cares/include/ares_version.h +3 -3
- data/third_party/cares/cares/src/lib/ares_addrinfo_localhost.c +20 -20
- data/third_party/cares/cares/src/lib/ares_cancel.c +17 -8
- data/third_party/cares/cares/src/lib/ares_close_sockets.c +81 -16
- data/third_party/cares/cares/src/lib/ares_conn.c +256 -10
- data/third_party/cares/cares/src/lib/ares_conn.h +40 -3
- data/third_party/cares/cares/src/lib/ares_cookie.c +2 -2
- data/third_party/cares/cares/src/lib/ares_destroy.c +75 -10
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +85 -10
- data/third_party/cares/cares/src/lib/ares_gethostbyaddr.c +5 -0
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +4 -0
- data/third_party/cares/cares/src/lib/ares_getnameinfo.c +10 -2
- data/third_party/cares/cares/src/lib/ares_hosts_file.c +8 -0
- data/third_party/cares/cares/src/lib/ares_inet_net_pton.h +28 -0
- data/third_party/cares/cares/src/lib/ares_init.c +55 -10
- data/third_party/cares/cares/src/lib/ares_library_init.c +25 -7
- data/third_party/cares/cares/src/lib/ares_options.c +38 -10
- data/third_party/cares/cares/src/lib/ares_parse_into_addrinfo.c +1 -1
- data/third_party/cares/cares/src/lib/ares_private.h +186 -27
- data/third_party/cares/cares/src/lib/ares_process.c +604 -112
- data/third_party/cares/cares/src/lib/ares_qcache.c +200 -36
- data/third_party/cares/cares/src/lib/ares_query.c +5 -0
- data/third_party/cares/cares/src/lib/ares_search.c +10 -0
- data/third_party/cares/cares/src/lib/ares_send.c +81 -10
- data/third_party/cares/cares/src/lib/ares_set_socket_functions.c +3 -1
- data/third_party/cares/cares/src/lib/ares_socket.c +28 -0
- data/third_party/cares/cares/src/lib/ares_socket.h +23 -0
- data/third_party/cares/cares/src/lib/ares_sysconfig.c +6 -3
- data/third_party/cares/cares/src/lib/ares_sysconfig_files.c +33 -11
- data/third_party/cares/cares/src/lib/ares_sysconfig_win.c +132 -80
- data/third_party/cares/cares/src/lib/ares_timeout.c +11 -0
- data/third_party/cares/cares/src/lib/ares_update_servers.c +55 -11
- data/third_party/cares/cares/src/lib/dsa/ares_array.c +20 -5
- data/third_party/cares/cares/src/lib/dsa/ares_htable.c +8 -4
- data/third_party/cares/cares/src/lib/dsa/ares_htable_dict.c +2 -0
- data/third_party/cares/cares/src/lib/dsa/ares_llist.c +4 -1
- data/third_party/cares/cares/src/lib/event/ares_event_configchg.c +5 -2
- data/third_party/cares/cares/src/lib/event/ares_event_select.c +14 -1
- data/third_party/cares/cares/src/lib/event/ares_event_thread.c +8 -0
- data/third_party/cares/cares/src/lib/event/ares_event_wake_pipe.c +7 -1
- data/third_party/cares/cares/src/lib/event/ares_event_win32.c +3 -0
- data/third_party/cares/cares/src/lib/include/ares_mem.h +3 -0
- data/third_party/cares/cares/src/lib/include/ares_str.h +17 -0
- data/third_party/cares/cares/src/lib/inet_net_pton.c +37 -28
- data/third_party/cares/cares/src/lib/legacy/ares_expand_name.c +1 -1
- data/third_party/cares/cares/src/lib/legacy/ares_parse_a_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_aaaa_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ns_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ptr_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_uri_reply.c +1 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_mapping.c +19 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_multistring.c +3 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_name.c +67 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_parse.c +62 -34
- data/third_party/cares/cares/src/lib/record/ares_dns_private.h +4 -0
- data/third_party/cares/cares/src/lib/record/ares_dns_record.c +47 -7
- data/third_party/cares/cares/src/lib/record/ares_dns_write.c +13 -5
- data/third_party/cares/cares/src/lib/str/ares_buf.c +33 -16
- data/third_party/cares/cares/src/lib/str/ares_str.c +54 -0
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.c +22 -10
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_math.c +17 -2
- data/third_party/cares/cares/src/lib/util/ares_math.h +32 -7
- data/third_party/cares/cares/src/lib/util/ares_rand.c +4 -4
- data/third_party/cares/cares/src/lib/util/ares_threads.c +1 -2
- data/third_party/cares/cares/src/lib/util/ares_time.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_uri.c +9 -3
- data/third_party/zlib/compress.c +34 -10
- data/third_party/zlib/crc32.c +49 -115
- data/third_party/zlib/deflate.c +107 -61
- data/third_party/zlib/deflate.h +7 -1
- data/third_party/zlib/gzguts.h +33 -31
- data/third_party/zlib/infback.c +20 -67
- data/third_party/zlib/inffast.c +7 -6
- data/third_party/zlib/inffixed.h +91 -91
- data/third_party/zlib/inflate.c +38 -151
- data/third_party/zlib/inflate.h +1 -1
- data/third_party/zlib/inftrees.c +134 -9
- data/third_party/zlib/inftrees.h +3 -1
- data/third_party/zlib/trees.c +14 -12
- data/third_party/zlib/uncompr.c +39 -23
- data/third_party/zlib/zconf.h +27 -19
- data/third_party/zlib/zlib.h +215 -96
- data/third_party/zlib/zutil.c +49 -35
- data/third_party/zlib/zutil.h +87 -10
- metadata +23 -9
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +0 -916
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +0 -84
- data/src/core/server/xds_channel_stack_modifier.cc +0 -108
- data/src/core/server/xds_channel_stack_modifier.h +0 -62
- data/src/core/server/xds_server_config_fetcher_legacy.cc +0 -1340
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256_internal.h +0 -193
- data/third_party/boringssl-with-bazel/crypto/kyber/internal.h +0 -165
- data/third_party/boringssl-with-bazel/crypto/kyber/kyber.cc +0 -870
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
#include <assert.h>
|
|
20
20
|
#include <ctype.h>
|
|
21
|
-
#include <inttypes.h>
|
|
22
21
|
#include <string.h>
|
|
23
22
|
|
|
24
23
|
#include "../asn1/internal.h"
|
|
@@ -277,10 +276,7 @@ int CBS_get_u64_decimal(CBS *cbs, uint64_t *out) {
|
|
|
277
276
|
return seen_digit;
|
|
278
277
|
}
|
|
279
278
|
|
|
280
|
-
|
|
281
|
-
// `*out` to the result. This is the encoding used in DER for both high tag
|
|
282
|
-
// number form and OID components.
|
|
283
|
-
static int parse_base128_integer(CBS *cbs, uint64_t *out) {
|
|
279
|
+
int CBS_get_asn1_oid_component(CBS *cbs, uint64_t *out) {
|
|
284
280
|
uint64_t v = 0;
|
|
285
281
|
uint8_t b;
|
|
286
282
|
do {
|
|
@@ -319,8 +315,9 @@ static int parse_asn1_tag(CBS *cbs, CBS_ASN1_TAG *out) {
|
|
|
319
315
|
CBS_ASN1_TAG tag = ((CBS_ASN1_TAG)tag_byte & 0xe0) << CBS_ASN1_TAG_SHIFT;
|
|
320
316
|
CBS_ASN1_TAG tag_number = tag_byte & 0x1f;
|
|
321
317
|
if (tag_number == 0x1f) {
|
|
318
|
+
// High tag numbers are encoded in the same format as OID components.
|
|
322
319
|
uint64_t v;
|
|
323
|
-
if (!
|
|
320
|
+
if (!CBS_get_asn1_oid_component(cbs, &v) ||
|
|
324
321
|
// Check the tag number is within our supported bounds.
|
|
325
322
|
v > CBS_ASN1_TAG_NUMBER_MASK ||
|
|
326
323
|
// Small tag numbers should have used low tag number form, even in BER.
|
|
@@ -732,12 +729,6 @@ int CBS_is_unsigned_asn1_integer(const CBS *cbs) {
|
|
|
732
729
|
return CBS_is_valid_asn1_integer(cbs, &is_negative) && !is_negative;
|
|
733
730
|
}
|
|
734
731
|
|
|
735
|
-
static int add_decimal(CBB *out, uint64_t v) {
|
|
736
|
-
char buf[DECIMAL_SIZE(uint64_t) + 1];
|
|
737
|
-
snprintf(buf, sizeof(buf), "%" PRIu64, v);
|
|
738
|
-
return CBB_add_bytes(out, (const uint8_t *)buf, strlen(buf));
|
|
739
|
-
}
|
|
740
|
-
|
|
741
732
|
int CBS_is_valid_asn1_oid(const CBS *cbs) {
|
|
742
733
|
if (CBS_len(cbs) == 0) {
|
|
743
734
|
return 0; // OID encodings cannot be empty.
|
|
@@ -747,9 +738,9 @@ int CBS_is_valid_asn1_oid(const CBS *cbs) {
|
|
|
747
738
|
uint8_t v, prev = 0;
|
|
748
739
|
while (CBS_get_u8(©, &v)) {
|
|
749
740
|
// OID encodings are a sequence of minimally-encoded base-128 integers (see
|
|
750
|
-
// `
|
|
751
|
-
// of an integer (or `v` is the first byte). `v` is then the first byte
|
|
752
|
-
// the next integer. If first byte of an integer is 0x80, it is not
|
|
741
|
+
// `CBS_get_asn1_oid_component`). If `prev`'s MSB was clear, it was the last
|
|
742
|
+
// byte of an integer (or `v` is the first byte). `v` is then the first byte
|
|
743
|
+
// of the next integer. If first byte of an integer is 0x80, it is not
|
|
753
744
|
// minimally-encoded.
|
|
754
745
|
if ((prev & 0x80) == 0 && v == 0x80) {
|
|
755
746
|
return 0;
|
|
@@ -770,23 +761,23 @@ char *CBS_asn1_oid_to_text(const CBS *cbs) {
|
|
|
770
761
|
|
|
771
762
|
// The first component is 40 * value1 + value2, where value1 is 0, 1, or 2.
|
|
772
763
|
uint64_t v;
|
|
773
|
-
if (!
|
|
764
|
+
if (!CBS_get_asn1_oid_component(©, &v)) {
|
|
774
765
|
goto err;
|
|
775
766
|
}
|
|
776
767
|
|
|
777
768
|
if (v >= 80) {
|
|
778
769
|
if (!CBB_add_bytes(&cbb, (const uint8_t *)"2.", 2) ||
|
|
779
|
-
!
|
|
770
|
+
!cbb_add_decimal_ascii(&cbb, v - 80)) {
|
|
780
771
|
goto err;
|
|
781
772
|
}
|
|
782
|
-
} else if (!
|
|
783
|
-
!
|
|
773
|
+
} else if (!cbb_add_decimal_ascii(&cbb, v / 40) || !CBB_add_u8(&cbb, '.') ||
|
|
774
|
+
!cbb_add_decimal_ascii(&cbb, v % 40)) {
|
|
784
775
|
goto err;
|
|
785
776
|
}
|
|
786
777
|
|
|
787
778
|
while (CBS_len(©) != 0) {
|
|
788
|
-
if (!
|
|
789
|
-
!
|
|
779
|
+
if (!CBS_get_asn1_oid_component(©, &v) || !CBB_add_u8(&cbb, '.') ||
|
|
780
|
+
!cbb_add_decimal_ascii(&cbb, v)) {
|
|
790
781
|
goto err;
|
|
791
782
|
}
|
|
792
783
|
}
|
|
@@ -809,25 +800,15 @@ int CBS_is_valid_asn1_relative_oid(const CBS *cbs) {
|
|
|
809
800
|
}
|
|
810
801
|
|
|
811
802
|
char *CBS_asn1_relative_oid_to_text(const CBS *cbs) {
|
|
812
|
-
CBS copy = *cbs;
|
|
813
803
|
ScopedCBB cbb;
|
|
814
804
|
if (!CBB_init(cbb.get(), 32)) {
|
|
815
805
|
return nullptr;
|
|
816
806
|
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
uint64_t v;
|
|
820
|
-
if (!parse_base128_integer(©, &v) || !add_decimal(cbb.get(), v)) {
|
|
807
|
+
if (!CBB_add_asn1_relative_oid_from_der_to_text(cbb.get(), CBS_data(cbs),
|
|
808
|
+
CBS_len(cbs))) {
|
|
821
809
|
return nullptr;
|
|
822
810
|
}
|
|
823
811
|
|
|
824
|
-
while (CBS_len(©) != 0) {
|
|
825
|
-
if (!parse_base128_integer(©, &v) || !CBB_add_u8(cbb.get(), '.') ||
|
|
826
|
-
!add_decimal(cbb.get(), v)) {
|
|
827
|
-
return nullptr;
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
|
|
831
812
|
uint8_t *txt;
|
|
832
813
|
size_t txt_len;
|
|
833
814
|
if (!CBB_add_u8(cbb.get(), '\0') || !CBB_finish(cbb.get(), &txt, &txt_len)) {
|
|
@@ -942,7 +923,7 @@ static int CBS_parse_rfc5280_time_internal(const CBS *cbs, int is_gentime,
|
|
|
942
923
|
// If allow_timezone_offset is non-zero, allow for a four digit timezone
|
|
943
924
|
// offset to be specified even though this is not allowed by RFC 5280. We are
|
|
944
925
|
// permissive of this for UTCTimes due to the unfortunate existence of
|
|
945
|
-
//
|
|
926
|
+
// artisanally rolled long lived certificates that were baked into places that
|
|
946
927
|
// are now difficult to change. These certificates were generated with the
|
|
947
928
|
// 'openssl' command that permissively allowed the creation of certificates
|
|
948
929
|
// with notBefore and notAfter times specified as strings for direct
|
|
@@ -124,6 +124,11 @@ inline int I2DFromCBB(size_t initial_capacity, uint8_t **outp, CBBFunc func) {
|
|
|
124
124
|
return CBB_finish_i2d(cbb.get(), outp);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
// cbb_add_decimal_ascii adds the characters of an ASCII string representation
|
|
128
|
+
// of `v` as a decimal value to `out` (without a terminating NUL byte). It
|
|
129
|
+
// returns one on success and zero on error.
|
|
130
|
+
int cbb_add_decimal_ascii(CBB *out, uint64_t v);
|
|
131
|
+
|
|
127
132
|
BSSL_NAMESPACE_END
|
|
128
133
|
|
|
129
134
|
#endif // OPENSSL_HEADER_CRYPTO_BYTESTRING_INTERNAL_H
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#include "../fipsmodule/aes/internal.h"
|
|
25
25
|
#include "../fipsmodule/cipher/internal.h"
|
|
26
26
|
#include "../internal.h"
|
|
27
|
+
#include "internal.h"
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
using namespace bssl;
|
|
@@ -36,18 +37,7 @@ void inc_counter(uint8_t tag[16], uint32_t by) {
|
|
|
36
37
|
CRYPTO_store_u32_le(tag, CRYPTO_load_u32_le(tag) + by);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
// and restore xmm6 through xmm15.
|
|
41
|
-
#if defined(OPENSSL_X86_64) && !defined(OPENSSL_NO_ASM) && \
|
|
42
|
-
!defined(OPENSSL_WINDOWS)
|
|
43
|
-
#define AES_GCM_SIV_ASM
|
|
44
|
-
|
|
45
|
-
// Optimised AES-GCM-SIV
|
|
46
|
-
|
|
47
|
-
struct aead_aes_gcm_siv_asm_ctx {
|
|
48
|
-
alignas(16) uint8_t key[16 * 15];
|
|
49
|
-
int is_128_bit;
|
|
50
|
-
};
|
|
40
|
+
#if defined(AES_GCM_SIV_ASM)
|
|
51
41
|
|
|
52
42
|
// The assembly code assumes 8-byte alignment of the EVP_AEAD_CTX's state, and
|
|
53
43
|
// aligns to 16 bytes itself.
|
|
@@ -57,133 +47,6 @@ static_assert(sizeof(((EVP_AEAD_CTX *)nullptr)->state) >=
|
|
|
57
47
|
static_assert(alignof(union evp_aead_ctx_st_state) >= 8,
|
|
58
48
|
"AEAD state has insufficient alignment");
|
|
59
49
|
|
|
60
|
-
extern "C" {
|
|
61
|
-
// aes128gcmsiv_aes_ks writes an AES-128 key schedule for `key` to
|
|
62
|
-
// `out_expanded_key`.
|
|
63
|
-
extern void aes128gcmsiv_aes_ks(const uint8_t key[16],
|
|
64
|
-
uint8_t out_expanded_key[16 * 15]);
|
|
65
|
-
|
|
66
|
-
// aes256gcmsiv_aes_ks writes an AES-256 key schedule for `key` to
|
|
67
|
-
// `out_expanded_key`.
|
|
68
|
-
extern void aes256gcmsiv_aes_ks(const uint8_t key[32],
|
|
69
|
-
uint8_t out_expanded_key[16 * 15]);
|
|
70
|
-
|
|
71
|
-
// aesgcmsiv_polyval_horner updates the POLYVAL value in `in_out_poly` to
|
|
72
|
-
// include a number (`in_blocks`) of 16-byte blocks of data from `in`, given
|
|
73
|
-
// the POLYVAL key in `key`.
|
|
74
|
-
extern void aesgcmsiv_polyval_horner(const uint8_t in_out_poly[16],
|
|
75
|
-
const uint8_t key[16], const uint8_t *in,
|
|
76
|
-
size_t in_blocks);
|
|
77
|
-
|
|
78
|
-
// aesgcmsiv_htable_init writes powers 1..8 of `auth_key` to `out_htable`.
|
|
79
|
-
extern void aesgcmsiv_htable_init(uint8_t out_htable[16 * 8],
|
|
80
|
-
const uint8_t auth_key[16]);
|
|
81
|
-
|
|
82
|
-
// aesgcmsiv_htable6_init writes powers 1..6 of `auth_key` to `out_htable`.
|
|
83
|
-
extern void aesgcmsiv_htable6_init(uint8_t out_htable[16 * 6],
|
|
84
|
-
const uint8_t auth_key[16]);
|
|
85
|
-
|
|
86
|
-
// aesgcmsiv_htable_polyval updates the POLYVAL value in `in_out_poly` to
|
|
87
|
-
// include `in_len` bytes of data from `in`. (Where `in_len` must be a multiple
|
|
88
|
-
// of 16.) It uses the precomputed powers of the key given in `htable`.
|
|
89
|
-
extern void aesgcmsiv_htable_polyval(const uint8_t htable[16 * 8],
|
|
90
|
-
const uint8_t *in, size_t in_len,
|
|
91
|
-
uint8_t in_out_poly[16]);
|
|
92
|
-
|
|
93
|
-
// aes128gcmsiv_dec decrypts `in_len` & ~15 bytes from `out` and writes them to
|
|
94
|
-
// `in`. `in` and `out` may be equal, but must not otherwise alias.
|
|
95
|
-
//
|
|
96
|
-
// `in_out_calculated_tag_and_scratch`, on entry, must contain:
|
|
97
|
-
// 1. The current value of the calculated tag, which will be updated during
|
|
98
|
-
// decryption and written back to the beginning of this buffer on exit.
|
|
99
|
-
// 2. The claimed tag, which is needed to derive counter values.
|
|
100
|
-
//
|
|
101
|
-
// While decrypting, the whole of `in_out_calculated_tag_and_scratch` may be
|
|
102
|
-
// used for other purposes. In order to decrypt and update the POLYVAL value, it
|
|
103
|
-
// uses the expanded key from `key` and the table of powers in `htable`.
|
|
104
|
-
extern void aes128gcmsiv_dec(const uint8_t *in, uint8_t *out,
|
|
105
|
-
uint8_t in_out_calculated_tag_and_scratch[16 * 8],
|
|
106
|
-
const uint8_t htable[16 * 6],
|
|
107
|
-
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
108
|
-
size_t in_len);
|
|
109
|
-
|
|
110
|
-
// aes256gcmsiv_dec acts like `aes128gcmsiv_dec`, but for AES-256.
|
|
111
|
-
extern void aes256gcmsiv_dec(const uint8_t *in, uint8_t *out,
|
|
112
|
-
uint8_t in_out_calculated_tag_and_scratch[16 * 8],
|
|
113
|
-
const uint8_t htable[16 * 6],
|
|
114
|
-
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
115
|
-
size_t in_len);
|
|
116
|
-
|
|
117
|
-
// aes128gcmsiv_kdf performs the AES-GCM-SIV KDF given the expanded key from
|
|
118
|
-
// `key_schedule` and the nonce in `nonce`. Note that, while only 12 bytes of
|
|
119
|
-
// the nonce are used, 16 bytes are read and so the value must be
|
|
120
|
-
// right-padded.
|
|
121
|
-
extern void aes128gcmsiv_kdf(const uint8_t nonce[16],
|
|
122
|
-
uint64_t out_key_material[8],
|
|
123
|
-
const uint8_t *key_schedule);
|
|
124
|
-
|
|
125
|
-
// aes256gcmsiv_kdf acts like `aes128gcmsiv_kdf`, but for AES-256.
|
|
126
|
-
extern void aes256gcmsiv_kdf(const uint8_t nonce[16],
|
|
127
|
-
uint64_t out_key_material[12],
|
|
128
|
-
const uint8_t *key_schedule);
|
|
129
|
-
|
|
130
|
-
// aes128gcmsiv_aes_ks_enc_x1 performs a key expansion of the AES-128 key in
|
|
131
|
-
// `key`, writes the expanded key to `out_expanded_key` and encrypts a single
|
|
132
|
-
// block from `in` to `out`.
|
|
133
|
-
extern void aes128gcmsiv_aes_ks_enc_x1(const uint8_t in[16], uint8_t out[16],
|
|
134
|
-
uint8_t out_expanded_key[16 * 15],
|
|
135
|
-
const uint64_t key[2]);
|
|
136
|
-
|
|
137
|
-
// aes256gcmsiv_aes_ks_enc_x1 acts like `aes128gcmsiv_aes_ks_enc_x1`, but for
|
|
138
|
-
// AES-256.
|
|
139
|
-
extern void aes256gcmsiv_aes_ks_enc_x1(const uint8_t in[16], uint8_t out[16],
|
|
140
|
-
uint8_t out_expanded_key[16 * 15],
|
|
141
|
-
const uint64_t key[4]);
|
|
142
|
-
|
|
143
|
-
// aes128gcmsiv_ecb_enc_block encrypts a single block from `in` to `out` using
|
|
144
|
-
// the expanded key in `expanded_key`.
|
|
145
|
-
extern void aes128gcmsiv_ecb_enc_block(
|
|
146
|
-
const uint8_t in[16], uint8_t out[16],
|
|
147
|
-
const struct aead_aes_gcm_siv_asm_ctx *expanded_key);
|
|
148
|
-
|
|
149
|
-
// aes256gcmsiv_ecb_enc_block acts like `aes128gcmsiv_ecb_enc_block`, but for
|
|
150
|
-
// AES-256.
|
|
151
|
-
extern void aes256gcmsiv_ecb_enc_block(
|
|
152
|
-
const uint8_t in[16], uint8_t out[16],
|
|
153
|
-
const struct aead_aes_gcm_siv_asm_ctx *expanded_key);
|
|
154
|
-
|
|
155
|
-
// aes128gcmsiv_enc_msg_x4 encrypts `in_len` bytes from `in` to `out` using the
|
|
156
|
-
// expanded key from `key`. (The value of `in_len` must be a multiple of 16.)
|
|
157
|
-
// The `in` and `out` buffers may be equal but must not otherwise overlap. The
|
|
158
|
-
// initial counter is constructed from the given `tag` as required by
|
|
159
|
-
// AES-GCM-SIV.
|
|
160
|
-
extern void aes128gcmsiv_enc_msg_x4(const uint8_t *in, uint8_t *out,
|
|
161
|
-
const uint8_t *tag,
|
|
162
|
-
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
163
|
-
size_t in_len);
|
|
164
|
-
|
|
165
|
-
// aes256gcmsiv_enc_msg_x4 acts like `aes128gcmsiv_enc_msg_x4`, but for
|
|
166
|
-
// AES-256.
|
|
167
|
-
extern void aes256gcmsiv_enc_msg_x4(const uint8_t *in, uint8_t *out,
|
|
168
|
-
const uint8_t *tag,
|
|
169
|
-
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
170
|
-
size_t in_len);
|
|
171
|
-
|
|
172
|
-
// aes128gcmsiv_enc_msg_x8 acts like `aes128gcmsiv_enc_msg_x4`, but is
|
|
173
|
-
// optimised for longer messages.
|
|
174
|
-
extern void aes128gcmsiv_enc_msg_x8(const uint8_t *in, uint8_t *out,
|
|
175
|
-
const uint8_t *tag,
|
|
176
|
-
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
177
|
-
size_t in_len);
|
|
178
|
-
|
|
179
|
-
// aes256gcmsiv_enc_msg_x8 acts like `aes256gcmsiv_enc_msg_x4`, but is
|
|
180
|
-
// optimised for longer messages.
|
|
181
|
-
extern void aes256gcmsiv_enc_msg_x8(const uint8_t *in, uint8_t *out,
|
|
182
|
-
const uint8_t *tag,
|
|
183
|
-
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
184
|
-
size_t in_len);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
50
|
// asm_ctx_from_ctx returns a 16-byte aligned context pointer from `ctx`.
|
|
188
51
|
struct aead_aes_gcm_siv_asm_ctx *asm_ctx_from_ctx(const EVP_AEAD_CTX *ctx) {
|
|
189
52
|
// ctx->state must already be 8-byte aligned. Thus, at most, we may need to
|
|
@@ -229,7 +92,7 @@ int aead_aes_gcm_siv_asm_init(EVP_AEAD_CTX *ctx, const uint8_t *key,
|
|
|
229
92
|
void aead_aes_gcm_siv_asm_cleanup(EVP_AEAD_CTX *ctx) {}
|
|
230
93
|
|
|
231
94
|
// gcm_siv_asm_polyval evaluates POLYVAL at `auth_key` on the given plaintext
|
|
232
|
-
// and AD. The result is written to `out_tag
|
|
95
|
+
// and AD. The result is written to `out_tag`, which must be 16-byte aligned.
|
|
233
96
|
void gcm_siv_asm_polyval(uint8_t out_tag[16], Span<const CRYPTO_IOVEC> iovecs,
|
|
234
97
|
Span<const CRYPTO_IVEC> aadvecs,
|
|
235
98
|
const uint8_t auth_key[16], const uint8_t nonce[12]) {
|
|
@@ -271,11 +134,11 @@ void gcm_siv_asm_polyval(uint8_t out_tag[16], Span<const CRYPTO_IOVEC> iovecs,
|
|
|
271
134
|
return true;
|
|
272
135
|
};
|
|
273
136
|
|
|
274
|
-
bssl::iovec::ForEachBlockRange<AES_BLOCK_SIZE, /*WriteOut=*/false>(
|
|
275
|
-
|
|
137
|
+
bssl::iovec::ForEachBlockRange<AES_BLOCK_SIZE, /*WriteOut=*/false>(
|
|
138
|
+
aadvecs, f_whole, f_final);
|
|
276
139
|
|
|
277
|
-
bssl::iovec::ForEachBlockRange<AES_BLOCK_SIZE, /*WriteOut=*/false>(
|
|
278
|
-
|
|
140
|
+
bssl::iovec::ForEachBlockRange<AES_BLOCK_SIZE, /*WriteOut=*/false>(
|
|
141
|
+
iovecs, f_whole, f_final);
|
|
279
142
|
|
|
280
143
|
uint8_t length_block[16];
|
|
281
144
|
CRYPTO_store_u64_le(length_block, ad_len * 8);
|
|
@@ -648,7 +511,7 @@ const EVP_AEAD aead_aes_256_gcm_siv_asm = {
|
|
|
648
511
|
nullptr /* tag_len */,
|
|
649
512
|
};
|
|
650
513
|
|
|
651
|
-
#endif //
|
|
514
|
+
#endif // AES_GCM_SIV_ASM
|
|
652
515
|
|
|
653
516
|
|
|
654
517
|
struct aead_aes_gcm_siv_ctx {
|
|
@@ -744,9 +607,9 @@ void gcm_siv_crypt(Span<const CRYPTO_IOVEC> iovecs,
|
|
|
744
607
|
// similar to the one that GHASH uses. See
|
|
745
608
|
// https://www.rfc-editor.org/rfc/rfc8452.html#section-3.
|
|
746
609
|
|
|
747
|
-
// POLYVAL(H,
|
|
748
|
-
// ByteReverse(GHASH(mulX_GHASH(ByteReverse(H)), ByteReverse(
|
|
749
|
-
// ByteReverse(
|
|
610
|
+
// POLYVAL(H, X₁, ..., Xₙ) =
|
|
611
|
+
// ByteReverse(GHASH(mulX_GHASH(ByteReverse(H)), ByteReverse(X₁), ...,
|
|
612
|
+
// ByteReverse(Xₙ))).
|
|
750
613
|
//
|
|
751
614
|
// See https://www.rfc-editor.org/rfc/rfc8452.html#appendix-A.
|
|
752
615
|
|
|
@@ -847,8 +710,8 @@ void gcm_siv_polyval(uint8_t out_tag[16], Span<const CRYPTO_IOVEC> iovecs,
|
|
|
847
710
|
return true;
|
|
848
711
|
};
|
|
849
712
|
|
|
850
|
-
bssl::iovec::ForEachBlockRange<AES_BLOCK_SIZE, /*WriteOut=*/false>(
|
|
851
|
-
|
|
713
|
+
bssl::iovec::ForEachBlockRange<AES_BLOCK_SIZE, /*WriteOut=*/false>(
|
|
714
|
+
aadvecs, f_whole, f_final);
|
|
852
715
|
|
|
853
716
|
if (encrypt) {
|
|
854
717
|
bssl::iovec::ForEachBlockRange<AES_BLOCK_SIZE, /*WriteOut=*/false>(
|
|
@@ -904,7 +767,7 @@ void gcm_siv_keys(const struct aead_aes_gcm_siv_ctx *gcm_siv_ctx,
|
|
|
904
767
|
}
|
|
905
768
|
|
|
906
769
|
OPENSSL_memcpy(out_keys->auth_key, key_material, 16);
|
|
907
|
-
// Note the `ctr128_f` function uses a big-endian
|
|
770
|
+
// Note the `ctr128_f` function uses a big-endian counter, while AES-GCM-SIV
|
|
908
771
|
// uses a little-endian counter. We ignore the return value and only use
|
|
909
772
|
// `block128_f`. This has a significant performance cost for the fallback
|
|
910
773
|
// bitsliced AES implementations (bsaes and aes_nohw).
|
|
@@ -1036,28 +899,20 @@ const EVP_AEAD aead_aes_256_gcm_siv = {
|
|
|
1036
899
|
};
|
|
1037
900
|
} // namespace
|
|
1038
901
|
|
|
1039
|
-
#if defined(AES_GCM_SIV_ASM)
|
|
1040
|
-
|
|
1041
902
|
const EVP_AEAD *EVP_aead_aes_128_gcm_siv() {
|
|
1042
|
-
|
|
1043
|
-
|
|
903
|
+
#if defined(AES_GCM_SIV_ASM)
|
|
904
|
+
if (aes_gcm_siv_asm_capable()) {
|
|
1044
905
|
return &aead_aes_128_gcm_siv_asm;
|
|
1045
906
|
}
|
|
907
|
+
#endif
|
|
1046
908
|
return &aead_aes_128_gcm_siv;
|
|
1047
909
|
}
|
|
1048
910
|
|
|
1049
911
|
const EVP_AEAD *EVP_aead_aes_256_gcm_siv() {
|
|
1050
|
-
|
|
1051
|
-
|
|
912
|
+
#if defined(AES_GCM_SIV_ASM)
|
|
913
|
+
if (aes_gcm_siv_asm_capable()) {
|
|
1052
914
|
return &aead_aes_256_gcm_siv_asm;
|
|
1053
915
|
}
|
|
916
|
+
#endif
|
|
1054
917
|
return &aead_aes_256_gcm_siv;
|
|
1055
918
|
}
|
|
1056
|
-
|
|
1057
|
-
#else
|
|
1058
|
-
|
|
1059
|
-
const EVP_AEAD *EVP_aead_aes_128_gcm_siv() { return &aead_aes_128_gcm_siv; }
|
|
1060
|
-
|
|
1061
|
-
const EVP_AEAD *EVP_aead_aes_256_gcm_siv() { return &aead_aes_256_gcm_siv; }
|
|
1062
|
-
|
|
1063
|
-
#endif // AES_GCM_SIV_ASM
|
|
@@ -332,12 +332,15 @@ static int aead_tls_openv(const EVP_AEAD_CTX *ctx,
|
|
|
332
332
|
// Split the decrypted record into `iovecs_without_trailer` and `trailer`,
|
|
333
333
|
// based on the public lower bound of where the plaintext ends. The plaintext
|
|
334
334
|
// is followed by `mac_len` and then at most 256 bytes of padding.
|
|
335
|
-
|
|
336
|
-
iovecs_without_trailer.CopyFrom(iovecs)
|
|
335
|
+
bssl::iovec::MaybeInplaceArray iovecs_without_trailer;
|
|
336
|
+
if (!iovecs_without_trailer.CopyFrom(iovecs)) {
|
|
337
|
+
return 0;
|
|
338
|
+
}
|
|
337
339
|
uint8_t trailer_buf[EVP_MAX_MD_SIZE + 256];
|
|
338
340
|
const size_t trailer_len = std::min(in_len, mac_len + 256);
|
|
339
|
-
std::optional<Span<const uint8_t>> trailer =
|
|
340
|
-
Span(trailer_buf).first(trailer_len),
|
|
341
|
+
std::optional<Span<const uint8_t>> trailer =
|
|
342
|
+
bssl::iovec::GetAndRemoveOutSuffix(Span(trailer_buf).first(trailer_len),
|
|
343
|
+
Span(iovecs_without_trailer));
|
|
341
344
|
BSSL_CHECK(trailer.has_value());
|
|
342
345
|
|
|
343
346
|
// Remove CBC padding. Code from here on is timing-sensitive with respect to
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
#include <assert.h>
|
|
19
19
|
#include <stdlib.h>
|
|
20
20
|
|
|
21
|
+
#include <openssl/aead.h>
|
|
21
22
|
#include <openssl/base.h>
|
|
22
23
|
#include <openssl/sha.h>
|
|
23
24
|
#include <openssl/span.h>
|
|
@@ -103,6 +104,9 @@ int EVP_tls_cbc_digest_record(
|
|
|
103
104
|
bssl::Span<const uint8_t> trailer, size_t data_in_trailer_size,
|
|
104
105
|
const uint8_t *mac_secret, unsigned mac_secret_length);
|
|
105
106
|
|
|
107
|
+
|
|
108
|
+
// ChaCha20-Poly1305 Assembly.
|
|
109
|
+
|
|
106
110
|
#define POLY1305_TAG_LEN 16
|
|
107
111
|
|
|
108
112
|
// For convenience (the x86_64 calling convention allows only six parameters in
|
|
@@ -235,6 +239,161 @@ inline void chacha20_poly1305_seal(uint8_t *out_ciphertext,
|
|
|
235
239
|
}
|
|
236
240
|
#endif
|
|
237
241
|
|
|
242
|
+
|
|
243
|
+
// AES-GCM-SIV Assembly.
|
|
244
|
+
|
|
245
|
+
// TODO(davidben): AES-GCM-SIV assembly is not correct for Windows. It must save
|
|
246
|
+
// and restore xmm6 through xmm15.
|
|
247
|
+
#if defined(OPENSSL_X86_64) && !defined(OPENSSL_NO_ASM) && \
|
|
248
|
+
!defined(OPENSSL_WINDOWS)
|
|
249
|
+
#define AES_GCM_SIV_ASM
|
|
250
|
+
|
|
251
|
+
struct aead_aes_gcm_siv_asm_ctx {
|
|
252
|
+
alignas(16) uint8_t key[16 * 15];
|
|
253
|
+
int is_128_bit;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
inline int aes_gcm_siv_asm_capable() {
|
|
257
|
+
return CRYPTO_is_AVX_capable() && CRYPTO_is_AESNI_capable() &&
|
|
258
|
+
CRYPTO_is_PCLMUL_capable();
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
extern "C" {
|
|
262
|
+
// aes128gcmsiv_aes_ks writes an AES-128 key schedule for `key` to
|
|
263
|
+
// `out_expanded_key`. `out_expanded_key` must be 16-byte aligned.
|
|
264
|
+
extern void aes128gcmsiv_aes_ks(const uint8_t key[16],
|
|
265
|
+
uint8_t out_expanded_key[16 * 15]);
|
|
266
|
+
|
|
267
|
+
// aes256gcmsiv_aes_ks writes an AES-256 key schedule for `key` to
|
|
268
|
+
// `out_expanded_key`. `out_expanded_key` must be 16-byte aligned.
|
|
269
|
+
extern void aes256gcmsiv_aes_ks(const uint8_t key[32],
|
|
270
|
+
uint8_t out_expanded_key[16 * 15]);
|
|
271
|
+
|
|
272
|
+
// aesgcmsiv_polyval_horner updates the POLYVAL value in `in_out_poly` to
|
|
273
|
+
// include a number (`in_blocks`) of 16-byte blocks of data from `in`, given
|
|
274
|
+
// the POLYVAL key in `key`. `in_out_poly` and `key` must be 16-byte aligned.
|
|
275
|
+
extern void aesgcmsiv_polyval_horner(const uint8_t in_out_poly[16],
|
|
276
|
+
const uint8_t key[16], const uint8_t *in,
|
|
277
|
+
size_t in_blocks);
|
|
278
|
+
|
|
279
|
+
// aesgcmsiv_htable_init writes powers 1..8 of `auth_key` to `out_htable`.
|
|
280
|
+
// `out_htable` and `auth_key` must be 16-byte aligned.
|
|
281
|
+
extern void aesgcmsiv_htable_init(uint8_t out_htable[16 * 8],
|
|
282
|
+
const uint8_t auth_key[16]);
|
|
283
|
+
|
|
284
|
+
// aesgcmsiv_htable6_init writes powers 1..6 of `auth_key` to `out_htable`.
|
|
285
|
+
// `out_htable` and `auth_key` must be 16-byte aligned.
|
|
286
|
+
extern void aesgcmsiv_htable6_init(uint8_t out_htable[16 * 6],
|
|
287
|
+
const uint8_t auth_key[16]);
|
|
288
|
+
|
|
289
|
+
// aesgcmsiv_htable_polyval updates the POLYVAL value in `in_out_poly` to
|
|
290
|
+
// include `in_len` bytes of data from `in`. (Where `in_len` must be a multiple
|
|
291
|
+
// of 16.) It uses the precomputed powers of the key given in `htable`.
|
|
292
|
+
// `in_out_poly` and `htable` must be 16-byte aligned.
|
|
293
|
+
extern void aesgcmsiv_htable_polyval(const uint8_t htable[16 * 8],
|
|
294
|
+
const uint8_t *in, size_t in_len,
|
|
295
|
+
uint8_t in_out_poly[16]);
|
|
296
|
+
|
|
297
|
+
// aes128gcmsiv_dec decrypts `in_len` & ~15 bytes from `out` and writes them to
|
|
298
|
+
// `in`. `in` and `out` may be equal, but must not otherwise alias.
|
|
299
|
+
//
|
|
300
|
+
// `in_out_calculated_tag_and_scratch`, on entry, must contain:
|
|
301
|
+
// 1. The current value of the calculated tag, which will be updated during
|
|
302
|
+
// decryption and written back to the beginning of this buffer on exit.
|
|
303
|
+
// 2. The claimed tag, which is needed to derive counter values.
|
|
304
|
+
//
|
|
305
|
+
// While decrypting, the whole of `in_out_calculated_tag_and_scratch` may be
|
|
306
|
+
// used for other purposes. `in_out_calculated_tag_and_scratch` and `htable`
|
|
307
|
+
// must be 16-byte aligned. In order to decrypt and update the POLYVAL value, it
|
|
308
|
+
// uses the expanded key from `key` and the table of powers in `htable`.
|
|
309
|
+
extern void aes128gcmsiv_dec(const uint8_t *in, uint8_t *out,
|
|
310
|
+
uint8_t in_out_calculated_tag_and_scratch[16 * 8],
|
|
311
|
+
const uint8_t htable[16 * 6],
|
|
312
|
+
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
313
|
+
size_t in_len);
|
|
314
|
+
|
|
315
|
+
// aes256gcmsiv_dec acts like `aes128gcmsiv_dec`, but for AES-256.
|
|
316
|
+
// `in_out_calculated_tag_and_scratch` and `htable` must be 16-byte aligned.
|
|
317
|
+
extern void aes256gcmsiv_dec(const uint8_t *in, uint8_t *out,
|
|
318
|
+
uint8_t in_out_calculated_tag_and_scratch[16 * 8],
|
|
319
|
+
const uint8_t htable[16 * 6],
|
|
320
|
+
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
321
|
+
size_t in_len);
|
|
322
|
+
|
|
323
|
+
// aes128gcmsiv_kdf performs the AES-GCM-SIV KDF given the expanded key from
|
|
324
|
+
// `key_schedule` and the nonce in `nonce`. Note that, while only 12 bytes of
|
|
325
|
+
// the nonce are used, 16 bytes are read and so the value must be
|
|
326
|
+
// right-padded. `nonce`, `out_key_material`, and `key_schedule` must be
|
|
327
|
+
// 16-byte aligned.
|
|
328
|
+
extern void aes128gcmsiv_kdf(const uint8_t nonce[16],
|
|
329
|
+
uint64_t out_key_material[8],
|
|
330
|
+
const uint8_t *key_schedule);
|
|
331
|
+
|
|
332
|
+
// aes256gcmsiv_kdf acts like `aes128gcmsiv_kdf`, but for AES-256. `nonce`,
|
|
333
|
+
// `out_key_material`, and `key_schedule` must be 16-byte aligned.
|
|
334
|
+
extern void aes256gcmsiv_kdf(const uint8_t nonce[16],
|
|
335
|
+
uint64_t out_key_material[12],
|
|
336
|
+
const uint8_t *key_schedule);
|
|
337
|
+
|
|
338
|
+
// aes128gcmsiv_aes_ks_enc_x1 performs a key expansion of the AES-128 key in
|
|
339
|
+
// `key`, writes the expanded key to `out_expanded_key` and encrypts a single
|
|
340
|
+
// block from `in` to `out`. `in`, `out`, `out_expanded_key`, and `key` must be
|
|
341
|
+
// 16-byte aligned.
|
|
342
|
+
extern void aes128gcmsiv_aes_ks_enc_x1(const uint8_t in[16], uint8_t out[16],
|
|
343
|
+
uint8_t out_expanded_key[16 * 15],
|
|
344
|
+
const uint64_t key[2]);
|
|
345
|
+
|
|
346
|
+
// aes256gcmsiv_aes_ks_enc_x1 acts like `aes128gcmsiv_aes_ks_enc_x1`, but for
|
|
347
|
+
// AES-256. `in`, `out`, `out_expanded_key`, and `key` must be 16-byte aligned.
|
|
348
|
+
extern void aes256gcmsiv_aes_ks_enc_x1(const uint8_t in[16], uint8_t out[16],
|
|
349
|
+
uint8_t out_expanded_key[16 * 15],
|
|
350
|
+
const uint64_t key[4]);
|
|
351
|
+
|
|
352
|
+
// aes128gcmsiv_ecb_enc_block encrypts a single block from `in` to `out` using
|
|
353
|
+
// the expanded key in `expanded_key`. `in` and `out` must be 16-byte aligned.
|
|
354
|
+
extern void aes128gcmsiv_ecb_enc_block(
|
|
355
|
+
const uint8_t in[16], uint8_t out[16],
|
|
356
|
+
const struct aead_aes_gcm_siv_asm_ctx *expanded_key);
|
|
357
|
+
|
|
358
|
+
// aes256gcmsiv_ecb_enc_block acts like `aes128gcmsiv_ecb_enc_block`, but for
|
|
359
|
+
// AES-256. `in` and `out` must be 16-byte aligned.
|
|
360
|
+
extern void aes256gcmsiv_ecb_enc_block(
|
|
361
|
+
const uint8_t in[16], uint8_t out[16],
|
|
362
|
+
const struct aead_aes_gcm_siv_asm_ctx *expanded_key);
|
|
363
|
+
|
|
364
|
+
// aes128gcmsiv_enc_msg_x4 encrypts `in_len` bytes from `in` to `out` using the
|
|
365
|
+
// expanded key from `key`. (The value of `in_len` must be a multiple of 16.)
|
|
366
|
+
// The `in` and `out` buffers may be equal but must not otherwise overlap. The
|
|
367
|
+
// initial counter is constructed from the given `tag` as required by
|
|
368
|
+
// AES-GCM-SIV. `tag` must be 16-byte aligned.
|
|
369
|
+
extern void aes128gcmsiv_enc_msg_x4(const uint8_t *in, uint8_t *out,
|
|
370
|
+
const uint8_t *tag,
|
|
371
|
+
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
372
|
+
size_t in_len);
|
|
373
|
+
|
|
374
|
+
// aes256gcmsiv_enc_msg_x4 acts like `aes128gcmsiv_enc_msg_x4`, but for
|
|
375
|
+
// AES-256. `tag` must be 16-byte aligned.
|
|
376
|
+
extern void aes256gcmsiv_enc_msg_x4(const uint8_t *in, uint8_t *out,
|
|
377
|
+
const uint8_t *tag,
|
|
378
|
+
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
379
|
+
size_t in_len);
|
|
380
|
+
|
|
381
|
+
// aes128gcmsiv_enc_msg_x8 acts like `aes128gcmsiv_enc_msg_x4`, but is
|
|
382
|
+
// optimised for longer messages.
|
|
383
|
+
extern void aes128gcmsiv_enc_msg_x8(const uint8_t *in, uint8_t *out,
|
|
384
|
+
const uint8_t *tag,
|
|
385
|
+
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
386
|
+
size_t in_len);
|
|
387
|
+
|
|
388
|
+
// aes256gcmsiv_enc_msg_x8 acts like `aes256gcmsiv_enc_msg_x4`, but is
|
|
389
|
+
// optimised for longer messages.
|
|
390
|
+
extern void aes256gcmsiv_enc_msg_x8(const uint8_t *in, uint8_t *out,
|
|
391
|
+
const uint8_t *tag,
|
|
392
|
+
const struct aead_aes_gcm_siv_asm_ctx *key,
|
|
393
|
+
size_t in_len);
|
|
394
|
+
}
|
|
395
|
+
#endif // OPENSSL_X86_64 && !OPENSSL_NO_ASM && !OPENSSL_WINDOWS
|
|
396
|
+
|
|
238
397
|
BSSL_NAMESPACE_END
|
|
239
398
|
|
|
240
399
|
#endif // OPENSSL_HEADER_CRYPTO_CIPHER_INTERNAL_H
|