Lines Matching refs:ctx

102 		struct crypto_sha256_state ctx;  member
132 void __sha256_update(struct __sha256_ctx *ctx, const u8 *data, size_t len);
147 void __hmac_sha256_init(struct __hmac_sha256_ctx *ctx,
155 struct __sha256_ctx ctx; member
166 void sha224_init(struct sha224_ctx *ctx);
178 static inline void sha224_update(struct sha224_ctx *ctx, in sha224_update() argument
181 __sha256_update(&ctx->ctx, data, len); in sha224_update()
193 void sha224_final(struct sha224_ctx *ctx, u8 out[SHA224_DIGEST_SIZE]);
218 struct __hmac_sha256_ctx ctx; member
244 static inline void hmac_sha224_init(struct hmac_sha224_ctx *ctx, in hmac_sha224_init() argument
247 __hmac_sha256_init(&ctx->ctx, &key->key); in hmac_sha224_init()
262 void hmac_sha224_init_usingrawkey(struct hmac_sha224_ctx *ctx,
275 static inline void hmac_sha224_update(struct hmac_sha224_ctx *ctx, in hmac_sha224_update() argument
278 __sha256_update(&ctx->ctx.sha_ctx, data, data_len); in hmac_sha224_update()
290 void hmac_sha224_final(struct hmac_sha224_ctx *ctx, u8 out[SHA224_DIGEST_SIZE]);
328 struct __sha256_ctx ctx; member
339 void sha256_init(struct sha256_ctx *ctx);
351 static inline void sha256_update(struct sha256_ctx *ctx, in sha256_update() argument
354 __sha256_update(&ctx->ctx, data, len); in sha256_update()
366 void sha256_final(struct sha256_ctx *ctx, u8 out[SHA256_DIGEST_SIZE]);
391 struct __hmac_sha256_ctx ctx; member
417 static inline void hmac_sha256_init(struct hmac_sha256_ctx *ctx, in hmac_sha256_init() argument
420 __hmac_sha256_init(&ctx->ctx, &key->key); in hmac_sha256_init()
435 void hmac_sha256_init_usingrawkey(struct hmac_sha256_ctx *ctx,
448 static inline void hmac_sha256_update(struct hmac_sha256_ctx *ctx, in hmac_sha256_update() argument
451 __sha256_update(&ctx->ctx.sha_ctx, data, data_len); in hmac_sha256_update()
463 void hmac_sha256_final(struct hmac_sha256_ctx *ctx, u8 out[SHA256_DIGEST_SIZE]);
512 void __sha512_update(struct __sha512_ctx *ctx, const u8 *data, size_t len);
527 void __hmac_sha512_init(struct __hmac_sha512_ctx *ctx,
535 struct __sha512_ctx ctx; member
546 void sha384_init(struct sha384_ctx *ctx);
558 static inline void sha384_update(struct sha384_ctx *ctx, in sha384_update() argument
561 __sha512_update(&ctx->ctx, data, len); in sha384_update()
573 void sha384_final(struct sha384_ctx *ctx, u8 out[SHA384_DIGEST_SIZE]);
598 struct __hmac_sha512_ctx ctx; member
624 static inline void hmac_sha384_init(struct hmac_sha384_ctx *ctx, in hmac_sha384_init() argument
627 __hmac_sha512_init(&ctx->ctx, &key->key); in hmac_sha384_init()
642 void hmac_sha384_init_usingrawkey(struct hmac_sha384_ctx *ctx,
655 static inline void hmac_sha384_update(struct hmac_sha384_ctx *ctx, in hmac_sha384_update() argument
658 __sha512_update(&ctx->ctx.sha_ctx, data, data_len); in hmac_sha384_update()
670 void hmac_sha384_final(struct hmac_sha384_ctx *ctx, u8 out[SHA384_DIGEST_SIZE]);
708 struct __sha512_ctx ctx; member
719 void sha512_init(struct sha512_ctx *ctx);
731 static inline void sha512_update(struct sha512_ctx *ctx, in sha512_update() argument
734 __sha512_update(&ctx->ctx, data, len); in sha512_update()
746 void sha512_final(struct sha512_ctx *ctx, u8 out[SHA512_DIGEST_SIZE]);
771 struct __hmac_sha512_ctx ctx; member
797 static inline void hmac_sha512_init(struct hmac_sha512_ctx *ctx, in hmac_sha512_init() argument
800 __hmac_sha512_init(&ctx->ctx, &key->key); in hmac_sha512_init()
815 void hmac_sha512_init_usingrawkey(struct hmac_sha512_ctx *ctx,
828 static inline void hmac_sha512_update(struct hmac_sha512_ctx *ctx, in hmac_sha512_update() argument
831 __sha512_update(&ctx->ctx.sha_ctx, data, data_len); in hmac_sha512_update()
843 void hmac_sha512_final(struct hmac_sha512_ctx *ctx, u8 out[SHA512_DIGEST_SIZE]);