aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/hash/none.c
blob: 79690e8e0a629d4675c52f02f75fe946acbed29a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "hash.h"

#include <string.h>
#include <stdint.h>

int hash_size(int input_size) {
    return input_size;
}

void *hash_new_ctx(void) {
    return NULL;
}

void hash_init(void *ctx) {

}

void hash_final(void *ctx, int size, const uint8_t *msg, uint8_t *digest) {
    memcpy(digest, msg, size);
}