Class QTESLA
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.qtesla.QTESLA
-
public class QTESLA extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QTESLA()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgenerateKeyPairI(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Heuristic qTESLA Security Category-1static intgenerateKeyPairIIIP(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Provably-Secure qTESLA Security Category-3static intgenerateKeyPairIIISize(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Heuristic qTESLA Security Category-3 (Option for Size)static intgenerateKeyPairIIISpeed(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Heuristic qTESLA Security Category-3 (Option for Speed)static intgenerateKeyPairIP(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Provably-Secure qTESLA Security Category-1static intsigningIIIP(byte[] signature, byte[] message, int messageOffset, int messageLength, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Signature for A Given Message According to the Ring-TESLA Signature Scheme for Provably-Secure qTESLA Security Category-3static intsigningIP(byte[] signature, byte[] message, int messageOffset, int messageLength, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Signature for A Given Message According to the Ring-TESLA Signature Scheme for Provably-Secure qTESLA Security Category-1
-
-
-
Method Detail
-
generateKeyPairI
public static int generateKeyPairI(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Heuristic qTESLA Security Category-1- Parameters:
publicKey- Contains Public KeyprivateKey- Contains Private KeysecureRandom- Source of Randomness- Returns:
- 0 Successful Execution
-
generateKeyPairIIISize
public static int generateKeyPairIIISize(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Heuristic qTESLA Security Category-3 (Option for Size)- Parameters:
publicKey- Contains Public KeyprivateKey- Contains Private KeysecureRandom- Source of Randomness- Returns:
- 0 Successful Execution
-
generateKeyPairIIISpeed
public static int generateKeyPairIIISpeed(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Heuristic qTESLA Security Category-3 (Option for Speed)- Parameters:
publicKey- Contains Public KeyprivateKey- Contains Private KeysecureRandom- Source of Randomness- Returns:
- 0 Successful Execution
-
generateKeyPairIP
public static int generateKeyPairIP(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Provably-Secure qTESLA Security Category-1- Parameters:
publicKey- Contains Public KeyprivateKey- Contains Private KeysecureRandom- Source of Randomness- Returns:
- 0 Successful Execution
-
generateKeyPairIIIP
public static int generateKeyPairIIIP(byte[] publicKey, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Pair of Public Key and Private Key for qTESLA Signature Scheme for Provably-Secure qTESLA Security Category-3- Parameters:
publicKey- Contains Public KeyprivateKey- Contains Private KeysecureRandom- Source of Randomness- Returns:
- 0 Successful Execution
-
signingIP
public static int signingIP(byte[] signature, byte[] message, int messageOffset, int messageLength, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Signature for A Given Message According to the Ring-TESLA Signature Scheme for Provably-Secure qTESLA Security Category-1- Parameters:
message- Message to be SignedmessageOffset- Starting Point of the Message to be SignedmessageLength- Length of the Message to be Signedsignature- Output Package Containing SignatureprivateKey- Private KeysecureRandom- Source of Randomness- Returns:
- 0 Successful Execution
-
signingIIIP
public static int signingIIIP(byte[] signature, byte[] message, int messageOffset, int messageLength, byte[] privateKey, java.security.SecureRandom secureRandom)Description: Generates A Signature for A Given Message According to the Ring-TESLA Signature Scheme for Provably-Secure qTESLA Security Category-3- Parameters:
message- Message to be SignedmessageOffset- Starting Point of the Message to be SignedmessageLength- Length of the Message to be Signedsignature- Output Package Containing SignatureprivateKey- Private KeysecureRandom- Source of Randomness- Returns:
- 0 Successful Execution
-
-