MCPcopy Create free account

hub / github.com/RustCrypto/signatures / functions

Functions881 in github.com/RustCrypto/signatures

↓ 3 callersFunctionecdsa_oid_for_digest
(digest_oid: ObjectIdentifier)
ecdsa/src/lib.rs:750
↓ 3 callersMethodf
(&self, adrs: &impl Address, m: &Array<u8, Self::N>)
slh-dsa/src/hashes/sha2.rs:143
↓ 3 callersMethodfors_node
( &self, sk_seed: &SkSeed<Self::N>, i: u32, z: u32, adrs: &address::Fo
slh-dsa/src/fors.rs:142
↓ 3 callersMethodfors_roots
(&self)
slh-dsa/src/address.rs:250
↓ 3 callersFunctiongen_chain
Computes the chaining function. Interprets `input` as start-th value of the chain.
xmss/src/wots.rs:37
↓ 3 callersFunctiongenerate_keypair
()
dsa/tests/signing_key.rs:21
↓ 3 callersFunctiongenerate_random_keypair
Generate a random DSA keypair
dsa/tests/signature.rs:37
↓ 3 callersFunctionhex_decode
Decodes a hex string to bytes. Panics on invalid input (test-only).
xmss/src/lib.rs:242
↓ 3 callersMethodhmac_k
Initialize HMAC using the current value of `K`.
rfc6979/src/hmac_drbg.rs:77
↓ 3 callersMethodmessage
(mut self, M: &[&[u8]])
ml-dsa/src/lib.rs:185
↓ 3 callersMethodprf_adrs
(&self)
slh-dsa/src/address.rs:190
↓ 3 callersMethodprf_sk
(&self, sk_seed: &SkSeed<Self::N>, adrs: &impl Address)
slh-dsa/src/hashes/sha2.rs:106
↓ 3 callersMethodraw_recover_pubkey
( &self, id: Identifier, q: u32, msg: &[&[u8]], )
lms/src/ots/signature.rs:112
↓ 3 callersMethodraw_sign_deterministic
(&self, Mp: &[&[u8]], ctx: &[u8])
ml-dsa/src/signing.rs:440
↓ 3 callersMethodraw_try_sign_with_context
( &self, msg: &[&[u8]], ctx: &[u8], opt_rand: Option<&[u8]>, )
slh-dsa/src/signing_key.rs:190
↓ 3 callersMethodraw_verify_mu
(&self, mu: &B64, sigma: &Signature<P>)
ml-dsa/src/verifying.rs:106
↓ 3 callersFunctionrej_bounded_poly
Algorithm 31 RejBoundedPoly
ml-dsa/src/sampling.rs:122
↓ 3 callersFunctionsample_in_ball
Algorithm 29 SampleInBall
ml-dsa/src/sampling.rs:52
↓ 3 callersFunctionset_ots_addr
(addr: &mut [u32; 8], ots: u32)
xmss/src/hash_address.rs:38
↓ 3 callersMethodsign_digest_recoverable
Sign the given message digest, returning a signature and recovery ID.
ecdsa/src/recovery.rs:209
↓ 3 callersMethodto_bytes
Serialize the signature to a new stack-allocated array This clones the underlying fields
slh-dsa/src/signature_encoding.rs:62
↓ 3 callersMethodto_expanded
(&self)
ml-dsa/src/signing.rs:499
↓ 3 callersMethodto_vec
(&self)
ecdsa/src/der.rs:320
↓ 3 callersMethodtry_fill_bytes
(&mut self, dest: &mut [u8])
slh-dsa/tests/known_answer_tests.rs:44
↓ 3 callersMethodtry_sign_with_rng
( &mut self, rng: &mut R, msg: &[u8], )
lms/src/ots/private.rs:99
↓ 3 callersMethodupdate_v
Update `V = HMAC(K, V)`.
rfc6979/src/hmac_drbg.rs:70
↓ 3 callersMethodverify_detached
Verifies a detached signature against the provided message.
xmss/src/xmss.rs:328
↓ 3 callersMethodwots_chain
Algorithm 4
slh-dsa/src/wots.rs:64
↓ 3 callersMethodwots_pk_from_sig
( &self, sig: &WotsSig<Self>, m: &Array<u8, Self::N>, adrs: &address::WotsHash
slh-dsa/src/wots.rs:131
↓ 3 callersMethodwrite_to
(&self, buf: &mut [u8])
slh-dsa/src/wots.rs:27
↓ 2 callersMethodas_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 callersFunctionbase_w
base_w algorithm as described in draft. Interprets an array of bytes as integers in base w.
xmss/src/wots.rs:63
↓ 2 callersMethodbit_pack
(&self)
ml-dsa/src/hint.rs:109
↓ 2 callersFunctionbits2int
(mut b: &[u8], q: &U)
rfc6979/src/lib.rs:146
↓ 2 callersFunctionbits2octets
`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 callersFunctionbytes2uint
(b: &[u8], q: &NonZeroBoxedUint)
dsa/src/generate/secret_number.rs:64
↓ 2 callersFunctionbytes_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 callersFunctioncalculate_bounds
(size: u32)
dsa/src/generate.rs:22
↓ 2 callersFunctionchain_lengths
Takes a message and derives the matching chain lengths.
xmss/src/wots.rs:99
↓ 2 callersMethodclone
(&self)
lms/src/ots/signature.rs:25
↓ 2 callersMethodclone
(&self)
lms/src/ots/public.rs:27
↓ 2 callersMethodclone
(&self)
lms/src/lms/public.rs:28
↓ 2 callersFunctioncoeff_from_half_byte
Algorithm 15 CoeffFromHalfByte
ml-dsa/src/sampling.rs:32
↓ 2 callersFunctioncoeff_from_three_bytes
Algorithm 14 CoeffFromThreeBytes
ml-dsa/src/sampling.rs:20
↓ 2 callersFunctioncoeffs_from_byte
(z: u8, eta: Eta)
ml-dsa/src/sampling.rs:44
↓ 2 callersMethodct_eq
(&self, other: &Self)
ecdsa/src/signing.rs:439
↓ 2 callersMethodencode
(&self, writer: &mut impl Writer)
ecdsa/src/der.rs:243
↓ 2 callersMethodencode
(&self)
ml-dsa/src/verifying.rs:158
↓ 2 callersFunctionexpand_a
Algorithm 32 ExpandA
ml-dsa/src/sampling.rs:174
↓ 2 callersFunctionexpand_seed
Expands an n-byte seed into a wots_len*n byte array using prf_keygen.
xmss/src/wots.rs:8
↓ 2 callersFunctionfind_scalar_range
(outer: &[u8], inner: &[u8])
ecdsa/src/der.rs:400
↓ 2 callersMethodfors_sk_gen
( &self, sk_seed: &SkSeed<Self::N>, adrs: &address::ForsTree, idx: u32, )
slh-dsa/src/fors.rs:131
↓ 2 callersMethodgen_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 callersFunctiongenerate_verifying_key
()
dsa/tests/verifying_key.rs:24
↓ 2 callersFunctionh_msg
(expected: &[u8])
slh-dsa/src/hashes.rs:79
↓ 2 callersFunctionhash_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 callersMethodinit_keypair_buffers
Allocates and initializes pk/sk buffers with the OID prefix written.
xmss/src/params.rs:1168
↓ 2 callersMethodinitialize
Initializes the given `XmssParams` structure with all parameters derived from this OID.
xmss/src/params.rs:1040
↓ 2 callersFunctionint2octets
(x: &U, q: &U, out: &'a mut [u8])
rfc6979/src/lib.rs:193
↓ 2 callersMethodis_xmss
Returns `true` if this is an XMSS (single-tree) parameter set.
xmss/src/params.rs:1016
↓ 2 callersFunctionl_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 callersMethodmultipart_verify
(&self, msg: &[&[u8]], signature: &Signature<C>)
ecdsa/src/verifying.rs:179
↓ 2 callersFunctionparse_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 callersMethodpk_adrs
(&self)
slh-dsa/src/address.rs:202
↓ 2 callersMethodpower2round
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 callersMethodr
Get the `r` component of the signature (leading zeros removed)
ecdsa/src/der.rs:146
↓ 2 callersMethodraw_sign_randomized
( &self, Mp: &[&[u8]], ctx: &[u8], rng: &mut R, )
ml-dsa/src/signing.rs:387
↓ 2 callersMethodraw_slh_sign_internal
(&self, msg: &[&[&[u8]]], opt_rand: Option<&[u8]>)
slh-dsa/src/signing_key.rs:150
↓ 2 callersMethodraw_slh_verify_internal
( &self, msg: &[&[&[u8]]], signature: &Signature<P>, )
slh-dsa/src/verifying_key.rs:74
↓ 2 callersMethodraw_try_verify_with_context
( &self, msg: &[&[u8]], ctx: &[u8], signature: &Signature<P>, )
slh-dsa/src/verifying_key.rs:108
↓ 2 callersMethodraw_verify_with_context
(&self, M: &[&[u8]], ctx: &[u8], sigma: &Signature<P>)
ml-dsa/src/verifying.rs:140
↓ 2 callersFunctionrej_ntt_poly
Algorithm 30 RejNTTPoly
ml-dsa/src/sampling.rs:83
↓ 2 callersMethods
Get the `s` component of this signature
ecdsa/src/lib.rs:292
↓ 2 callersMethods
Get the `s` component of the signature (leading zeros removed)
ecdsa/src/der.rs:151
↓ 2 callersFunctionsecret_number
( rng: &mut R, components: &Components, )
dsa/src/generate/secret_number.rs:79
↓ 2 callersFunctionset_hash_addr
(addr: &mut [u32; 8], hash: u32)
xmss/src/hash_address.rs:48
↓ 2 callersFunctionset_ltree_addr
(addr: &mut [u32; 8], ltree: u32)
xmss/src/hash_address.rs:53
↓ 2 callersMethodsign_detached
Signs a message, returning only the detached signature (without the message appended).
xmss/src/xmss.rs:176
↓ 2 callersMethodsign_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 callersMethodsign_prehash_recoverable
Sign the given message prehash, returning a signature and recovery ID.
ecdsa/src/recovery.rs:204
↓ 2 callersMethodsigning_key_ref
(&self)
xmss/src/xmss.rs:659
↓ 2 callersMethodsplit_scalars
Split the signature into its `r` and `s` scalars.
ecdsa/src/lib.rs:297
↓ 2 callersMethodto_bytes
(&self)
dsa/src/lib.rs:184
↓ 2 callersMethodto_pkcs8_der
(&self)
ed25519/src/pkcs8.rs:131
↓ 2 callersMethodto_vec
Serialize the signature to a `Vec<u8>` of length `P::SigLen`.
slh-dsa/src/signature_encoding.rs:51
↓ 2 callersMethodtree_adrs
(&self)
slh-dsa/src/address.rs:213
↓ 2 callersFunctiontreehash
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 callersMethodtry_multipart_sign
(&self, msg: &[&[u8]])
ecdsa/src/signing.rs:195
↓ 2 callersMethodtry_multipart_sign
(&self, msg: &[&[u8]])
ml-dsa/src/signing.rs:192
↓ 2 callersMethodtry_sign_digest
(&self, f: F)
ecdsa/src/signing.rs:155
↓ 2 callersMethodtry_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 callersMethodtry_sign_with_rng
( &self, rng: &mut R, msg: &[u8], )
slh-dsa/src/signing_key.rs:257
↓ 2 callersMethodtry_sign_with_rng
( &mut self, rng: &mut R, msg: &[u8], )
lms/src/lms/private.rs:108
↓ 2 callersMethodverify
(&self, msg: &[u8], signature: &Signature<P>)
slh-dsa/src/verifying_key.rs:185
↓ 2 callersMethodverify
this implements algorithm 4a of https://datatracker.ietf.org/doc/html/rfc8554#section-4.6
lms/src/ots/public.rs:50
↓ 2 callersMethodverify_digest
( &self, f: F, signature: &Signature, )
dsa/src/verifying_key.rs:164
↓ 2 callersMethodverify_prehash
( &self, prehash: &[u8], signature: &Signature, )
dsa/src/verifying_key.rs:147
↓ 2 callersMethodverify_prehashed
(&self, hash: &[u8], signature: &Signature)
dsa/src/verifying_key.rs:77
↓ 2 callersMethodverify_with_context
Implementation of Algorithm 3: `ML-DSA.Verify` from FIPS 204.
ml-dsa/src/verifying.rs:131
↓ 2 callersFunctionxmssmt_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
← previousnext →101–200 of 881, ranked by callers