Questions tagged [tink]

Tink is a multi-language, cross-platform library that provides a simple and misuse-proof API for common cryptographic tasks.

72 questions
0
votes
2 answers

Decryption result not consistent

I have two instances of my service that does the encryption and decryption running in cloud. The decryption fails sometimes with 'decryption failed' error. I guess this is because each instance has its own Aead instance. How can i solve this…
Yahya
  • 53
  • 1
  • 5
0
votes
3 answers

Tag Mismatch error when decrypting the key using google tink library

I am new to cryptography. I am working on a poc to encrypt and decrypt a string. When I decrypt the encrypted string it works sometimes but other times throws Tag mismatch error. Am I missing anything? Here is my…
Yahya
  • 53
  • 1
  • 5
0
votes
2 answers

google-cloud-kms PKCS7 Cryptographic Message Syntax

Has anyone implemented Cryptographic Message Syntax using Google's HSM and KMS service? It is difficult to tell if this functionality is built into the Tinklibrary or not. There is no Google Engine for OpenSSL or BoringSSL (would love to be…
jmwilkosz
  • 11
  • 1
  • 5
0
votes
0 answers

Use static variable from JAR file

I've created a runnable JAR file which has a class with this code: static KeysetHandle keysetHandle = null; public String encrypt(String plainText){ Config.register(AeadConfig.TINK_1_1_0); // GENERATE key // key generated using…
sibster
  • 23
  • 4
0
votes
1 answer

Google/Tink: Use AWS KMS Key encrypt key material but get NullPointerException

When I used follow demo to encrypt key material, I got NullPointerException in AwsKmsClient().getAead() mothod. String masterKeyUri = "aws-kms://arn:aws:kms:us-east-1:007084425826:key/84a65985-f868-4bfc-83c2-366618acf147"; KeysetHandle keysetHandle…
Lexi
  • 3
  • 2
0
votes
1 answer

Google Tink Crypto library - KeyGenerator AES implementation not found

I'm running into this issue on a tablet device running Android KitKat as well as on a Samsung Tab-A on Lollipop. It has worked fine on an Acer tablet running Android M. Here's the failure point: private KeysetHandle getOrGenerateNewKeysetHandle()…
MikeOscarEcho
  • 535
  • 2
  • 12
  • 27
0
votes
2 answers

tink library com.google.protobuf.GeneratedMessageV3$ cannot be resolved

I recently tried to add the google tink library to eclipse and it always has a "com.google.protobuf.GeneratedMessageV3$ cannot be resolved" error, I normally never have any problems with adding libraries to my project, and from what I can tell it…
Adam P
  • 15
  • 1
  • 6
0
votes
1 answer

Google Tink library building C++

Trying to build Tink library (https://github.com/google/tink) with Bazel. Bazel installed, gcc version 7.2.0, Windows 10 x64. Visual C++ 2017. At first, there were errors like "C++ compilation of rule '@boringssl//:crypto' failed" - I commented…
user2501323
  • 227
  • 3
  • 12
-1
votes
1 answer

DeterministicAead one key but change initialization vector?

I'm using Googles Tink DeterministicAead. What I'd like to achieve, is to use the same key over a long time, but change the ciphertext for a certain plaintext every 24 hours (for GDPR reasons). Can I pick a new initialization vector somehow once…
bart van deenen
  • 661
  • 6
  • 16
-1
votes
1 answer

AdMob Server Side Validation for Video Reward

I need to verify the video reward of a user on the server, I'm using Google's Admob and as the documentation found on their website I can't find anything that could help me doing that kind of stuff, as the Golang API is not documented and I also…
Diego Barreto
  • 195
  • 3
  • 13
-1
votes
1 answer

Flutter Client Side Cryptography

How can I hash and return an input in the easiest possible way on a Flutter mobile app? I want the digital signature to be returned client side. Please I seem to be dead ended here.
Ryan James
  • 19
  • 2
-2
votes
2 answers

Android Studio : Gradle sync failed: Could not download tink

When start a project on Android Studio 4.0, Gradle cannot sync completely and Design mode is unavailable. Error message appear - > Gradle sync failed: Could not download tink-1.3.0-rc2.jar (com.google.crypto.tink:tink:1.3.0-rc2): No cached version…
1 2 3 4
5