Searched refs:preMasterSecret (Results 1 – 5 of 5) sorted by relevance
/external/boringssl/src/ssl/test/runner/ |
D | key_agreement.go | 98 preMasterSecret := make([]byte, 48) 99 _, err := io.ReadFull(config.rand(), preMasterSecret[2:]) 121 err = rsa.DecryptPKCS1v15SessionKey(config.rand(), key, ciphertext, preMasterSecret) 128 vers := uint16(preMasterSecret[0])<<8 | uint16(preMasterSecret[1]) 132 return preMasterSecret, nil 140 preMasterSecret := make([]byte, 48) 146 preMasterSecret[0] = byte(vers >> 8) 147 preMasterSecret[1] = byte(vers) 148 _, err := io.ReadFull(config.rand(), preMasterSecret[2:]) 153 …rypted, err := rsa.EncryptPKCS1v15(config.rand(), cert.PublicKey.(*rsa.PublicKey), preMasterSecret) [all …]
|
D | prf.go | 145 func masterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret, clientRandom, s… argument 150 prfForVersion(version, suite)(masterSecret, preMasterSecret, masterSecretLabel, seed[0:]) 157 func extendedMasterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret []byte, … 159 prfForVersion(version, suite)(masterSecret, preMasterSecret, extendedMasterSecretLabel, h.Sum())
|
D | handshake_client.go | 558 preMasterSecret, ckx, err := keyAgreement.generateClientKeyExchange(c.config, hs.hello, leaf) 571 …hs.masterSecret = extendedMasterFromPreMasterSecret(c.vers, hs.suite, preMasterSecret, hs.finished… 577 …hs.masterSecret = masterFromPreMasterSecret(c.vers, hs.suite, preMasterSecret, hs.hello.random, hs…
|
D | handshake_server.go | 633 preMasterSecret, err := keyAgreement.processClientKeyExchange(config, hs.cert, ckx, c.vers) 639 …hs.masterSecret = extendedMasterFromPreMasterSecret(c.vers, hs.suite, preMasterSecret, hs.finished… 644 …hs.masterSecret = masterFromPreMasterSecret(c.vers, hs.suite, preMasterSecret, hs.clientHello.rand…
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | HandshakeProtocolTest.java | 118 hs_protocol.preMasterSecret = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }; in testcomputerVerifyDataTLS() 120 assertNull(hs_protocol.preMasterSecret); in testcomputerVerifyDataTLS() 162 hs_protocol.preMasterSecret = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }; in testComputerReferenceVerifyDataSSLv3() 164 assertNull(hs_protocol.preMasterSecret); in testComputerReferenceVerifyDataSSLv3()
|