GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ASAPCryptoAlgorithms no key pair for Owner · Issue #7 · SharedKnowledge/ASAPJava

ASAPCryptoAlgorithms no key pair for Owner #7

New issue
Copy link
New issue
Copy link
Open
Open
ASAPCryptoAlgorithms no key pair for Owner#7
Copy link

Description

@TakenUsername404
TakenUsername404
opened on Aug 3, 2024
Issue body actions

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

Activity

  1. TakenUsername404 commented on Aug 3, 2024

    @TakenUsername404
    TakenUsername404
    on Aug 3, 2024
    Author
    More actions
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.