This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(aes_cmac). | |
%% R20 will have CMAC in crypto.... | |
-export([aes_cmac/2, generate_subkeys/1]). | |
-define(Zero, <<0:128>>). | |
-define(Rb, <<16#87:128>>). | |
-define(BlockSize, 16). | |
%% +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(dtls_client). | |
-export([connect/1]). | |
psk_verify(Username, UserState) -> | |
io:format("Server Hint: ~p~n", [Username]), | |
{ok, UserState}. | |
connect(Port) -> | |
[application:start(X) || X <- [crypto, asn1, public_key, ssl]], |