A simple CyaSSL-based HMAC-MD5 implementation. Licensed under GPL v2.
Dependents: RFrec_full RFtrans_full
The output will be base64-encoded, with trailing "==", like this:
j62o/jZsAZD9i9m+32lIuQ==
Example
#include "mbed.h" #include "hmac_md5.h" Serial pc(USBTX, USBRX); // tx, rx void main(void) { const char * key = "MySecretKey"; const char * text = "message to be signed"; char output[26]; HMAC_MD5(key, text, output); printf("result = %s\n", output); while(true){} }
Files at revision 0:83f3dcfa5c8f
Name | Size | Actions |
---|---|---|
[up] | ||
coding.c | 7620 | Revisions Annotate |
coding.h | 1533 | Revisions Annotate |
error.h | 5408 | Revisions Annotate |
hmac.c | 10699 | Revisions Annotate |
hmac.h | 3555 | Revisions Annotate |
hmac_md5.cpp | 564 | Revisions Annotate |
hmac_md5.h | 226 | Revisions Annotate |
md5.c | 11730 | Revisions Annotate |
md5.h | 1713 | Revisions Annotate |
memory.h | 1604 | Revisions Annotate |
misc.c | 4434 | Revisions Annotate |
misc.h | 1720 | Revisions Annotate |
settings.h | 11342 | Revisions Annotate |
types.h | 8719 | Revisions Annotate |
visibility.h | 2126 | Revisions Annotate |