Add some more documentation to CardApp::signature_for_hash.
This commit is contained in:
parent
52a146fd56
commit
a88620a96d
1 changed files with 8 additions and 2 deletions
|
@ -463,9 +463,15 @@ impl CardApp {
|
|||
|
||||
/// Sign `hash`, on the card.
|
||||
///
|
||||
/// (This is a wrapper around the low-level
|
||||
/// This is a wrapper around the low-level
|
||||
/// pso_compute_digital_signature operation.
|
||||
/// It builds the required `data` field from `hash`)
|
||||
/// It builds the required `data` field from `hash`.
|
||||
///
|
||||
/// For RSA, this means a "DigestInfo" data structure is generated.
|
||||
/// (see 7.2.10.2 DigestInfo for RSA).
|
||||
///
|
||||
/// With ECC the hash data is processed as is, using
|
||||
/// pso_compute_digital_signature.
|
||||
pub fn signature_for_hash(
|
||||
&mut self,
|
||||
hash: Hash,
|
||||
|
|
Loading…
Reference in a new issue