tls

tls.git
git clone git://git.lenczewski.org/tls.git
Log | Files | Refs

hmac-sha2.c (1095B)


      1 #include "hmac-sha2.h"
      2 
      3 struct hmac_hash const hmac_sha256 = {
      4 	.init = (void *) sha256_init,
      5 	.push = (void *) sha256_push,
      6 	.dgst = (void *) sha256_dgst,
      7 	.digest_size = SHA256_DIGEST_SIZE,
      8 };
      9 
     10 struct hmac_hash const hmac_sha224 = {
     11 	.init = (void *) sha224_init,
     12 	.push = (void *) sha224_push,
     13 	.dgst = (void *) sha224_dgst,
     14 	.digest_size = SHA224_DIGEST_SIZE,
     15 };
     16 
     17 struct hmac_hash const hmac_sha512 = {
     18 	.init = (void *) sha512_init,
     19 	.push = (void *) sha512_push,
     20 	.dgst = (void *) sha512_dgst,
     21 	.digest_size = SHA512_DIGEST_SIZE,
     22 };
     23 
     24 struct hmac_hash const hmac_sha384 = {
     25 	.init = (void *) sha384_init,
     26 	.push = (void *) sha384_push,
     27 	.dgst = (void *) sha384_dgst,
     28 	.digest_size = SHA384_DIGEST_SIZE,
     29 };
     30 
     31 struct hmac_hash const hmac_sha512_224 = {
     32 	.init = (void *) sha512_224_init,
     33 	.push = (void *) sha512_224_push,
     34 	.dgst = (void *) sha512_224_dgst,
     35 	.digest_size = SHA512_224_DIGEST_SIZE,
     36 };
     37 
     38 struct hmac_hash const hmac_sha512_256 = {
     39 	.init = (void *) sha512_256_init,
     40 	.push = (void *) sha512_256_push,
     41 	.dgst = (void *) sha512_256_dgst,
     42 	.digest_size = SHA512_256_DIGEST_SIZE,
     43 };