@@ -472,12 +472,12 @@ class Ed25519KeyMaterial : public KeyMaterial {
472472 void write (pgp_packet_body_t &pkt) const override ;
473473 void write_secret (pgp_packet_body_t &pkt) const override ;
474474 bool generate (rnp::SecurityContext &ctx, const KeyParams ¶ms) override ;
475- rnp_result_t verify (const rnp::SecurityContext & ctx,
476- const pgp_signature_material_t & sig,
477- const rnp::secure_vector< uint8_t > & hash) const override ;
478- rnp_result_t sign (rnp::SecurityContext & ctx,
479- pgp_signature_material_t & sig,
480- const rnp::secure_vector< uint8_t > &hash) const override ;
475+ rnp_result_t verify (const rnp::SecurityContext &ctx,
476+ const SigMaterial & sig,
477+ const rnp::secure_bytes & hash) const override ;
478+ rnp_result_t sign (rnp::SecurityContext & ctx,
479+ SigMaterial & sig,
480+ const rnp::secure_bytes &hash) const override ;
481481 pgp_hash_alg_t adjust_hash (pgp_hash_alg_t hash) const override ;
482482 bool sig_hash_allowed (pgp_hash_alg_t hash) const override ;
483483 size_t bits () const noexcept override ;
@@ -534,12 +534,12 @@ class Ed448KeyMaterial : public KeyMaterial {
534534 void write (pgp_packet_body_t &pkt) const override ;
535535 void write_secret (pgp_packet_body_t &pkt) const override ;
536536 bool generate (rnp::SecurityContext &ctx, const KeyParams ¶ms) override ;
537- rnp_result_t verify (const rnp::SecurityContext & ctx,
538- const pgp_signature_material_t & sig,
539- const rnp::secure_vector< uint8_t > & hash) const override ;
540- rnp_result_t sign (rnp::SecurityContext & ctx,
541- pgp_signature_material_t & sig,
542- const rnp::secure_vector< uint8_t > &hash) const override ;
537+ rnp_result_t verify (const rnp::SecurityContext &ctx,
538+ const SigMaterial & sig,
539+ const rnp::secure_bytes & hash) const override ;
540+ rnp_result_t sign (rnp::SecurityContext & ctx,
541+ SigMaterial & sig,
542+ const rnp::secure_bytes &hash) const override ;
543543 pgp_hash_alg_t adjust_hash (pgp_hash_alg_t hash) const override ;
544544 bool sig_hash_allowed (pgp_hash_alg_t hash) const override ;
545545
@@ -630,12 +630,12 @@ class DilithiumEccKeyMaterial : public KeyMaterial {
630630 void write (pgp_packet_body_t &pkt) const override ;
631631 void write_secret (pgp_packet_body_t &pkt) const override ;
632632 bool generate (rnp::SecurityContext &ctx, const KeyParams ¶ms) override ;
633- rnp_result_t verify (const rnp::SecurityContext & ctx,
634- const pgp_signature_material_t & sig,
635- const rnp::secure_vector< uint8_t > & hash) const override ;
636- rnp_result_t sign (rnp::SecurityContext & ctx,
637- pgp_signature_material_t & sig,
638- const rnp::secure_vector< uint8_t > &hash) const override ;
633+ rnp_result_t verify (const rnp::SecurityContext &ctx,
634+ const SigMaterial & sig,
635+ const rnp::secure_bytes & hash) const override ;
636+ rnp_result_t sign (rnp::SecurityContext & ctx,
637+ SigMaterial & sig,
638+ const rnp::secure_bytes &hash) const override ;
639639 pgp_hash_alg_t adjust_hash (pgp_hash_alg_t hash) const override ;
640640 bool sig_hash_allowed (pgp_hash_alg_t hash) const override ;
641641 size_t bits () const noexcept override ;
@@ -661,12 +661,12 @@ class SlhdsaKeyMaterial : public KeyMaterial {
661661 void write (pgp_packet_body_t &pkt) const override ;
662662 void write_secret (pgp_packet_body_t &pkt) const override ;
663663 bool generate (rnp::SecurityContext &ctx, const KeyParams ¶ms) override ;
664- rnp_result_t verify (const rnp::SecurityContext & ctx,
665- const pgp_signature_material_t & sig,
666- const rnp::secure_vector< uint8_t > & hash) const override ;
667- rnp_result_t sign (rnp::SecurityContext & ctx,
668- pgp_signature_material_t & sig,
669- const rnp::secure_vector< uint8_t > &hash) const override ;
664+ rnp_result_t verify (const rnp::SecurityContext &ctx,
665+ const SigMaterial & sig,
666+ const rnp::secure_bytes & hash) const override ;
667+ rnp_result_t sign (rnp::SecurityContext & ctx,
668+ SigMaterial & sig,
669+ const rnp::secure_bytes &hash) const override ;
670670 pgp_hash_alg_t adjust_hash (pgp_hash_alg_t hash) const override ;
671671 bool sig_hash_allowed (pgp_hash_alg_t hash) const override ;
672672 size_t bits () const noexcept override ;
0 commit comments