mirror of
https://github.com/cryb-to/cryb-otp.git
synced 2024-11-27 07:55:43 +00:00
Uncomment a couple of assertions.
This commit is contained in:
parent
1e97f3c21d
commit
098159c691
1 changed files with 3 additions and 2 deletions
|
@ -38,6 +38,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <cryb/assert.h>
|
||||||
#include <cryb/md5.h>
|
#include <cryb/md5.h>
|
||||||
#include <cryb/memset_s.h>
|
#include <cryb/memset_s.h>
|
||||||
|
|
||||||
|
@ -55,7 +56,7 @@ auth_encode(const uint8_t *nonce, const uint8_t *pt,
|
||||||
const uint8_t *key;
|
const uint8_t *key;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
// assert(len % 16 == 0);
|
assert(len % 16 == 0);
|
||||||
md5_init(&ctx);
|
md5_init(&ctx);
|
||||||
md5_update(&ctx, rad_secret, rad_secret_len);
|
md5_update(&ctx, rad_secret, rad_secret_len);
|
||||||
sctx = ctx;
|
sctx = ctx;
|
||||||
|
@ -83,7 +84,7 @@ auth_decode(const uint8_t *nonce, const uint8_t *ct,
|
||||||
const uint8_t *key;
|
const uint8_t *key;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
// assert(len % 16 == 0);
|
assert(len % 16 == 0);
|
||||||
md5_init(&ctx);
|
md5_init(&ctx);
|
||||||
md5_update(&ctx, rad_secret, rad_secret_len);
|
md5_update(&ctx, rad_secret, rad_secret_len);
|
||||||
sctx = ctx;
|
sctx = ctx;
|
||||||
|
|
Loading…
Reference in a new issue