Google/Tink: How use public key to verify signature
up vote
1
down vote
favorite
We want to use the Tink library in our project to be able to verify some incoming signatures given a public key.
What we have are the following:
- The public key as a string
- The signature itself
- The plaintext
After going through Tink's documentation, we cannot figure out how to load the public key string so that it can be used by PublicKeyVerifyFactory
.
Has anybody done anything similar? Have you found any examples online that could point us to the right direction?
java cryptography digital-signature public-key tink
add a comment |
up vote
1
down vote
favorite
We want to use the Tink library in our project to be able to verify some incoming signatures given a public key.
What we have are the following:
- The public key as a string
- The signature itself
- The plaintext
After going through Tink's documentation, we cannot figure out how to load the public key string so that it can be used by PublicKeyVerifyFactory
.
Has anybody done anything similar? Have you found any examples online that could point us to the right direction?
java cryptography digital-signature public-key tink
have you tried storing the public key in the export JSON format and trying to load it usingCleartextKeysetHandle.read
?
– Jos Angel George
Nov 9 at 19:04
There is not a single public key format, so to answer the question fully it is required to publish the public key.
– Maarten Bodewes
Nov 10 at 0:34
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
We want to use the Tink library in our project to be able to verify some incoming signatures given a public key.
What we have are the following:
- The public key as a string
- The signature itself
- The plaintext
After going through Tink's documentation, we cannot figure out how to load the public key string so that it can be used by PublicKeyVerifyFactory
.
Has anybody done anything similar? Have you found any examples online that could point us to the right direction?
java cryptography digital-signature public-key tink
We want to use the Tink library in our project to be able to verify some incoming signatures given a public key.
What we have are the following:
- The public key as a string
- The signature itself
- The plaintext
After going through Tink's documentation, we cannot figure out how to load the public key string so that it can be used by PublicKeyVerifyFactory
.
Has anybody done anything similar? Have you found any examples online that could point us to the right direction?
java cryptography digital-signature public-key tink
java cryptography digital-signature public-key tink
edited Nov 9 at 17:33
asked Nov 9 at 15:18
Alex
6,10973143
6,10973143
have you tried storing the public key in the export JSON format and trying to load it usingCleartextKeysetHandle.read
?
– Jos Angel George
Nov 9 at 19:04
There is not a single public key format, so to answer the question fully it is required to publish the public key.
– Maarten Bodewes
Nov 10 at 0:34
add a comment |
have you tried storing the public key in the export JSON format and trying to load it usingCleartextKeysetHandle.read
?
– Jos Angel George
Nov 9 at 19:04
There is not a single public key format, so to answer the question fully it is required to publish the public key.
– Maarten Bodewes
Nov 10 at 0:34
have you tried storing the public key in the export JSON format and trying to load it using
CleartextKeysetHandle.read
?– Jos Angel George
Nov 9 at 19:04
have you tried storing the public key in the export JSON format and trying to load it using
CleartextKeysetHandle.read
?– Jos Angel George
Nov 9 at 19:04
There is not a single public key format, so to answer the question fully it is required to publish the public key.
– Maarten Bodewes
Nov 10 at 0:34
There is not a single public key format, so to answer the question fully it is required to publish the public key.
– Maarten Bodewes
Nov 10 at 0:34
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228475%2fgoogle-tink-how-use-public-key-to-verify-signature%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
have you tried storing the public key in the export JSON format and trying to load it using
CleartextKeysetHandle.read
?– Jos Angel George
Nov 9 at 19:04
There is not a single public key format, so to answer the question fully it is required to publish the public key.
– Maarten Bodewes
Nov 10 at 0:34