uint8_t stat_key[16];
-void omac_noekeon_next_dummy(void* buffer, void* ctx){
+void omac_noekeon_next_dummy(void* ctx, const void* buffer){
omac_noekeon_next(buffer, stat_key, ctx);
}
-void omac_noekeon_init_dummy(void* key, uint16_t keysize_b, void* ctx){
+void omac_noekeon_init_dummy(void* ctx, const void* key, uint16_t keysize_b){
omac_noekeon_init(ctx);
memcpy(stat_key, key, 16);
}
-void omac_noekeon_last_dummy(void* buffer, uint16_t size_b, void* key, uint16_t keysize_b, void* ctx){
+void omac_noekeon_last_dummy(void* ctx, const void* buffer, uint16_t size_b){
while(size_b>128){
- omac_noekeon_next(buffer, key, ctx);
+ omac_noekeon_next(buffer, stat_key, ctx);
size_b -= 128;
buffer = (uint8_t*)buffer +16;
}
- omac_noekeon_last(buffer, size_b, key, ctx);
+ omac_noekeon_last(buffer, size_b, stat_key, ctx);
}
void omac_noekeon_conv_dummy(void* buffer, void* ctx){