diff options
author | tholenst <tholenst@google.com> | 2020-11-24 07:22:41 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-11-24 07:23:17 -0800 |
commit | 204d4570a828cde04a8a3992f05df22e4e497817 (patch) | |
tree | 3d062dc173a20f1ba3d86e88fdd72ab4b90fdcac /cc/daead | |
parent | e6db8194ea6295d01cffb83f607397d4581915ec (diff) | |
download | tink-204d4570a828cde04a8a3992f05df22e4e497817.tar.gz |
Rename the "TransformingPrimitiveWrapper<P,Q>" to "PrimitiveWrapper<P,Q>" and remove PrimitiveWrapper<P>.
This is, strictly speaking, incompatible with previously releases. However, the incompatibility will only manifest itself if a user uses their own primitive, which I don't expect to be the case.
Furthermore, the fix is very easy (see e.g. the change in AeadWrapper). Hence, in the spirit of not having much technical debt, I suggest to be backwards incompatible.
Note that the registry still will only accept PrimitiveWrapper<P,P> objects. We will allow registering PrimitiveWrapper<P,Q> objects later.
PiperOrigin-RevId: 344053514
Diffstat (limited to 'cc/daead')
-rw-r--r-- | cc/daead/deterministic_aead_wrapper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/daead/deterministic_aead_wrapper.h b/cc/daead/deterministic_aead_wrapper.h index 0d650c254..ea95b9472 100644 --- a/cc/daead/deterministic_aead_wrapper.h +++ b/cc/daead/deterministic_aead_wrapper.h @@ -34,7 +34,8 @@ namespace tink { // instance from the set // * DeterministicAead::DecryptDeterministically(...) uses the instance // that matches the ciphertext prefix. -class DeterministicAeadWrapper : public PrimitiveWrapper<DeterministicAead> { +class DeterministicAeadWrapper + : public PrimitiveWrapper<DeterministicAead, DeterministicAead> { public: // Returns a DeterministicAead-primitive that uses Daead-instances provided // in 'daead_set', which must be non-NULL and must contain a primary instance. |