Home | History | Annotate | Download | only in tls

Lines Matching full:ciphertext

33 	if len(ckx.ciphertext) < 2 {
37 ciphertext := ckx.ciphertext
39 ciphertextLen := int(ckx.ciphertext[0])<<8 | int(ckx.ciphertext[1])
40 if ciphertextLen != len(ckx.ciphertext)-2 {
43 ciphertext = ckx.ciphertext[2:]
50 preMasterSecret, err := priv.Decrypt(config.rand(), ciphertext, &rsa.PKCS1v15DecryptOptions{SessionKeyLen: 48})
81 ckx.ciphertext = make([]byte, len(encrypted)+2)
82 ckx.ciphertext[0] = byte(len(encrypted) >> 8)
83 ckx.ciphertext[1] = byte(len(encrypted))
84 copy(ckx.ciphertext[2:], encrypted)
281 if len(ckx.ciphertext) == 0 || int(ckx.ciphertext[0]) != len(ckx.ciphertext)-1 {
284 x, y := elliptic.Unmarshal(ka.curve, ckx.ciphertext[1:])
400 ckx.ciphertext = make([]byte, 1+len(serialized))
401 ckx.ciphertext[0] = byte(len(serialized))
402 copy(ckx.ciphertext[1:], serialized)