Lines Matching full:algorithm
70 /// A key agreement algorithm.
71 pub struct Algorithm { struct
80 derive_debug_via_field!(Algorithm, curve); argument
82 impl Eq for Algorithm {} implementation
83 impl PartialEq for Algorithm { implementation
94 algorithm: &'static Algorithm, field
100 algorithm
104 /// Generate a new ephemeral private key for the given algorithm.
106 alg: &'static Algorithm, in generate() argument
118 algorithm: alg, in generate()
133 algorithm: self.algorithm, in compute_public_key()
138 /// The algorithm for the private key.
140 pub fn algorithm(&self) -> &'static Algorithm { in algorithm() argument
141 self.algorithm in algorithm()
153 algorithm: &'static Algorithm, field
166 .field("algorithm", &self.algorithm) in fmt()
173 /// The algorithm for the public key.
175 pub fn algorithm(&self) -> &'static Algorithm { in algorithm() argument
176 self.algorithm in algorithm()
182 algorithm: &'static Algorithm, field
194 algorithm: self.algorithm, in clone()
206 .field("algorithm", &self.algorithm) in fmt()
214 pub fn new(algorithm: &'static Algorithm, bytes: B) -> Self { in new() argument
215 Self { algorithm, bytes } in new()
220 pub fn algorithm(&self) -> &'static Algorithm { in algorithm() argument
221 self.algorithm in algorithm()
239 /// `Err(error_value)` if it does not match `my_private_key's` algorithm/curve.
241 /// algorithm and that the key is *valid*; see the algorithm's documentation for
243 /// that algorithm.
255 algorithm: peer_public_key.algorithm, in agree_ephemeral()
271 if peer_public_key.algorithm != my_private_key.algorithm { in agree_ephemeral_()
275 let alg = &my_private_key.algorithm; in agree_ephemeral_()