All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.crypto.asymmetric.key.ec.AsymmetricKeyPairEc Maven / Gradle / Ivy

package io.github.mmm.crypto.asymmetric.key.ec;

import java.security.interfaces.ECPrivateKey;
import java.security.interfaces.ECPublicKey;

import io.github.mmm.crypto.asymmetric.key.AbstractAsymmetricKeyPair;
import io.github.mmm.crypto.asymmetric.key.AsymmetricKeyPair;

/**
 * Abstract base implementation of {@link AsymmetricKeyPair} for {@link ECPrivateKey} and {@link ECPublicKey}.
 *
 * @param  type of {@link #getPrivateKey() private key}.
 * @param  type of {@link #getPublicKey() public key}.
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @since 1.0.0
 */
public class AsymmetricKeyPairEc
    extends AbstractAsymmetricKeyPair {

  /**
   * The {@link io.github.mmm.crypto.algorithm.CryptoAlgorithm#getAlgorithm() algorithm} name {@value} for
   * ECC.
   */
  public static final String ALGORITHM_EC = "EC";

  /** Format for compact binary representation. */
  public static final String FORMAT_UNCOMORESSED = "Uncompressed";

  /**
   * The constructor.
   *
   * @param privateKey the {@link #getPrivateKey() private key}.
   * @param publicKey the {@link #getPrivateKey() public key}.
   */
  public AsymmetricKeyPairEc(PR privateKey, PU publicKey) {

    super(privateKey, publicKey);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy