[Fix] Harden MTP codec, transport, and SDK security
This commit is contained in:
parent
188caf56cc
commit
a7e804c603
73 changed files with 11892 additions and 5756 deletions
|
|
@ -11,20 +11,33 @@ pub use data_value::{
|
|||
ApplicationProtectionPurpose, EncryptedValue, MtpProtectionPurpose, ProtectionError,
|
||||
ProtectionPolicy, ProtectionPurpose, ProtectionPurposeError, SignaturePolicy, SignedValue,
|
||||
};
|
||||
pub use data_value::{DataKind, DataValue, DecodeLimits};
|
||||
pub use data_value::{
|
||||
DEFAULT_TRANSPORT_ALLOCATION_FACTOR, DataKind, DataValue, DecodeError, DecodeLimits,
|
||||
EncodeLimits,
|
||||
};
|
||||
pub use mtp_common::{CodecError, TimeError, unix_time_millis};
|
||||
#[cfg(feature = "crypto")]
|
||||
#[allow(deprecated)]
|
||||
pub use protected::{
|
||||
CURRENT_PROTECTED_VERSION, InMemoryReplayGuard, ProtectedError, ProtectedMessageBuilder,
|
||||
ProtectedOpenOptions, ReplayError, ReplayGuard, VerifiedProtectedMessage, open_protected,
|
||||
open_protected_with, open_protected_with_keys, protected_claimed_signer_id,
|
||||
CURRENT_PROTECTED_VERSION, InMemoryReplayGuard, ProtectedError, ProtectedLimits,
|
||||
ProtectedMessageBuilder, ProtectedOpenOptions, ReplayError, ReplayGuard,
|
||||
VerifiedProtectedMessage, open_protected_checked, open_protected_with_checked,
|
||||
open_protected_with_keys_checked, open_protected_with_keys_without_replay,
|
||||
open_protected_with_without_replay, open_protected_without_replay, protected_claimed_signer_id,
|
||||
protected_claimed_signer_id_with_limits, protected_claimed_signer_id_with_options,
|
||||
};
|
||||
#[cfg(feature = "crypto")]
|
||||
#[allow(deprecated)]
|
||||
pub use relay::{
|
||||
CURRENT_RELAY_VERSION, RelayError, SealedRelayBuilder, VerifiedRelayContent,
|
||||
CURRENT_RELAY_VERSION, RelayError, RelayOpenOptions, SealedRelayBuilder, VerifiedRelayContent,
|
||||
VerifiedRelayMetadata, forward_relay_frame, open_relay_content,
|
||||
open_relay_content_with_keyrings, open_relay_content_with_keys, open_relay_metadata,
|
||||
open_relay_metadata_with, open_relay_metadata_with_keys, relay_metadata_claimed_signer_id,
|
||||
open_relay_content_with_keyrings, open_relay_content_with_keyrings_and_limits,
|
||||
open_relay_content_with_keys, open_relay_content_with_limits,
|
||||
open_relay_content_with_limits_without_replay, open_relay_metadata_checked,
|
||||
open_relay_metadata_with_checked, open_relay_metadata_with_limits_checked,
|
||||
open_relay_metadata_with_limits_without_replay, open_relay_metadata_with_without_replay,
|
||||
open_relay_metadata_without_replay, relay_metadata_claimed_signer_id,
|
||||
relay_metadata_claimed_signer_id_with_limits, relay_metadata_claimed_signer_id_with_options,
|
||||
};
|
||||
|
||||
pub use mtp_type_map::{
|
||||
|
|
|
|||
Loading…
Reference in a new issue