[riot-notifications] [projects] add sha256 test case (#15)

Oleg Hahm notifications at github.com
Thu Aug 8 23:58:28 CEST 2013


> +
> +void sha256(const char *str)
> +{
> +    SHA256_CTX sha256;
> +    SHA256_Init(&sha256);
> +    SHA256_Update(&sha256, str, strlen(str));
> +    SHA256_Final(hash, &sha256);
> +
> +    for (int i = 0; i < SHA256_DIGEST_LENGTH; i++) {
> +        printf("%02x", hash[i]);
> +    }
> +
> +    printf("\n");
> +}
> +
> +int main()

warning: function declaration isn't a prototype

Parameter `void` is missing

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/projects/pull/15/files#r5671345
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130808/4aa853c7/attachment.html>


More information about the notifications mailing list