Sha256: 90177c3c8ddf9f72c0a11cf20338fa3db457c47a383ba0a7d7053df4a92ab030
Contents?: true
Size: 1007 Bytes
Versions: 10
Compression:
Stored size: 1007 Bytes
Contents
# frozen_string_literal: true # This file is part of PacketGen # See https://github.com/sdaubert/packetgen for more informations # Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net> # This program is published under MIT license. module PacketGen module Header class EAP # Extensible Authentication Protocol (EAP) - # {https://tools.ietf.org/html/rfc3748#section-5.4 MD5 challenge} # @author Sylvain Daubert # @since 2.1.4 class MD5 < EAP update_field :type, default: 4 remove_field :body # @!attribute value_size # @return [Integer] 8-bit value size define_field :value_size, Types::Int8 # @!attribute value # @return [::String] define_field :value, Types::String, builder: ->(h, t) { t.new(length_from: h[:value_size]) } # @!attribute optional_name # @return [::String] define_field :optional_name, Types::String end end end end
Version data entries
10 entries across 10 versions & 1 rubygems