Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 14 of 14) sorted by relevance

/lk-master/external/lib/mincrypt/
A Dsha256.c79 A = ctx->state[0]; in SHA256_Transform()
80 B = ctx->state[1]; in SHA256_Transform()
81 C = ctx->state[2]; in SHA256_Transform()
82 D = ctx->state[3]; in SHA256_Transform()
83 E = ctx->state[4]; in SHA256_Transform()
84 F = ctx->state[5]; in SHA256_Transform()
85 G = ctx->state[6]; in SHA256_Transform()
86 H = ctx->state[7]; in SHA256_Transform()
135 ctx->count = 0; in SHA256_init()
179 return ctx->buf; in SHA256_final()
[all …]
A Dsha.c57 A = ctx->state[0]; in SHA1_Transform()
58 B = ctx->state[1]; in SHA1_Transform()
59 C = ctx->state[2]; in SHA1_Transform()
60 D = ctx->state[3]; in SHA1_Transform()
61 E = ctx->state[4]; in SHA1_Transform()
82 ctx->state[0] += A; in SHA1_Transform()
105 ctx->count = 0; in SHA_init()
114 ctx->count += len; in SHA_update()
149 return ctx->buf; in SHA_final()
155 SHA_CTX ctx; in SHA_hash() local
[all …]
/lk-master/external/lib/mincrypt/include/lib/mincrypt/
A Dhash-internal.h53 #define HASH_init(ctx) (ctx)->f->init(ctx) argument
54 #define HASH_update(ctx, data, len) (ctx)->f->update(ctx, data, len) argument
55 #define HASH_final(ctx) (ctx)->f->final(ctx) argument
56 #define HASH_hash(data, len, digest) (ctx)->f->hash(data, len, digest)
57 #define HASH_size(ctx) (ctx)->f->size argument
A Dsha.h38 void SHA_init(SHA_CTX *ctx);
39 void SHA_update(SHA_CTX *ctx, const void *data, int len);
40 const uint8_t *SHA_final(SHA_CTX *ctx);
A Dsha256.h39 void SHA256_init(SHA256_CTX *ctx);
40 void SHA256_update(SHA256_CTX *ctx, const void *data, int len);
41 const uint8_t *SHA256_final(SHA256_CTX *ctx);
/lk-master/external/lib/lwip/include/lwip/
A Dtcpip.h78 typedef void (*tcpip_callback_fn)(void *ctx);
101 err_t tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block);
102 #define tcpip_callback(f, ctx) tcpip_callback_with_block(f, ctx, 1) argument
104 struct tcpip_callback_msg* tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx);
149 void *ctx; member
/lk-master/lib/bootimage/
A Dbootimage.c49 SHA256_CTX ctx; in validate_bootimage() local
50 SHA256_init(&ctx); in validate_bootimage()
52 SHA256_update(&ctx, be + 1, 4096 - sizeof(bootentry)); in validate_bootimage()
53 const uint8_t *hash = SHA256_final(&ctx); in validate_bootimage()
112 SHA256_init(&ctx); in validate_bootimage()
115 … SHA256_update(&ctx, (const uint8_t *)bi->ptr + be[i].file.offset, be[i].file.length); in validate_bootimage()
116 hash = SHA256_final(&ctx); in validate_bootimage()
/lk-master/external/lib/lwip/api/
A Dtcpip.c135 msg->msg.cb.function(msg->msg.cb.ctx); in tcpip_thread()
141 msg->msg.cb.function(msg->msg.cb.ctx); in tcpip_thread()
211 tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block) in tcpip_callback_with_block() argument
223 msg->msg.cb.ctx = ctx; in tcpip_callback_with_block()
408 struct tcpip_callback_msg* tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx) in tcpip_callbackmsg_new() argument
416 msg->msg.cb.ctx = ctx; in tcpip_callbackmsg_new()
/lk-master/kernel/include/kernel/
A Dport.h31 void *ctx; member
55 status_t port_open(const char *name, void *ctx, port_t *port);
/lk-master/app/tests/
A Dport_tests.c76 if (res.ctx != context1) { in single_thread_basic()
77 printf("bad context! = %p\n", res.ctx); in single_thread_basic()
436 if (pr.ctx == CMD_PORT_CTX) { in group_watcher_thread()
438 } else if (pr.ctx == TS1_PORT_CTX) { in group_watcher_thread()
440 } else if (pr.ctx == TS2_PORT_CTX) { in group_watcher_thread()
443 printf("unknown context %p\n", pr.ctx); in group_watcher_thread()
483 static status_t make_port_pair(const char *name, void *ctx, port_t *write, port_t *read) { in make_port_pair() argument
487 return port_open(name,ctx, read); in make_port_pair()
/lk-master/kernel/
A Dport.c70 void *ctx; member
180 status_t port_open(const char *name, void *ctx, port_t *port) { in port_open() argument
191 rp->ctx = ctx; in port_open()
417 result->ctx = rp->ctx; in read_no_lock()
/lk-master/external/lib/lwip/netif/ppp/
A Dppp.h133 typedef void (*pppLinkStatusCB_fn)(void *ctx, int errCode, void *arg);
A Dppp.c220 void (*linkStatusCB)(void *ctx, int errCode, void *arg);
/lk-master/lib/debug/
A Ddebug.c58 static int __panic_stdio_fgetc(void *ctx) { in __panic_stdio_fgetc() argument

Completed in 17 milliseconds