Sha256: edbec00fd8015356c970924c6a27e1255852e39d17e8af8eee6d08006952f2a6
Contents?: true
Size: 997 Bytes
Versions: 3
Compression:
Stored size: 997 Bytes
Contents
#include <stdlib.h> #include "libk12.a.headers/KangarooTwelve.h" void * SleepingKangaroo12_Init(int outputLength) { KangarooTwelve_Instance *retVal = malloc(sizeof (KangarooTwelve_Instance)); // TODO: check result KangarooTwelve_Initialize(retVal, outputLength); // TODO: check result return retVal; } int SleepingKangaroo12_Update(void *instance, const unsigned char *input, size_t inputByteLen) { return KangarooTwelve_Update((KangarooTwelve_Instance *)instance, input, inputByteLen); } int SleepingKangaroo12_Final(void *instance, unsigned char *output, const unsigned char *customization, size_t customByteLen) { return KangarooTwelve_Final((KangarooTwelve_Instance *)instance, output, customization, customByteLen); } int SleepingKangaroo12_Squeeze(void *instance, unsigned char *output, size_t customByteLen) { return KangarooTwelve_Squeeze((KangarooTwelve_Instance *)instance, output, customByteLen); } void SleepingKangaroo12_Destroy(void *instance) { free(instance); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sleeping_kangaroo12-0.0.6 | ext/binding/sleeping_kangaroo12.c |
sleeping_kangaroo12-0.0.5 | ext/binding/sleeping_kangaroo12.c |
sleeping_kangaroo12-0.0.4 | ext/binding/sleeping_kangaroo12.c |