Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ functions
Functions
599 in github.com/RustCrypto/utils
⨍
Functions
599
◇
Types & classes
109
↓ 57 callers
Method
len
(&self)
inout/src/inout_buf.rs:88
↓ 32 callers
Function
default
()
ctutils/src/ct_option.rs:724
↓ 22 callers
Function
parse_zeroize_test
(unparsed: &str)
zeroize_derive/src/lib.rs:440
↓ 17 callers
Method
expect
(self, msg: &str)
ctutils/src/ct_option.rs:125
↓ 17 callers
Method
zeroize
(&mut self)
zeroize/tests/zeroize.rs:124
↓ 14 callers
Method
unwrap
(self)
ctutils/src/ct_option.rs:444
↓ 12 callers
Method
zip
Zips `self` with another [`CtOption`]. If `self.is_some() && other.is_some()`, this method returns a new [`CtOption`] for a 2-tuple of their contents
ctutils/src/ct_option.rs:496
↓ 11 callers
Method
is_empty
(&self)
inout/src/inout_buf.rs:95
↓ 10 callers
Method
clone
(&self)
zeroize/src/lib.rs:620
↓ 10 callers
Method
map
(self, f: F)
ctutils/src/ct_option.rs:321
↓ 8 callers
Method
cmoveq
(&self, rhs: &Self, input: Condition, output: &mut Condition)
cmov/src/lib.rs:118
↓ 8 callers
Method
not
(self)
ctutils/src/choice.rs:79
↓ 7 callers
Method
get_pos
(&self)
block-buffer/src/lib.rs:236
↓ 7 callers
Method
try_into
(self)
inout/src/inout_buf.rs:289
↓ 7 callers
Method
unwrap
Unwrap the `Pad` variant. # Panics If `self` is a variant other than [`PaddedData::Pad`].
block-padding/src/lib.rs:404
↓ 6 callers
Function
description
Build a description for a test case in a suite
wycheproof2blb/src/wycheproof.rs:119
↓ 6 callers
Method
digest_blocks
(&mut self, mut input: &[u8], mut compress: impl FnMut(&[Array<u8, BS>]))
block-buffer/src/lib.rs:160
↓ 6 callers
Method
digest_pad
( &mut self, delim: u8, suffix: &[u8], mut compress: impl FnMut(&Array<u8, BS>
block-buffer/src/lib.rs:366
↓ 6 callers
Function
masknz32
(condition: u32)
cmov/src/backends/soft.rs:129
↓ 6 callers
Method
split_at
(self, mid: usize)
inout/src/inout_buf.rs:217
↓ 5 callers
Method
get
(&mut self, pos: usize)
inout/src/inout.rs:136
↓ 5 callers
Method
size
(&self)
block-buffer/src/lib.rs:273
↓ 5 callers
Function
test_derive
( f: impl Fn(DeriveInput) -> TokenStream, input: TokenStream, expected_output: TokenSt
zeroize_derive/src/lib.rs:430
↓ 4 callers
Method
as_mut
(&mut self)
zeroize/src/lib.rs:680
↓ 4 callers
Function
ct_select
()
ctutils/src/choice.rs:648
↓ 4 callers
Function
deserialize
( deserializer: D, )
wycheproof2blb/src/wycheproof.rs:71
↓ 4 callers
Function
from_u8_lsb
()
ctutils/src/choice.rs:706
↓ 4 callers
Method
is_none
(&self)
ctutils/src/ct_option.rs:243
↓ 4 callers
Function
masknz64
(condition: u64)
cmov/src/backends/soft.rs:138
↓ 4 callers
Function
masksel
(a: T, b: T, mask: T)
cmov/src/backends/soft.rs:214
↓ 4 callers
Function
optimization_barrier
Observe the referenced data and prevent the compiler from removing previous writes to it. This function acts like [`core::hint::black_box`] but takes
zeroize/src/barrier.rs:53
↓ 4 callers
Method
set_pos_unchecked
(&mut self, pos: usize)
block-buffer/src/lib.rs:292
↓ 4 callers
Method
write_block
( &mut self, read_len: usize, gen_block: impl FnOnce(&mut Array<u8, BS>), read
block-buffer/src/read.rs:102
↓ 3 callers
Method
as_ref
(&self)
ctutils/src/ct_option.rs:88
↓ 3 callers
Method
as_ref
(&self)
zeroize/src/lib.rs:669
↓ 3 callers
Method
cmovne
(&self, rhs: &Self, input: Condition, output: &mut Condition)
cmov/src/lib.rs:123
↓ 3 callers
Method
cmovnz
(&mut self, value: &Self, condition: Condition)
cmov/src/lib.rs:76
↓ 3 callers
Method
cmovz
(&mut self, value: &Self, condition: Condition)
cmov/src/lib.rs:84
↓ 3 callers
Method
ct_assign
(&mut self, src: &[T], choice: Choice)
ctutils/src/traits/ct_assign.rs:57
↓ 3 callers
Method
ct_eq
(&self, other: &Self)
ctutils/src/traits/ct_eq.rs:66
↓ 3 callers
Method
ct_select
(&self, other: &Self, choice: Choice)
ctutils/src/ct_option.rs:588
↓ 3 callers
Function
encode_blobs
(blobs: &[T])
blobby/src/encode.rs:45
↓ 3 callers
Function
from_u128_lsb
()
ctutils/src/choice.rs:852
↓ 3 callers
Function
from_u16_lsb
()
ctutils/src/choice.rs:743
↓ 3 callers
Function
from_u32_lsb
()
ctutils/src/choice.rs:780
↓ 3 callers
Function
from_u64_lsb
()
ctutils/src/choice.rs:817
↓ 3 callers
Function
generator
(data: &[u8], algorithm: &str, key_size: u32, iv_size: u32)
wycheproof2blb/src/aead.rs:60
↓ 3 callers
Method
get_data
(&self)
block-buffer/src/lib.rs:250
↓ 3 callers
Function
get_dit_enabled
()
aarch64-dit/src/lib.rs:92
↓ 3 callers
Method
get_pos
(&self)
block-buffer/src/read.rs:42
↓ 3 callers
Function
init
()
cpufeatures/tests/x86.rs:8
↓ 3 callers
Method
insert_if
Conditionally inserts `value` into the [`CtOption`] if the given condition holds.
ctutils/src/ct_option.rs:176
↓ 3 callers
Method
into_iter
(self)
inout/src/inout_buf.rs:50
↓ 3 callers
Function
read_vlq
(data: &mut &[u8])
blobby/src/decode.rs:3
↓ 3 callers
Method
serialize
(&self)
block-buffer/src/lib.rs:325
↓ 3 callers
Method
set_data_unchecked
(&mut self, buf: &[u8])
block-buffer/src/lib.rs:304
↓ 3 callers
Method
set_pos_unchecked
(&mut self, pos: usize)
block-buffer/src/read.rs:72
↓ 3 callers
Function
slice_as_chunks
(slice: &[T])
cmov/src/slice.rs:420
↓ 3 callers
Method
unwrap_or
(self, default: T)
ctutils/src/ct_option.rs:456
↓ 3 callers
Method
zeroize
(&mut self)
zeroize/src/lib.rs:274
↓ 2 callers
Method
as_mut
(&mut self)
ctutils/src/ct_option.rs:78
↓ 2 callers
Function
attr_skip
(attrs: &[Attribute])
zeroize_derive/src/lib.rs:394
↓ 2 callers
Method
clone
(&self)
block-buffer/src/read.rs:33
↓ 2 callers
Function
derive_zeroize_impl
(input: DeriveInput)
zeroize_derive/src/lib.rs:38
↓ 2 callers
Function
encode_vlq
(mut val: usize, buf: &mut [u8; 4])
blobby/src/encode.rs:7
↓ 2 callers
Method
filter
(mut self, predicate: P)
ctutils/src/ct_option.rs:301
↓ 2 callers
Function
from_u64_nz
()
ctutils/src/choice.rs:831
↓ 2 callers
Function
generate_fields
(input: &DeriveInput, method: TokenStream)
zeroize_derive/src/lib.rs:328
↓ 2 callers
Method
get_in
(&self)
inout/src/reserved.rs:145
↓ 2 callers
Method
into_option
(self)
ctutils/src/ct_option.rs:200
↓ 2 callers
Method
into_raw
(self)
inout/src/reserved.rs:85
↓ 2 callers
Method
is_some
(&self)
ctutils/src/ct_option.rs:236
↓ 2 callers
Method
is_supported
Check if DIT is supported by this CPU.
aarch64-dit/src/lib.rs:68
↓ 2 callers
Function
maskne32
(x: u32, y: u32)
cmov/src/backends/soft.rs:114
↓ 2 callers
Function
maskne64
(x: u64, y: u64)
cmov/src/backends/soft.rs:120
↓ 2 callers
Function
next_byte
(string: &[u8], pos: usize)
hex-literal/src/lib.rs:25
↓ 2 callers
Method
ok_or
(self, err: E)
ctutils/src/ct_option.rs:367
↓ 2 callers
Function
parse_into_vec
(mut data: &[u8])
blobby/src/decode.rs:142
↓ 2 callers
Method
pos
(&self)
sponge-cursor/src/lib.rs:65
↓ 2 callers
Method
read_cached
(&mut self, len: usize)
block-buffer/src/read.rs:82
↓ 2 callers
Method
remaining
(&self)
block-buffer/src/read.rs:62
↓ 2 callers
Method
reset
(&mut self)
block-buffer/src/lib.rs:217
↓ 2 callers
Function
restore_dit
(enabled: bool)
aarch64-dit/src/lib.rs:118
↓ 2 callers
Function
set_dit_enabled
()
aarch64-dit/src/lib.rs:108
↓ 2 callers
Method
set_pos
Set new cursor position. # Panics If `new_pos` is greater or equal to `RATE`.
sponge-cursor/src/lib.rs:80
↓ 2 callers
Function
slice_to_word
(slice: &[T])
cmov/src/slice.rs:377
↓ 2 callers
Method
squeeze_inner_u64_le
( &mut self, state: &mut [u64; N], sponge: fn(&mut [u64; N]), mut buf: &mut [u
sponge-cursor/src/lib.rs:180
↓ 2 callers
Method
to_bool
(self)
ctutils/src/choice.rs:391
↓ 2 callers
Method
to_bool_vartime
(self)
ctutils/src/choice.rs:416
↓ 2 callers
Method
to_u8
(self)
ctutils/src/choice.rs:398
↓ 2 callers
Function
volatile_set
(dst: *mut T, src: T, count: usize)
zeroize/src/lib.rs:748
↓ 2 callers
Method
zeroize
(&mut self)
block-buffer/src/lib.rs:427
↓ 1 callers
Function
absorb_full
( state: &mut [u64; N], block: &[u8; RATE], )
sponge-cursor/src/u64_le_utils.rs:7
↓ 1 callers
Method
absorb_u64_le
( &mut self, state: &mut [u64; N], sponge: fn(&mut [u64; N]), mut data: &[u8],
sponge-cursor/src/lib.rs:91
↓ 1 callers
Method
and
(self, mut optb: CtOption<U>)
ctutils/src/ct_option.rs:251
↓ 1 callers
Method
and
(self, rhs: Choice)
ctutils/src/choice.rs:58
↓ 1 callers
Method
and_then
(self, f: F)
ctutils/src/ct_option.rs:266
↓ 1 callers
Method
as_inner_unchecked
(&self)
ctutils/src/ct_option.rs:290
↓ 1 callers
Method
clone
(&self)
block-buffer/src/lib.rs:111
↓ 1 callers
Method
cmoveq
(&self, rhs: &Self, input: Condition, output: &mut Condition)
cmov/src/backends/x86.rs:117
next →
1–100 of 599, ranked by callers