/openjdk7/jdk/test/com/sun/org/apache/xml/internal/security/ |
H A D | TruncateHMAC.java | 84 SecretKey sk = signature.createSecretKey("secret".getBytes("ASCII")); 113 sig.sign(getSecretKey("secret".getBytes("ASCII"))); 122 private static SecretKey getSecretKey(final byte[] secret) { argument 125 public byte[] getEncoded() { return secret; }
|
/openjdk7/jdk/src/share/classes/sun/security/internal/spec/ |
H A D | TlsPrfParameterSpec.java | 47 private final SecretKey secret; field in class:TlsPrfParameterSpec 58 * @param secret the secret to use in the calculation (or null) 72 public TlsPrfParameterSpec(SecretKey secret, String label, argument 81 this.secret = secret; 91 * Returns the secret to use in the PRF calculation, or null if there is no 92 * secret. 94 * @return the secret to use in the PRF calculation, or null if there is no 95 * secret [all...] |
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | SslMacCore.java | 52 private byte[] secret; field in class:SslMacCore 76 * Initializes the Mac with the given secret key and algorithm parameters. 78 * @param key the secret key. 98 secret = key.getEncoded(); 99 if (secret == null || secret.length == 0) { 114 md.update(secret); 134 md.update(secret); 146 md.update(secret); 156 * maintaining the secret ke [all...] |
H A D | TlsPrfGenerator.java | 55 final static byte[] LABEL_MASTER_SECRET = // "master secret" 147 byte[] secret = (key == null) ? null : key.getEncoded(); 152 doTLS12PRF(secret, labelBytes, spec.getSeed(), n, 155 doTLS10PRF(secret, labelBytes, spec.getSeed(), n)); 164 static byte[] doTLS12PRF(byte[] secret, byte[] labelBytes, argument 172 return doTLS12PRF(secret, labelBytes, seed, outputLength, 176 static byte[] doTLS12PRF(byte[] secret, byte[] labelBytes, argument 181 if (secret == null) { 182 secret = B0; 185 // If we have a long secret, diges 214 doTLS10PRF(byte[] secret, byte[] labelBytes, byte[] seed, int outputLength) argument 222 doTLS10PRF(byte[] secret, byte[] labelBytes, byte[] seed, int outputLength, MessageDigest md5, MessageDigest sha) argument 267 expand(MessageDigest digest, int hmacSize, byte[] secret, int secOff, int secLen, byte[] label, byte[] seed, byte[] output, byte[] pad1, byte[] pad2) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/dk/ |
H A D | AesDkCrypto.java | 118 private byte[] stringToKey(char[] secret, byte[] salt, byte[] params) argument 129 byte[] tmpKey = randomToKey(PBKDF2(secret, salt, iter_count, 477 private static byte[] PBKDF2(char[] secret, byte[] salt, argument 480 PBEKeySpec keySpec = new PBEKeySpec(secret, salt, count, keyLength);
|
H A D | ArcFourCrypto.java | 76 private byte[] stringToKey(char[] secret, byte[] opaque) argument 87 passwd = charToUtf16(secret);
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | CipherSuite.java | 557 MAC newMac(ProtocolVersion protocolVersion, SecretKey secret) argument 559 return new MAC(this, protocolVersion, secret);
|
H A D | SSLSessionImpl.java | 180 void setMasterSecret(SecretKey secret) { argument 182 masterSecret = secret; 189 * Returns the master secret ... treat with extreme caution!
|
/openjdk7/jdk/test/javax/xml/crypto/dsig/ |
H A D | GenerationTests.java | 177 sks = new KeySelectors.SecretKeySelector("secret".getBytes("ASCII")); 253 getSecretKey("secret".getBytes("ASCII")), sks, false); 268 getSecretKey("secret".getBytes("ASCII")), sks, false); 278 getSecretKey("secret".getBytes("ASCII")), sks, false); 288 getSecretKey("secret".getBytes("ASCII")), sks, false); 1165 private static SecretKey getSecretKey(final byte[] secret) { argument 1168 public byte[] getEncoded() { return secret; }
|