Module: MailAuth::Dkim::Canonicalization
- Defined in:
- lib/mailauth/dkim/canonicalization.rb
Overview
RFC 6376 ยง3.4: the bytes a signature covers. One implementation, so signing and verifying can't reduce a message differently.
Class Method Summary collapse
Class Method Details
.body(bytes, form) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/mailauth/dkim/canonicalization.rb', line 7 def body(bytes, form) case form when "relaxed" then relaxed_body(bytes) when "simple" then simple_body(bytes) end end |
.field(field, form) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/mailauth/dkim/canonicalization.rb', line 14 def field(field, form) case form when "relaxed" then relaxed_field(field) when "simple" then field.chomp(CRLF) end end |