MCPcopy Create free account

hub / github.com/discord/itsdangerous-rs / functions

Functions111 in github.com/discord/itsdangerous-rs

↓ 23 callersMethodbuild
Builds a Signer using the configuration specified in this builder.
src/signer.rs:68
↓ 23 callersFunctiondefault_builder
Constructs a default signer builder, using the [`sha1`] digest, [`hmac`], and the [`django concat`] key derivation. [`django concat`]: crate::key_der
src/signer.rs:28
↓ 9 callersMethodinto_timestamp_signer
(self)
src/signer.rs:201
↓ 7 callersMethodinput_chained
(mut self, value: &[u8])
src/algorithm.rs:38
↓ 7 callersFunctionserializer_with_signer
( signer: TSigner, encoding: TEncoding, )
src/serde_serializer.rs:33
↓ 5 callersMethodsign_with_timestamp
Signs a value with an arbitrary timestamp.
src/timed.rs:41
↓ 5 callersMethodsplit
( &'a self, value: &'a str, )
src/timed.rs:20
↓ 4 callersMethodas_slice
(&self)
src/base64.rs:61
↓ 4 callersFunctiondeserialize
( value: &'a str, encoding: &Encoding, )
src/serde_serializer.rs:78
↓ 4 callersMethodseparator
(&self)
src/timed.rs:36
↓ 4 callersMethodunsign
The inverse of [`sign`] / [`sign_with_timestamp`], returning an [`UnsignedValue`], which you can grab the value, timestamp, and assert the max age of
src/timed.rs:86
↓ 3 callersMethodbase64_encode_str
(self, target: &mut String)
src/algorithm.rs:133
↓ 3 callersFunctiondecode
(input: &T)
src/base64.rs:76
↓ 3 callersMethodsign
(&self, value: S)
src/signer.rs:150
↓ 3 callersMethodsign
(&self, value: &T)
src/multi_serializer.rs:77
↓ 3 callersMethodsign
(self)
src/algorithm.rs:68
↓ 3 callersFunctiontimed_serializer_with_signer
( signer: TSigner, encoding: TEncoding, )
src/serde_serializer.rs:44
↓ 3 callersMethodverify_encoded_signature
(&self, value: &[u8], encoded_signature: &[u8])
src/signer.rs:137
↓ 2 callersMethodas_signer
(&self)
src/serde_serializer.rs:133
↓ 2 callersMethodas_slice
(&self)
src/timestamp.rs:17
↓ 2 callersMethoddecode
(&self, encoded_input: String)
src/serde_serializer.rs:60
↓ 2 callersFunctionencode
(input: &T)
src/base64.rs:29
↓ 2 callersMethodencode
(&self, serialized_input: String)
src/serde_serializer.rs:56
↓ 2 callersFunctionencode_slice
(input: &T, target: &mut [u8])
src/base64.rs:39
↓ 2 callersMethodget_signature
Returns the signature for a given key + value.
src/traits.rs:66
↓ 2 callersMethodget_signer
(&self)
src/signer.rs:187
↓ 2 callersMethodsign
Signs a value using the current system timestamp (as provided by [`SystemTime::now`]).
src/timed.rs:70
↓ 2 callersMethodsign
(&self, value: &T)
src/serde_serializer.rs:99
↓ 2 callersMethodsign_with_timestamp
( &self, value: &T, timestamp: SystemTime, )
src/serde_serializer.rs:147
↓ 1 callersMethodadd_fallback
Adds a [`Serializer`] to as a fallback, that will be attempted to be used to unsign a value if the primary serializer fails to unsign a value. # Rema
src/multi_serializer.rs:59
↓ 1 callersMethodas_str
(&self)
src/timestamp.rs:27
↓ 1 callersMethodcode
(self)
src/algorithm.rs:127
↓ 1 callersMethoddecode_signature
( &self, encoded_signature: &[u8], )
src/signer.rs:103
↓ 1 callersFunctiondecode_str
(input: &T)
src/base64.rs:98
↓ 1 callersFunctionencode_str
(input: &T, target: &mut String)
src/base64.rs:48
↓ 1 callersFunctionin_alphabet
Returns whether or not a given character is in the base64 alphabet.
src/base64.rs:106
↓ 1 callersMethodinput
(&mut self, _value: &[u8])
src/algorithm.rs:63
↓ 1 callersMethodinto_exact_inner
(self)
src/base64.rs:65
↓ 1 callersMethodlength
(&self)
src/timestamp.rs:22
↓ 1 callersMethodsignature_output_size
(&self)
src/signer.rs:132
↓ 1 callersMethodsigner
(&self)
src/serde_serializer.rs:28
↓ 1 callersMethodtimestamp
The timestamp that the value was signed with. For conveniently unwrapping the value and enforcing a max age, consider using [`value_if_not_expired`].
src/serde_serializer.rs:194
↓ 1 callersMethodunsign
(&'a self, value: &'a str)
src/signer.rs:166
↓ 1 callersMethodunsign
(&'a self, value: &'a str)
src/serde_serializer.rs:105
↓ 1 callersMethodunsign_to_string
(&'a self, value: &'a str)
src/serde_serializer.rs:116
↓ 1 callersMethodvalue
The value that has been [`unsigned`]. This value is safe to use and was part of a payload that has been successfully [`unsigned`]. [`unsigned`]: Time
src/serde_serializer.rs:184
↓ 1 callersMethodverify
(self, signer: &TSigner)
src/serde_serializer.rs:282
↓ 1 callersMethodverify_signature
( &self, value: &[u8], expected_signature: Signature<Algorithm::OutputSize>, )
src/signer.rs:115
↓ 1 callersMethodwith_separator
Uses a specific separator with the signer. If no separator is defined, will default to '.'
src/signer.rs:62
Methodas_signer
(&self)
src/signer.rs:215
Methodas_signer
(&self)
src/timed.rs:102
Methodbase64_encode
(self)
src/base64.rs:17
Functionbench_sign
(bench: &mut Bencher)
src/signer.rs:285
Functionbench_sign
(bench: &mut Bencher)
src/timed.rs:199
Functionbench_sign
(bench: &mut Bencher)
src/serde_serializer.rs:501
Functionbench_unsign
(bench: &mut Bencher)
src/signer.rs:279
Functionbench_unsign
(bench: &mut Bencher)
src/timed.rs:207
Functionbench_unsign
(bench: &mut Bencher)
src/serde_serializer.rs:510
Methodcause
(&self)
src/error.rs:92
Functiondecode
(timestamp: &str)
src/timestamp.rs:61
Methoddefault
()
src/separator.rs:48
Methodderef
(&self)
src/serde_serializer.rs:217
Methoddescription
(&self)
src/error.rs:84
Functionencode
( timestamp: SystemTime, )
src/timestamp.rs:38
Methodencode
(input: GenericArray<u8, Self::InputSize>)
src/base64.rs:174
Methodeq
(&self, x: &Signature<N>)
src/algorithm.rs:139
Methodfmt
(&self, f: &mut fmt::Formatter)
src/error.rs:68
Methodfrom
(bad_signature: BadSignature<'a>)
src/error.rs:142
Methodfrom
(mac: MacResult<N>)
src/algorithm.rs:145
Methodfrom_str
( separator: Separator, encoding: TEncoding, input: &'a str, )
src/serde_serializer.rs:262
Functiongen_string
()
src/base64.rs:192
Methodget_signature
Returns the signature for a given key + value.
src/algorithm.rs:22
Methodget_signer
Returns a signer that can be used to build a signature for a given key + values.
src/algorithm.rs:17
Methodnew
Constructs a new signer builder with a given secret key.
src/signer.rs:44
Methodnew
Creates a new separator, checking to make sure it is valid. A valid separator is a character that is not in the base-64 url-safe alphabet.
src/separator.rs:27
Methodnew
Constructs a new [`MultiSerializer`] with a given [`Serializer`] as the primary serializer. The primary serializer is the one that will be used to sig
src/multi_serializer.rs:44
Methodnew
(_key: &[u8])
src/algorithm.rs:58
Methodoutput_size
()
src/base64.rs:181
Methodseparator
(&self)
src/signer.rs:145
Methodsplit
(&self, value: &'a str)
src/separator.rs:36
Functiontest_base64_sized_encoder
()
src/base64.rs:191
Functiontest_default_separator
()
src/signer.rs:249
Functiontest_hmac_algorithm
()
src/algorithm.rs:161
Functiontest_multi_serializer
()
src/multi_serializer.rs:105
Functiontest_non_default_separator
()
src/signer.rs:240
Functiontest_none_algorithm
()
src/algorithm.rs:172
Functiontest_null_encoding
()
src/serde_serializer.rs:361
Functiontest_separator_rejects_invalid_char
()
src/signer.rs:254
Functiontest_sign
()
src/timed.rs:156
Functiontest_sign_expired
()
src/timed.rs:168
Functiontest_sign_not_expired
()
src/timed.rs:179
Functiontest_sign_null_encoding
()
src/serde_serializer.rs:378
Functiontest_sign_url_safe_encoding
()
src/serde_serializer.rs:409
Functiontest_signature_basic
()
src/signer.rs:226
Functiontest_timed_sign_null_encoding
()
src/serde_serializer.rs:418
Functiontest_timed_signer_impl_can_be_used_to_verify
()
src/serde_serializer.rs:477
Functiontest_unsign_edge_cases
()
src/signer.rs:259
Functiontest_unsign_unverified_bad_signature
()
src/serde_serializer.rs:398
Functiontest_unsign_unverified_good_signature
()
src/serde_serializer.rs:387
Functiontest_unverified_timed_good_signature
()
src/serde_serializer.rs:437
next →1–100 of 111, ranked by callers