crypto/hkdf_sha256: new module.
[ccan] / ccan / crypto / hkdf_sha256 / _info
1 #include "config.h"
2 #include <stdio.h>
3 #include <string.h>
4
5 /**
6  * crypto/hkdf_sha256 - RFC5869 Hardened Key Derivation Functions using SHA256
7  *
8  * This code implements the hkdf described in RFC5869.
9  *
10  * License: BSD-MIT
11  * Maintainer: Rusty Russell <rusty@rustcorp.com.au>
12  */
13 int main(int argc, char *argv[])
14 {
15         /* Expect exactly one argument */
16         if (argc != 2)
17                 return 1;
18
19         if (strcmp(argv[1], "depends") == 0) {
20                 printf("ccan/crypto/hmac_sha256\n");
21                 return 0;
22         }
23
24         if (strcmp(argv[1], "testdepends") == 0) {
25                 printf("ccan/str/hex\n");
26                 return 0;
27         }
28
29         return 1;
30 }