mceliece
Class Encrypt
java.lang.Object
mceliece.Encrypt
public class Encrypt
- extends java.lang.Object
Classe que encripta uma mensagem.
- Author:
- Rafael
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Encrypt
public Encrypt(PublicKey publicKey,
Vector m)
- Construtor
- Parameters:
publicKey
- m
-
execute
public Vector execute(java.lang.StringBuffer log)
- Executa a encriptação
- Parameters:
log
-
- Returns:
- mensagem encriptada
getE
public Matrix getE()
- Returns:
- E
setE
public void setE(Matrix e)
- Parameters:
e
-
getT
public int getT()
- Returns:
- t
setT
public void setT(int t)
- Parameters:
t
-
getM
public Vector getM()
- Returns:
- m
setM
public void setM(Vector m)
- Parameters:
m
-