Class: TTTLS13::Cryptograph::Passer

Inherits:
Object
  • Object
show all
Defined in:
lib/tttls1.3/cryptograph/passer.rb

Instance Method Summary collapse

Instance Method Details

#decrypt(encrypted_record, _auth_data) ⇒ String, TTTLS13::Message::ContentType

Parameters:

  • encrypted_record (String)

Returns:



18
19
20
# File 'lib/tttls1.3/cryptograph/passer.rb', line 18

def decrypt(encrypted_record, _auth_data)
  [encrypted_record, encrypted_record[0]]
end

#encrypt(content, _type) ⇒ String

Parameters:

  • content (String)

Returns:

  • (String)


10
11
12
# File 'lib/tttls1.3/cryptograph/passer.rb', line 10

def encrypt(content, _type)
  content
end