12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OPENCRYPTO(9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> OPENCRYPTO(9)<strong>NAME</strong>opencrypto, crypto_get_driverid, crypto_register, crypto_kregister,crypto_unregister, crypto_done, crypto_kdone, crypto_newsession,crypto_freesession, crypto_dispatch, crypto_kdispatch, crypto_getreq,crypto_freereq —API for cryptographic services in the kernelSYNOPSIS#include int32_tcrypto_get_driverid(u_int32_t);intcrypto_register(u_int32_t , int , u_int16_t , u_int32_t ,int (∗)(void ∗, u_int32_t ∗, struct cryptoini ∗) ,int (∗)(void ∗, u_int32_t ∗) , int (∗)(u_int64_t) ,int (∗)(struct cryptop ∗) , void ∗);intcrypto_kregister(u_int32_t , int , u_int32_t ,int (∗)(void ∗, struct cryptkop ∗, int) , void ∗);intcrypto_unregister(u_int32_t , int);voidcrypto_done(struct cryptop ∗);voidcrypto_kdone(struct cryptkop ∗);intcrypto_newsession(u_int64_t ∗ , struct cryptoini ∗ , int);intcrypto_freesession(u_int64_t);intcrypto_dispatch(struct cryptop ∗);intcrypto_kdispatch(struct cryptkop ∗);struct cryptop ∗crypto_getreq(int);voidcrypto_freereq(struct cryptop ∗);#define EALG_MAX_BLOCK_LEN 16struct cryptoini {intintintvoidu_int8_tcri_alg;cri_klen;cri_rnd;∗cri_key;cri_iv[EALG_MAX_BLOCK_LEN];<strong>NetBSD</strong> 3.0 December 20, 2003 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!