Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/signatures
/ functions
Functions
881 in github.com/RustCrypto/signatures
⨍
Functions
881
◇
Types & classes
142
↓ 3 callers
Function
ecdsa_oid_for_digest
(digest_oid: ObjectIdentifier)
ecdsa/src/lib.rs:750
↓ 3 callers
Method
f
(&self, adrs: &impl Address, m: &Array<u8, Self::N>)
slh-dsa/src/hashes/sha2.rs:143
↓ 3 callers
Method
fors_node
( &self, sk_seed: &SkSeed<Self::N>, i: u32, z: u32, adrs: &address::Fo
slh-dsa/src/fors.rs:142
↓ 3 callers
Method
fors_roots
(&self)
slh-dsa/src/address.rs:250
↓ 3 callers
Function
gen_chain
Computes the chaining function. Interprets `input` as start-th value of the chain.
xmss/src/wots.rs:37
↓ 3 callers
Function
generate_keypair
()
dsa/tests/signing_key.rs:21
↓ 3 callers
Function
generate_random_keypair
Generate a random DSA keypair
dsa/tests/signature.rs:37
↓ 3 callers
Function
hex_decode
Decodes a hex string to bytes. Panics on invalid input (test-only).
xmss/src/lib.rs:242
↓ 3 callers
Method
hmac_k
Initialize HMAC using the current value of `K`.
rfc6979/src/hmac_drbg.rs:77
↓ 3 callers
Method
message
(mut self, M: &[&[u8]])
ml-dsa/src/lib.rs:185
↓ 3 callers
Method
prf_adrs
(&self)
slh-dsa/src/address.rs:190
↓ 3 callers
Method
prf_sk
(&self, sk_seed: &SkSeed<Self::N>, adrs: &impl Address)
slh-dsa/src/hashes/sha2.rs:106
↓ 3 callers
Method
raw_recover_pubkey
( &self, id: Identifier, q: u32, msg: &[&[u8]], )
lms/src/ots/signature.rs:112
↓ 3 callers
Method
raw_sign_deterministic
(&self, Mp: &[&[u8]], ctx: &[u8])
ml-dsa/src/signing.rs:440
↓ 3 callers
Method
raw_try_sign_with_context
( &self, msg: &[&[u8]], ctx: &[u8], opt_rand: Option<&[u8]>, )
slh-dsa/src/signing_key.rs:190
↓ 3 callers
Method
raw_verify_mu
(&self, mu: &B64, sigma: &Signature<P>)
ml-dsa/src/verifying.rs:106
↓ 3 callers
Function
rej_bounded_poly
Algorithm 31 RejBoundedPoly
ml-dsa/src/sampling.rs:122
↓ 3 callers
Function
sample_in_ball
Algorithm 29 SampleInBall
ml-dsa/src/sampling.rs:52
↓ 3 callers
Function
set_ots_addr
(addr: &mut [u32; 8], ots: u32)
xmss/src/hash_address.rs:38
↓ 3 callers
Method
sign_digest_recoverable
Sign the given message digest, returning a signature and recovery ID.
ecdsa/src/recovery.rs:209
↓ 3 callers
Method
to_bytes
Serialize the signature to a new stack-allocated array This clones the underlying fields
slh-dsa/src/signature_encoding.rs:62
↓ 3 callers
Method
to_expanded
(&self)
ml-dsa/src/signing.rs:499
↓ 3 callers
Method
to_vec
(&self)
ecdsa/src/der.rs:320
↓ 3 callers
Method
try_fill_bytes
(&mut self, dest: &mut [u8])
slh-dsa/tests/known_answer_tests.rs:44
↓ 3 callers
Method
try_sign_with_rng
( &mut self, rng: &mut R, msg: &[u8], )
lms/src/ots/private.rs:99
↓ 3 callers
Method
update_v
Update `V = HMAC(K, V)`.
rfc6979/src/hmac_drbg.rs:70
↓ 3 callers
Method
verify_detached
Verifies a detached signature against the provided message.
xmss/src/xmss.rs:328
↓ 3 callers
Method
wots_chain
Algorithm 4
slh-dsa/src/wots.rs:64
↓ 3 callers
Method
wots_pk_from_sig
( &self, sig: &WotsSig<Self>, m: &Array<u8, Self::N>, adrs: &address::WotsHash
slh-dsa/src/wots.rs:131
↓ 3 callers
Method
write_to
(&self, buf: &mut [u8])
slh-dsa/src/wots.rs:27
↓ 2 callers
Method
as_nonzero_scalar
Borrow the secret [`NonZeroScalar`] value for this key. <div class="warning"> <b>Security Warning</b> This value is key material. Please treat it wi
ecdsa/src/signing.rs:113
↓ 2 callers
Function
base_w
base_w algorithm as described in draft. Interprets an array of bytes as integers in base w.
xmss/src/wots.rs:63
↓ 2 callers
Method
bit_pack
(&self)
ml-dsa/src/hint.rs:109
↓ 2 callers
Function
bits2int
(mut b: &[u8], q: &U)
rfc6979/src/lib.rs:146
↓ 2 callers
Function
bits2octets
`bits2octets` transform as defined in [RFC6979 §2.3.4]: "Bit String to Octet String" From the RFC: > The bits2octets transform takes as input a sequ
rfc6979/src/lib.rs:236
↓ 2 callers
Function
bytes2uint
(b: &[u8], q: &NonZeroBoxedUint)
dsa/src/generate/secret_number.rs:64
↓ 2 callers
Function
bytes_to_ull
Converts the bytes in `input` from big-endian byte order to an integer. If `input` is longer than 8 bytes, only the first 8 bytes are used.
xmss/src/utils.rs:13
↓ 2 callers
Function
calculate_bounds
(size: u32)
dsa/src/generate.rs:22
↓ 2 callers
Function
chain_lengths
Takes a message and derives the matching chain lengths.
xmss/src/wots.rs:99
↓ 2 callers
Method
clone
(&self)
lms/src/ots/signature.rs:25
↓ 2 callers
Method
clone
(&self)
lms/src/ots/public.rs:27
↓ 2 callers
Method
clone
(&self)
lms/src/lms/public.rs:28
↓ 2 callers
Function
coeff_from_half_byte
Algorithm 15 CoeffFromHalfByte
ml-dsa/src/sampling.rs:32
↓ 2 callers
Function
coeff_from_three_bytes
Algorithm 14 CoeffFromThreeBytes
ml-dsa/src/sampling.rs:20
↓ 2 callers
Function
coeffs_from_byte
(z: u8, eta: Eta)
ml-dsa/src/sampling.rs:44
↓ 2 callers
Method
ct_eq
(&self, other: &Self)
ecdsa/src/signing.rs:439
↓ 2 callers
Method
encode
(&self, writer: &mut impl Writer)
ecdsa/src/der.rs:243
↓ 2 callers
Method
encode
(&self)
ml-dsa/src/verifying.rs:158
↓ 2 callers
Function
expand_a
Algorithm 32 ExpandA
ml-dsa/src/sampling.rs:174
↓ 2 callers
Function
expand_seed
Expands an n-byte seed into a wots_len*n byte array using prf_keygen.
xmss/src/wots.rs:8
↓ 2 callers
Function
find_scalar_range
(outer: &[u8], inner: &[u8])
ecdsa/src/der.rs:400
↓ 2 callers
Method
fors_sk_gen
( &self, sk_seed: &SkSeed<Self::N>, adrs: &address::ForsTree, idx: u32, )
slh-dsa/src/fors.rs:131
↓ 2 callers
Method
gen_pk_tree
Generates a Merkle tree of OTS public key hashes, using the indexing scheme of RFC 8554 offset by 1 auth_tree[i] == T[i+1] (i.e. the root is at index
lms/src/lms/private.rs:65
↓ 2 callers
Function
generate_verifying_key
()
dsa/tests/verifying_key.rs:24
↓ 2 callers
Function
h_msg
(expected: &[u8])
slh-dsa/src/hashes.rs:79
↓ 2 callers
Function
hash_message
Computes the message hash using R, the public root, the index of the leaf node, and the message.
xmss/src/hash.rs:109
↓ 2 callers
Method
init_keypair_buffers
Allocates and initializes pk/sk buffers with the OID prefix written.
xmss/src/params.rs:1168
↓ 2 callers
Method
initialize
Initializes the given `XmssParams` structure with all parameters derived from this OID.
xmss/src/params.rs:1040
↓ 2 callers
Function
int2octets
(x: &U, q: &U, out: &'a mut [u8])
rfc6979/src/lib.rs:193
↓ 2 callers
Method
is_xmss
Returns `true` if this is an XMSS (single-tree) parameter set.
xmss/src/params.rs:1016
↓ 2 callers
Function
l_tree
Computes a leaf node from a WOTS public key using an L-tree. Note that this destroys the used WOTS public key.
xmss/src/xmss_commons.rs:12
↓ 2 callers
Method
multipart_verify
(&self, msg: &[&[u8]], signature: &Signature<C>)
ecdsa/src/verifying.rs:179
↓ 2 callers
Function
parse_oid_and_params
Parses the OID and initializes params from the first bytes of a key. Tries XMSS OIDs first, then falls back to XMSSMT.
xmss/src/xmss.rs:13
↓ 2 callers
Method
pk_adrs
(&self)
slh-dsa/src/address.rs:202
↓ 2 callers
Method
power2round
Algorithm 35 Power2Round In the specification, this function maps to signed integers rather than modular integers. To avoid the need for a whole sepa
ml-dsa/src/algebra.rs:158
↓ 2 callers
Method
r
Get the `r` component of the signature (leading zeros removed)
ecdsa/src/der.rs:146
↓ 2 callers
Method
raw_sign_randomized
( &self, Mp: &[&[u8]], ctx: &[u8], rng: &mut R, )
ml-dsa/src/signing.rs:387
↓ 2 callers
Method
raw_slh_sign_internal
(&self, msg: &[&[&[u8]]], opt_rand: Option<&[u8]>)
slh-dsa/src/signing_key.rs:150
↓ 2 callers
Method
raw_slh_verify_internal
( &self, msg: &[&[&[u8]]], signature: &Signature<P>, )
slh-dsa/src/verifying_key.rs:74
↓ 2 callers
Method
raw_try_verify_with_context
( &self, msg: &[&[u8]], ctx: &[u8], signature: &Signature<P>, )
slh-dsa/src/verifying_key.rs:108
↓ 2 callers
Method
raw_verify_with_context
(&self, M: &[&[u8]], ctx: &[u8], sigma: &Signature<P>)
ml-dsa/src/verifying.rs:140
↓ 2 callers
Function
rej_ntt_poly
Algorithm 30 RejNTTPoly
ml-dsa/src/sampling.rs:83
↓ 2 callers
Method
s
Get the `s` component of this signature
ecdsa/src/lib.rs:292
↓ 2 callers
Method
s
Get the `s` component of the signature (leading zeros removed)
ecdsa/src/der.rs:151
↓ 2 callers
Function
secret_number
( rng: &mut R, components: &Components, )
dsa/src/generate/secret_number.rs:79
↓ 2 callers
Function
set_hash_addr
(addr: &mut [u32; 8], hash: u32)
xmss/src/hash_address.rs:48
↓ 2 callers
Function
set_ltree_addr
(addr: &mut [u32; 8], ltree: u32)
xmss/src/hash_address.rs:53
↓ 2 callers
Method
sign_detached
Signs a message, returning only the detached signature (without the message appended).
xmss/src/xmss.rs:176
↓ 2 callers
Method
sign_mu_deterministic
This method reflects the optional deterministic variant of the ML-DSA.Sign algorithm with a pre-computed μ. Algorithm 2 ML-DSA.Sign (optional determin
ml-dsa/src/signing.rs:435
↓ 2 callers
Method
sign_prehash_recoverable
Sign the given message prehash, returning a signature and recovery ID.
ecdsa/src/recovery.rs:204
↓ 2 callers
Method
signing_key_ref
(&self)
xmss/src/xmss.rs:659
↓ 2 callers
Method
split_scalars
Split the signature into its `r` and `s` scalars.
ecdsa/src/lib.rs:297
↓ 2 callers
Method
to_bytes
(&self)
dsa/src/lib.rs:184
↓ 2 callers
Method
to_pkcs8_der
(&self)
ed25519/src/pkcs8.rs:131
↓ 2 callers
Method
to_vec
Serialize the signature to a `Vec<u8>` of length `P::SigLen`.
slh-dsa/src/signature_encoding.rs:51
↓ 2 callers
Method
tree_adrs
(&self)
slh-dsa/src/address.rs:213
↓ 2 callers
Function
treehash
For a given leaf index, computes the authentication path and the resulting root node using Merkle's TreeHash algorithm.
xmss/src/xmss_core.rs:13
↓ 2 callers
Method
try_multipart_sign
(&self, msg: &[&[u8]])
ecdsa/src/signing.rs:195
↓ 2 callers
Method
try_multipart_sign
(&self, msg: &[&[u8]])
ml-dsa/src/signing.rs:192
↓ 2 callers
Method
try_sign_digest
(&self, f: F)
ecdsa/src/signing.rs:155
↓ 2 callers
Method
try_sign_with_context
Implements [slh-sign] as defined in FIPS-205, using a context string. Context strings must be 255 bytes or less. # Errors Returns an error if the cont
slh-dsa/src/signing_key.rs:181
↓ 2 callers
Method
try_sign_with_rng
( &self, rng: &mut R, msg: &[u8], )
slh-dsa/src/signing_key.rs:257
↓ 2 callers
Method
try_sign_with_rng
( &mut self, rng: &mut R, msg: &[u8], )
lms/src/lms/private.rs:108
↓ 2 callers
Method
verify
(&self, msg: &[u8], signature: &Signature<P>)
slh-dsa/src/verifying_key.rs:185
↓ 2 callers
Method
verify
this implements algorithm 4a of https://datatracker.ietf.org/doc/html/rfc8554#section-4.6
lms/src/ots/public.rs:50
↓ 2 callers
Method
verify_digest
( &self, f: F, signature: &Signature, )
dsa/src/verifying_key.rs:164
↓ 2 callers
Method
verify_prehash
( &self, prehash: &[u8], signature: &Signature, )
dsa/src/verifying_key.rs:147
↓ 2 callers
Method
verify_prehashed
(&self, hash: &[u8], signature: &Signature)
dsa/src/verifying_key.rs:77
↓ 2 callers
Method
verify_with_context
Implementation of Algorithm 3: `ML-DSA.Verify` from FIPS 204.
ml-dsa/src/verifying.rs:131
↓ 2 callers
Function
xmssmt_core_seed_keypair
Derives a XMSSMT key pair from a given seed. Seed must be 3*n long. Format sk: [(ceil(h/8) bit) index || SK_SEED || SK_PRF || root || PUB_SEED] Format
xmss/src/xmss_core.rs:94
← previous
next →
101–200 of 881, ranked by callers