aboutsummaryrefslogtreecommitdiff
path: root/cc/prf
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2020-11-24 07:22:41 -0800
committerCopybara-Service <copybara-worker@google.com>2020-11-24 07:23:17 -0800
commit204d4570a828cde04a8a3992f05df22e4e497817 (patch)
tree3d062dc173a20f1ba3d86e88fdd72ab4b90fdcac /cc/prf
parente6db8194ea6295d01cffb83f607397d4581915ec (diff)
downloadtink-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/prf')
-rw-r--r--cc/prf/prf_set_wrapper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/prf/prf_set_wrapper.h b/cc/prf/prf_set_wrapper.h
index 6c03c5abc..ba40a3527 100644
--- a/cc/prf/prf_set_wrapper.h
+++ b/cc/prf/prf_set_wrapper.h
@@ -29,7 +29,7 @@ namespace tink {
// and combines them into a single PrfSet-primitive, that uses the provided
// instances, by using the keysets key ID as Prf ID and computing the union of
// the provided PRFs.
-class PrfSetWrapper : public PrimitiveWrapper<PrfSet> {
+class PrfSetWrapper : public PrimitiveWrapper<PrfSet, PrfSet> {
public:
util::StatusOr<std::unique_ptr<PrfSet>> Wrap(
std::unique_ptr<PrimitiveSet<PrfSet>> prf_set) const override;