aboutsummaryrefslogtreecommitdiff
path: root/java_src/src/test
AgeCommit message (Collapse)Author
2023-08-11Avoid CleartextKeysetHandle and JsonKeysetReaders in JwkSetConverterTest.tholenst
PiperOrigin-RevId: 555931570
2023-08-11Switch MacWrapper to using full primitives, among other things reworking the ↵lizatretyakova
internal structure and logging the input data length instead of the processed data length in the LEGACY case, and registering LegacyFullMac to handle potential old/custom primitives using the old APIs. PiperOrigin-RevId: 555869169
2023-08-11Register JwtRsaSsaPss proto serialization.ioannanedelcu
PiperOrigin-RevId: 555850886
2023-08-10Ensure that input HPKE proto keys have correct length prior to parsing.wconner
PiperOrigin-RevId: 555460591
2023-08-10Undoing the MacWrapper change.lizatretyakova
PiperOrigin-RevId: 555434824
2023-08-10Add createSenderAuthContext and createRecipientAuthContext to HpkeContext.Tink Team
PiperOrigin-RevId: 555413692
2023-08-09Add parsers and serializers for JwtRsaSsa key and parameters objects.ioannanedelcu
PiperOrigin-RevId: 555219425
2023-08-09Add JwtRsaSsaPss Private Key in Java.ioannanedelcu
PiperOrigin-RevId: 555190904
2023-08-09Switch MacWrapper to using full primitives. That includes reworking the ↵lizatretyakova
internal structure and logging the input data length instead of the processed data length in the LEGACY case. PiperOrigin-RevId: 555189951
2023-08-09Add JwtRsaSsaPss Public Key in Java.ioannanedelcu
PiperOrigin-RevId: 555178900
2023-08-08Add authEncapsulate and authDecapsulate to HpkeKem, NistCurvesHpkeKem and ↵Tink Team
X25519HpkeKem. PiperOrigin-RevId: 554812615
2023-08-08Add RsaSsaPssParameters class in Java.ioannanedelcu
PiperOrigin-RevId: 554808719
2023-08-07Switch MacWrapper to using full primitives. That includes reworking the ↵lizatretyakova
internal structure and logging the input data length instead of the processed data length in the LEGACY case. PiperOrigin-RevId: 554500595
2023-08-07Fix the return type of LegacyFullMac.create().lizatretyakova
PiperOrigin-RevId: 554457831
2023-08-07Add support for full PRF primitive creation to HmacPrfKeyManager.lizatretyakova
PiperOrigin-RevId: 554455965
2023-08-07Add support for full PRF primitive creation to AesCmacPrfKeyManager.lizatretyakova
PiperOrigin-RevId: 554415146
2023-08-07Add serialization for Ecies Private Keys.ioannanedelcu
PiperOrigin-RevId: 554395954
2023-08-04Add EciesPrivateKey class in Javaioannanedelcu
PiperOrigin-RevId: 553782644
2023-08-03Add builder for HpkeTestSetup Java class.Tink Team
PiperOrigin-RevId: 553480748
2023-08-02Pass HPKE mode in HPKE createContext.Tink Team
PiperOrigin-RevId: 553067158
2023-07-28Switch MacWrapper to using full primitives. That includes reworking the ↵lizatretyakova
internal structure and logging the input data length instead of the processed data length in the LEGACY case. PiperOrigin-RevId: 551864879
2023-07-27Ensure that generated HPKE private keys are encoded to the correct length.wconner
Also, added utility methods for determining HPKE key lengths from KEM id. PiperOrigin-RevId: 551532702
2023-07-27Introduce end-to-end testing of LegacyFullMac, and fix problems uncovered by ↵lizatretyakova
the new tests. PiperOrigin-RevId: 551486832
2023-07-26Make use of the new utility function for proto conversions.lizatretyakova
PiperOrigin-RevId: 551218413
2023-07-26Ensure that legacy proto hybrid keys are parsed to crunchy keys.wconner
PiperOrigin-RevId: 551182852
2023-07-26Register JwtRsaSsaPkcs1 proto serialization.ioannanedelcu
PiperOrigin-RevId: 551117542
2023-07-25Add parsers and serializers for JwtRsaSsaPkcs1 parameters, public key and ↵ioannanedelcu
private key. PiperOrigin-RevId: 550921147
2023-07-24Add a create function to KmsEnvelopeAead.juerg
This function uses the new Parameters instead of the old proto KeyTemplates. PiperOrigin-RevId: 550614620
2023-07-24Remove redundant secret key access when serializing/parsing public keys.ioannanedelcu
PiperOrigin-RevId: 550503544
2023-07-21Add serialization for Ecies Public Keys.tholenst
PiperOrigin-RevId: 549938077
2023-07-21Replace some calls to "KeyTemplate.create" with "KeyTemplate.createFrom", ↵tholenst
taking a Parameters object. The call to "create" will be deprecated. Note: if a user calls e.g. AesGcmKeyManager.aes128GcmTemplate() without registering the proto serialization, before this CL, it was possible to get the serialized version. After this CL, this will break. I don't think this should be an issue since users basically always register everything anyhow. PiperOrigin-RevId: 549932301
2023-07-21When parsing Ecies parameters with Curve25519, only accept compressed points.tholenst
PiperOrigin-RevId: 549927290
2023-07-21Add JwtRsaSsaPkcs1PrivateKey class in Java.ioannanedelcu
PiperOrigin-RevId: 549884443
2023-07-21Replace some calls to "KeyTemplate.create" with "KeyTemplate.createFrom", ↵tholenst
taking a Parameters object. The call to "create" will be deprecated. Note: if a user calls e.g. AesGcmKeyManager.aes128GcmTemplate() without registering the proto serialization, before this CL, it was possible to get the serialized version. After this CL, this will break. I don't think this should be an issue since users basically always register everything anyhow. PiperOrigin-RevId: 549859554
2023-07-20Add a test with two envelope AEAD keys in a keyset.juerg
PiperOrigin-RevId: 549657384
2023-07-20Change EciesPublicKey constructor and point accessor into two cases: one for ↵tholenst
NIST curves and one for X25519 PiperOrigin-RevId: 549613138
2023-07-20Add JwtRsaSsaPkcs1PublicKey class in Java.ioannanedelcu
PiperOrigin-RevId: 549607483
2023-07-20In KeyTemplate, either store a proto or a parameters, and convert them on ↵tholenst
demand. This means registration of the respective serializer/parser can be done later. Users might save the object, and then later use it in e.g. Keysethandle.generateNew() and only have the serializer register at the later point. Hence we do it like this. Unfortunately, this means that we may have to throw a TinkBugException (or something else which is unchecked) since the APIs do not throw anything. Within Google nobody called these APIs outside of Tink, so I am relatively sure that this is no problem. Within Tink, the only remaining usage is in KeysetManager, and I changed things to throw a GeneralSecurityException there. PiperOrigin-RevId: 549594684
2023-07-20Remove remaining usages of Registry.getKeyManager and ↵juerg
Registry.getUntypedKeyManager in some tests. Instead, to verify that the key manager is registered, try to create a key. Also, remove the initialization test. It doesn't really add any additional value. PiperOrigin-RevId: 549582726
2023-07-19Add JwtRsaSsaPkcs1Parameters class in Java.ioannanedelcu
PiperOrigin-RevId: 549314771
2023-07-19Rename EcPointFormat accessors in EciesParameters and change behavior: if ↵tholenst
the curve is 25519 it must not be set. PiperOrigin-RevId: 549304481
2023-07-19Remove usages of Registry.getKeyManager and Registry.getUntypedKeyManager in ↵juerg
some tests. Instead, to verify that the key manager is registered, try to create a key. Also, remove the initialization test. It doesn't really add any additional value. PiperOrigin-RevId: 549278449
2023-07-19Add a way to create Macs from LegacyProtoKeys.lizatretyakova
PiperOrigin-RevId: 549266939
2023-07-18Move HmacProtoSerialization into internal/. This needs to be accessible from ↵lizatretyakova
a keymanager that is internal. PiperOrigin-RevId: 548968754
2023-07-14Avoid usages of "KeyTemplate.getOutputPrefix". We want to deprecate it in ↵tholenst
the future. PiperOrigin-RevId: 548076147
2023-07-12Remove usages of Registry.getKeyManager and Registry.getUntypedKeyManager in ↵juerg
some tests. Instead, to verify that the key manager is registered, try to create a key. Also, remove the initialization test. It doesn't really add any additional value. PiperOrigin-RevId: 547475050
2023-07-12Create EciesPublicKey class in Java.ioannanedelcu
PiperOrigin-RevId: 547449244
2023-07-12Delete KeyDerivationkeyTemplates.tholenst
This isn't needed anymore -- we now fully support Parameters. Also, this was never in a release, so I'm sure that it's never used. Note that even if a user uses it, they can just replace KeyTemplate keyDerivationTemplate = KeyDerivationKeyTemplates.createPrfBasedKeyTemplate(a, b); with PrfBasedKeyDerivationParameters.builder() .setPrfParameters((PrfParameters) a.toParameters()) .setDerivedKeyParameters(b.toParameters()) .build(); (Typically, one doesn't need to convert it into a KeyTemplate -- if one does, one can just call KeyTemplate.fromProto()). PiperOrigin-RevId: 547406999
2023-07-11Signature: Replace the validation tests with tests checking if the key ↵tholenst
generation succeeds. This is a bit more accurate, but has the disadvantage of being potentially slower. Anyhow, i want to change the template functions to not return these pairs (output_prefix, format) anymore, so we need to change this. PiperOrigin-RevId: 547128537
2023-07-10Prfs & StreamingAeads: Replace the validation tests with tests checking if ↵tholenst
the key generation succeeds. This is a bit more accurate, but has the disadvantage of being potentially slower. Anyhow, i want to change the template functions to not return these pairs (output_prefix, format) anymore, so we need to change this. PiperOrigin-RevId: 546854974