Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bouncycastle/crypto/tls/TlsContext.java')
-rw-r--r--src/main/java/org/bouncycastle/crypto/tls/TlsContext.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java b/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java
index 97660098..e8c940c7 100644
--- a/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java
+++ b/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java
@@ -2,7 +2,8 @@ package org.bouncycastle.crypto.tls;
import java.security.SecureRandom;
-public interface TlsContext {
+public interface TlsContext
+{
SecureRandom getSecureRandom();
@@ -20,14 +21,11 @@ public interface TlsContext {
/**
* Export keying material according to RFC 5705: "Keying Material Exporters for TLS".
- *
- * @param asciiLabel
- * indicates which application will use the exported keys.
- * @param context_value
- * allows the application using the exporter to mix its own data with the TLS PRF for
- * the exporter output.
- * @param length
- * the number of bytes to generate
+ *
+ * @param asciiLabel indicates which application will use the exported keys.
+ * @param context_value allows the application using the exporter to mix its own data with the TLS PRF for
+ * the exporter output.
+ * @param length the number of bytes to generate
* @return a pseudorandom bit string of 'length' bytes generated from the master_secret.
*/
byte[] exportKeyingMaterial(String asciiLabel, byte[] context_value, int length);