Skip to content

Enhance Digital Signature API #135

@anchupin

Description

@anchupin
  1. Add API to retrieve PublicKey from PrivateKey. (ECDSA)

Right now it's impossible to import PublicKey from PrivateKey and nobody keep PublicKey if you already have Private, internally you already do this, but this API is not exposed.

Swift Example:
Image

  1. Add None CryptographyAlgorithmId in case if data for digital signature has already hashed, so
    For java it will be like NoneWithECDSA.
    For Apple you can use kSecKeyAlgorithmECDSASignatureDigestX962.
    For OpenSSL it's NULL parameter in EVP_PKEY_sign_init
    For Web, this is the problem, web doesn't allow to send already hashed bytes, noble can, but not sure if you want to use it
private object None : CryptographyAlgorithmId<Digest>("NONE")
OR
public fun signatureGenerator(
      digest: CryptographyAlgorithmId<Digest>?,
      format: SignatureFormat,
): SignatureGenerator
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions