• Message4.js 18 Aug 2016
    Testing the RNG and AEScmac cryptographic primitives for use in the cryptographic protocol.
    require("RNG")
    require("AEScmac")
    The AEScmac is used to validate the entire message in Mhash
    The AEScmac is applied to the previously sent Rnd and compared to
    The Auth block to validate that the sender of the message possesses
    The keys and is authentic.
    The AEScmac is NIST approved
    The RNG (random number generators) are two different instances with different keys on the client and server and do not need to be synchronized
    They can be randomized at random intervals.
    The output of Message4.js

    Auth and Mhash keys
    97,79,5c,b2,76,68,8,ea,88,a9,11,b3,ca,a7,d8,d,
    3a,8b,60,3c,70,61,9c,7,99,3e,c,c3,65,dd,b1,ff,
    Client builds and sends inital message
    Message=
    41,31,fd,1e,8f,21,41,d6,f2,33,90,16,be,c5,b0,75,
    94,84,49,64,37,1b,74,7,b7,81,62,95,6c,3b,98,da,
    6,6,a7,8c,7e,ff,21,29,d8,4a,e3,60,e4,a6,d,21,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    ab,c3,87,86,83,e8,c6,47,e4,41,fa,62,43,70,56,a,
    Server checks the message
    checking Mhash
    Valid
    Server builds and sends reply message
    Message=
    41,86,93,5b,ee,5f,f1,c9,b4,59,5e,42,f3,72,cf,c2,
    da,f9,db,87,d0,b,47,6b,e4,59,c8,26,59,9c,5e,2f,
    b0,9b,f7,e0,70,16,ed,bd,fe,5c,18,de,a5,25,eb,e3,
    8,a9,a5,1d,59,55,37,c3,45,bc,65,37,fe,12,34,50,
    2f,a6,4e,35,94,3f,77,fc,89,45,68,ec,fe,15,b6,62,
    Client checks the message
    checking Mhash
    Valid
    checking Auth
    Valid
    Client builds and sends reply message
    Message=
    42,9,63,23,50,5f,4b,0,d1,bd,c0,32,cc,e1,2a,e9,
    21,cd,fd,f,f8,4,cc,57,c0,b3,50,c1,fc,1b,1a,7,
    dc,98,81,85,9d,5e,e5,b1,d,e,21,ea,bd,2c,53,17,
    c3,9b,80,a8,bb,f1,22,27,9c,e4,71,3a,6,21,62,d8,
    59,f8,7,1f,ba,d7,3a,6b,7b,b8,13,10,5c,e7,53,a7,
    Server checks the message
    checking Mhash
    Valid
    checking Auth
    Valid
    Server builds and sends reply message
    Message=
    42,68,9a,41,25,a1,f7,76,30,ce,a,88,82,bc,e5,75,
    50,8f,4e,1e,2f,97,64,c8,68,2d,9,68,77,98,ff,de,
    6c,c,3c,6,46,d6,8d,76,64,47,ac,a8,76,eb,ce,3c,
    b9,39,9,51,80,da,7c,95,c2,4e,6e,d9,71,7,97,82,
    66,72,34,4a,2a,54,61,39,a,a3,3e,cd,c,90,75,4e,
    
    

    3 Attachments

About