| 355 | |
| 356 | |
| 357 | class Signature_Encoder : public DER_Encoder { |
| 358 | const byte* digest_; |
| 359 | word32 digestSz_; |
| 360 | SigType digestOID_; |
| 361 | public: |
| 362 | explicit Signature_Encoder(const byte*, word32, HashType, Source&); |
| 363 | |
| 364 | private: |
| 365 | void WriteHeader(); |
| 366 | word32 SetDigest(const byte*, word32, byte*); |
| 367 | |
| 368 | Signature_Encoder(const Signature_Encoder&); // hide copy |
| 369 | Signature_Encoder& operator=(const Signature_Encoder&); // and assign |
| 370 | }; |
| 371 | |
| 372 | |
| 373 | // Get Cert in PEM format from BEGIN to END |