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

com.weavechain.core.encrypt.KeyExchange Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package com.weavechain.core.encrypt;

import javax.crypto.SecretKey;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PublicKey;

public interface KeyExchange {

    KeyPair readKeys(String encodedPrivateKey, String encodedPublicKey);

    KeyPair generateKeys();

    SecretKey sharedSecret(PrivateKey privateKey, PublicKey publicKey, byte[] message);

    byte[] encrypt(SecretKey key, byte[] data, byte[] seed, byte[] iv);

    byte[] decrypt(SecretKey key, byte[] data, byte[] seed, byte[] iv);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy