src/server/util/hashing.c

changeset 605
07074daff678
parent 604
886658ba8f25
child 606
a6db0f83fa15
equal deleted inserted replaced
604:886658ba8f25 605:07074daff678
52 return NULL; 52 return NULL;
53 } 53 }
54 return ctx; 54 return ctx;
55 } 55 }
56 56
57 WS_SHA1_CTX* ws_sha512_create(void) { 57 WS_SHA512_CTX* ws_sha512_create(void) {
58 WS_SHA512_CTX *ctx = malloc(sizeof(WS_SHA512_CTX)); 58 WS_SHA512_CTX *ctx = malloc(sizeof(WS_SHA512_CTX));
59 if(!ctx) { 59 if(!ctx) {
60 return NULL; 60 return NULL;
61 } 61 }
62 if(ws_sha512_init(ctx)) { 62 if(ws_sha512_init(ctx)) {

mercurial