notes.txt 684 B

1234567891011121314
  1. Convert EncryptionAlgo, DecryptionAlgo, SignAlgo, VerifyAlgo to traits.
  2. Modify SymKey and AsymKey<T> to hold the state needed to perform these operations, rather than
  3. just buffers of serialized data, and implement these traits.
  4. Manually implement the Serialize and Deserialize traits for these types.
  5. Split AsymKey<T> into two types, one for private and on for public keys.
  6. The public part should be an enum, AsymKeyPublic, allowing operations to be performed in software.
  7. The private part should be a trait, AsymKeyPrivate, requiring all operations to be deferred to an
  8. implementation, which may use a hardware device to execute them.
  9. AsymKeyPrivate = DecryptionAlgo + SignAlgo