public class EnvelopeEnc extends Object
| 构造器和说明 |
|---|
EnvelopeEnc() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Vector<byte[]> |
decrypt(byte[] keyname,
byte[] password,
byte[] envelopeKeyEncMsg,
Vector<byte[]> ciphertexts) |
static AbstractMap.SimpleEntry<Vector<byte[]>,Map<RSAPublicKey,byte[]>> |
encrypt(Vector<byte[]> msg,
Vector<RSAPublicKey> pubkeys) |
public static AbstractMap.SimpleEntry<Vector<byte[]>,Map<RSAPublicKey,byte[]>> encrypt(Vector<byte[]> msg, Vector<RSAPublicKey> pubkeys) throws CryptoException
msg - the list of msg to encrypt with aesgcm256_rpubkeys - the list of pubkey to enc the random number rCryptoExceptionpublic static Vector<byte[]> decrypt(byte[] keyname, byte[] password, byte[] envelopeKeyEncMsg, Vector<byte[]> ciphertexts) throws Exception
keyname - name of key usedpassword - password of key, use keyname and password to get keyenvelopeKeyEncMsg - ciphertext of the random key of AES-GCM-256ciphertexts - ciphertexts of AES-GCM-256ExceptionCopyright © 2022. All rights reserved.