Module ocs_eap_pwd

This library module implements functions for EAP authentication using only a password in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

References

Description

This library module implements functions for EAP authentication using only a password in the ocs application.

Function Index

h/1Random function (H).
kdf/3Key Derivation Function (KDF).
compute_pwe/4Compute Password Element (PWE).
compute_scalar/2Compute Scalar Element.
compute_ks/4Compute Ks.

Function Details

h/1

h(Data) -> Result

Random function (H). RFC5931 section 2.4

kdf/3

kdf(Key, Label, Length) -> Result

Key Derivation Function (KDF). RFC5931 section 2.5

compute_pwe/4

compute_pwe(Token, PeerIdentity, ServerIdentity, Password) -> PWE

Compute Password Element (PWE). RFC5931 section 2.8.3

compute_scalar/2

compute_scalar(Random, PWE) -> Result

Compute Scalar Element. RFC5931 section 2.8.4.1

compute_ks/4

compute_ks(Random, PWE, Scalar, Element) -> Ks

Compute Ks. RFC5931 section 2.8.4.1


Generated by EDoc