package proj3;
import java.io.File;
import java.io.OutputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.FileInputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
import java.security.Key;
import java.security.PrivateKey;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.KeyFactory;
import java.security.Signature;
import java.security.spec.PKCS8EncodedKeySpec;
import java.util.Base64;
public class BlobSigner {
/**
* generate a signature file (dstSignatureFile) for fileToSignusing
* sshPrivateKeyFile.
*
*
*
*
*
* @param fileToSign the file containing the data to besigned.
* @param sshPrivateKeyFile the ssh private key file with thesigning key
* to use.
* @param dstSignatureFile the file to write the generated signatureto.
* the signature will be base64 encoded.
*/
public static void signFile(
File fileToSign, File sshPrivateKeyFile, FiledstSignatureFile
) {}
/**
* validate the signature file (signatureFile) correspondingto
* signedFile using the public key in sshPublicKeyFile.
* @param signedFile the file containing the data that wassigned.
* @param sshPublicKeyFile the file
PayPal Gateway not configured
PayPal Gateway not configured