Searched refs:keylen (Results 1 - 13 of 13) sorted by relevance

/openwrt/package/utils/px5g-standalone/src/polarssl/
H A Dsha1.h105 * \param keylen length of the HMAC key
107 void sha1_hmac_starts( sha1_context *ctx, unsigned char *key, int keylen );
130 * \param keylen length of the HMAC key
135 void sha1_hmac( unsigned char *key, int keylen,
/openwrt/package/network/services/ead/src/tinysrp/
H A Dtconf.c71 int c, ch, i, lastidx, keylen, yesno, fsize, status, nparams; local
105 keylen = 0;
134 if(fsize <= keylen)
/openwrt/package/kernel/lantiq/ltq-deu/src/
H A Difxmips_md5_hmac.c87 unsigned int keylen; member in struct:md5_hmac_ctx
126 /*! \fn int md5_hmac_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
131 * \param keylen key length greater than 64 bytes IS NOT SUPPORTED
133 static int md5_hmac_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) argument
137 //printk("copying keys to context with length %d\n", keylen);
139 if (keylen > MAX_HASH_KEYLEN) {
146 memcpy(&mctx->key, key, keylen);
147 mctx->keylen = keylen;
154 /*! \fn int md5_hmac_setkey_hw(const u8 *key, unsigned int keylen)
161 md5_hmac_setkey_hw(const u8 *key, unsigned int keylen) argument
[all...]
H A Difxmips_sha1_hmac.c82 int keylen; member in struct:sha1_hmac_ctx
117 /*! \fn int sha1_hmac_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
122 * \param keylen key length greater than 64 bytes IS NOT SUPPORTED
124 static int sha1_hmac_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) argument
129 if (keylen > SHA1_HMAC_MAX_KEYLEN) {
134 //printk("Setting keys of len: %d\n", keylen);
137 memcpy(&sctx->key, key, keylen);
138 sctx->keylen = keylen;
145 /*! \fn int sha1_hmac_setkey_hw(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
152 sha1_hmac_setkey_hw(const u8 *key, unsigned int keylen) argument
[all...]
H A Difxmips_async_aes.c666 * unsigned int keylen)
676 unsigned int keylen)
683 if (keylen != 16 && keylen != 24 && keylen != 32) {
688 ctx->key_length = keylen;
689 DPRINTF(0, "ctx @%p, keylen %d, ctx->key_length %d\n", ctx, keylen, ctx->key_length);
690 memcpy ((u8 *) (ctx->buf), in_key, keylen);
697 * unsigned int keylen)
675 aes_setkey(struct crypto_ablkcipher *tfm, const u8 *in_key, unsigned int keylen) argument
706 aes_generic_setkey(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int keylen) argument
722 rfc3686_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *in_key, unsigned int keylen) argument
[all...]
H A Difxmips_des.c119 /*! \fn int des_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
124 * \param keylen key length
127 unsigned int keylen)
134 dctx->key_length = keylen;
136 memcpy ((u8 *) (dctx->expkey), key, keylen);
391 /*! \fn int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
396 * \param keylen key length
399 unsigned int keylen)
405 dctx->controlr_M = keylen / 8 + 1; // 3DES EDE1 / EDE2 / EDE3 Mode
406 dctx->key_length = keylen;
126 des_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument
398 des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument
[all...]
H A Difxmips_async_des.c154 /*! \fn int lq_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int keylen)
159 * \param keylen key length
162 unsigned int keylen)
169 dctx->key_length = keylen;
171 memcpy ((u8 *) (dctx->expkey), key, keylen);
176 /*! \fn int lq_des3_ede_setkey(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int keylen)
181 * \param keylen key length
185 unsigned int keylen)
191 dctx->controlr_M = keylen/8 + 1; // des
192 dctx->key_length = keylen;
161 lq_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int keylen) argument
184 lq_des3_ede_setkey(struct crypto_ablkcipher *tfm, const u8 *in_key, unsigned int keylen) argument
[all...]
/openwrt/tools/firmware-utils/src/
H A Dsha1.h45 void sha1_hmac( uchar *key, uint keylen, uchar *buf, uint buflen,
H A Dbuffalo-lib.c87 int bcrypt_init(struct bcrypt_ctx *ctx, void *key, int keylen, argument
107 for(i = 0, j = 0; i < state_len; i++, j = (j + 1) % keylen) {
158 unsigned int keylen; local
163 keylen = strlen((char *) key);
165 memcpy(&bckey[1], key, keylen);
167 keylen++;
169 ret = bcrypt_init(&ctx, bckey, keylen,
H A Dbuffalo-lib.h106 int bcrypt_init(struct bcrypt_ctx *ctx, void *key, int keylen,
H A Dsha1.c340 void sha1_hmac( uchar *key, uint keylen, uchar *buf, uint buflen, argument
352 for( i = 0; i < keylen; i++ )
/openwrt/package/libs/openssl/include/crypto/
H A Dcryptodev.h86 __u32 keylen; member in struct:session_op
/openwrt/package/utils/px5g-standalone/src/library/
H A Dsha1.c374 void sha1_hmac_starts( sha1_context *ctx, unsigned char *key, int keylen )
379 if( keylen > 64 )
381 sha1( key, keylen, sum );
382 keylen = 20;
389 for( i = 0; i < keylen; i++ )
428 void sha1_hmac( unsigned char *key, int keylen, argument
434 sha1_hmac_starts( &ctx, key, keylen );

Completed in 162 milliseconds