Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASAPCryptoAlgorithms no key pair for Owner #7

Open
TakenUsername404 opened this issue Aug 3, 2024 · 1 comment
Open

ASAPCryptoAlgorithms no key pair for Owner #7

TakenUsername404 opened this issue Aug 3, 2024 · 1 comment

Comments

@TakenUsername404
Copy link
Collaborator

When verifying a signature, where the signer is the Owner of the passed ASAPKeyStore a ASAPSecurityException is thrown.
"No key pair for xy"

@TakenUsername404
Copy link
Collaborator Author

public void ASAPCryptoAlgorithms_verify_Owner() throws ASAPSecurityException {
    String owner = "Test";
    InMemoASAPKeyStore inMemoASAPKeyStore = new InMemoASAPKeyStore(owner);
    inMemoASAPKeyStore.generateKeyPair();

    byte[] data = new byte[]{1,2,3};
    byte[] signature = ASAPCryptoAlgorithms.sign(data, inMemoASAPKeyStore);

    ASAPCryptoAlgorithms.verify(data, signature, owner, inMemoASAPKeyStore);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant