Module ocs_eap_codec

This library module implements encoding and decoding (CODEC) functions for the Extensible Authentication Protocol (EAP) in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

References

Description

This library module implements encoding and decoding (CODEC) functions for the Extensible Authentication Protocol (EAP) in the ocs application.

Function Index

eap_packet/1Encode or decode an EAP packet.
eap_pwd/1Encode or Decode an EAP-PWD-Header packet transported in the RADIUS EAP-Message attribute.
eap_pwd_id/1Encode or Decode EAP-pwd-ID
eap_pwd_commit/1Encode or Decode EAP-pwd-commit
eap_ttls/1Encode or Decode EAP-TTLS packet.
eap_aka/1Encode or decode an EAP-AKA message.
aka_clear_mac/1Zero out the EAP-AKA' message authentication code (MAC).
aka_set_mac/2Overwrite value of the EAP-AKA' message authentication code (MAC).

Function Details

eap_packet/1

eap_packet(Packet) -> Result

Encode or decode an EAP packet.

eap_pwd/1

eap_pwd(Packet) -> Result

Encode or Decode an EAP-PWD-Header packet transported in the RADIUS EAP-Message attribute.

RFC-5931 3.1

eap_pwd_id/1

eap_pwd_id(Packet) -> Result

Encode or Decode EAP-pwd-ID

RFC-5931 3.2.1 Comprise the Ciphersuite included in the calculation of the peer's and server's confirm messages

eap_pwd_commit/1

eap_pwd_commit(Packet) -> Result

Encode or Decode EAP-pwd-commit

RFC-5931 3.2.2 Element, Scalar are generated by server (in EAP-PWD-Commit/Request) and peer (in EAP-PWD-Commit/Response)

eap_ttls/1

eap_ttls(Packet) -> Result

Encode or Decode EAP-TTLS packet

RFC-5281 9.1

eap_aka/1

eap_aka(Message) -> Message

Encode or decode an EAP-AKA message.

RFC4187 section 8.1

aka_clear_mac/1

aka_clear_mac(EapMessage) -> EapMessage

Zero out the EAP-AKA' message authentication code (MAC).

aka_set_mac/2

aka_set_mac(MAC, EapMessage) -> EapMessage

Overwrite value of the EAP-AKA' message authentication code (MAC).


Generated by EDoc