/openwrt/package/system/opkg/files/ |
H A D | opkg-key | 26 local key="$1" 27 [ -n "$key" ] || usage 28 [ -f "$key" ] || echo "Cannot open file $1" 29 local fingerprint="$(usign -F -p "$key")" 31 cp "$key" "/etc/opkg/keys/$fingerprint" 35 local key="$1" 36 [ -n "$key" ] || usage 37 [ -f "$key" ] || echo "Cannot open file $1" 38 local fingerprint="$(usign -F -p "$key")"
|
/openwrt/package/network/services/ead/src/tinysrp/ |
H A D | tinysrp.h | 5 #define SESSION_KEY_LEN 40 /* 320-bit session key */ 10 unsigned char key[SESSION_KEY_LEN]; member in struct:__anon99 14 successful authentication. If tsrp is not NULL, the username and key
|
H A D | t_misc.c | 293 * The interleaved session-key hash. This separates the even and the odd 299 t_sessionkey(key, sk, sklen) 300 unsigned char * key; 324 key[2 * i] = hout[i]; 332 key[2 * i + 1] = hout[i]; 337 return key;
|
/openwrt/package/utils/px5g-standalone/src/polarssl/ |
H A D | sha1.h | 104 * \param key HMAC secret key 105 * \param keylen length of the HMAC key 107 void sha1_hmac_starts( sha1_context *ctx, unsigned char *key, int keylen ); 127 * \brief Output = HMAC-SHA-1( hmac key, input buffer ) 129 * \param key HMAC secret key 130 * \param keylen length of the HMAC key 135 void sha1_hmac( unsigned char *key, int keylen,
|
/openwrt/package/utils/px5g/ |
H A D | px5g.c | 2 * px5g - Embedded x509 key and certificate generator based on PolarSSL 75 static void write_key(pk_context *key, const char *path, bool pem) argument 80 if (pk_write_key_pem(key, (void *) buf, sizeof(buf)) == 0) 83 len = pk_write_key_der(key, (void *) buf, sizeof(buf)); 91 static void gen_key(pk_context *key, int ksize, int exp, bool pem) argument 93 pk_init(key); 94 pk_init_ctx(key, pk_info_from_type(POLARSSL_PK_RSA)); 95 fprintf(stderr, "Generating RSA private key, %i bit long modulus\n", ksize); 96 if (rsa_gen_key(pk_rsa(*key), _urandom, NULL, ksize, exp)) { 97 fprintf(stderr, "error: key generatio 104 pk_context key; local 135 pk_context key; local [all...] |
/openwrt/scripts/config/lxdialog/ |
H A D | menubox.c | 189 int key = 0, button = 0, scroll = 0, choice = 0; local 282 while (key != KEY_ESC) { 283 key = wgetch(menu); 285 if (key < 256 && isalpha(key)) 286 key = tolower(key); 288 if (strchr("ynmh", key)) 294 if (key == tolower(item_str()[j])) 301 if (key [all...] |
H A D | yesno.c | 44 int i, x, y, key = 0, button = 0; local 78 while (key != KEY_ESC) { 79 key = wgetch(dialog); 80 switch (key) { 93 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); 103 key = on_key_esc(dialog); 113 return key; /* ESC pressed */
|
H A D | checklist.c | 121 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; local 208 while (key != KEY_ESC) { 209 key = wgetch(dialog); 213 if (toupper(key) == toupper(item_str()[0])) 217 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || 218 key == '+' || key == '-') { 219 if (key == KEY_UP || key [all...] |
H A D | inputbox.c | 48 int input_x = 0, key = 0, button = -1; local 119 while (key != KEY_ESC) { 120 key = wgetch(dialog); 123 switch (key) { 197 if (key < 0x100 && isprint(key)) { 203 instr[pos] = key; 205 instr[len] = key; 233 switch (key) { 287 key [all...] |
H A D | textbox.c | 60 int i, x, y, cur_x, cur_y, key = 0; local 142 key = wgetch(dialog); 143 switch (key) { 219 if (key == '0') 251 if (key == keys[i]) { 273 return key;
|
/openwrt/package/base-files/files/bin/ |
H A D | config_generate | 198 local key="$1" 202 json_select "$key" 207 set network.@switch[-1].name='$key' 220 local key="$1" 221 local cfg="rssid_$key" 225 json_select "$key" 233 set system.$cfg.dev='$key' 240 local key="$1" 241 local cfg="led_$key" 244 json_select "$key" [all...] |
/openwrt/package/network/services/hostapd/files/ |
H A D | wpa_supplicant.sh | 4 local key="$key" 13 config_get key "$vif" key 41 config_get key "$vif" key 42 key="${key:-1}" 43 case "$key" in 48 config_get ckey "$vif" "key [all...] |
/openwrt/tools/firmware-utils/src/ |
H A D | sha1.h | 43 * Output HMAC-SHA-1(key,buf) 45 void sha1_hmac( uchar *key, uint keylen, uchar *buf, uint buflen,
|
H A D | mkporayfw.c | 75 /* XOR key length */ 99 uint32_t key; member in struct:board_info 120 static uint8_t key[][KEY_LEN] = { variable 148 .key = KEY_A5_V11, 153 .key = KEY_HAME, 158 .key = KEY_HAME, 163 .key = KEY_PORAY_2, 168 .key = KEY_PORAY_3, 173 .key = KEY_PORAY_4, 178 .key [all...] |
H A D | buffalo-lib.h | 81 unsigned char *key; member in struct:enc_param 106 int bcrypt_init(struct bcrypt_ctx *ctx, void *key, int keylen, 111 int bcrypt_buf(unsigned char seed, unsigned char *key, unsigned char *src,
|
H A D | buffalo-lib.c | 87 int bcrypt_init(struct bcrypt_ctx *ctx, void *key, int keylen, argument 91 unsigned char *p = key; 154 int bcrypt_buf(unsigned char seed, unsigned char *key, unsigned char *src, argument 162 /* setup decryption key */ 163 keylen = strlen((char *) key); 165 memcpy(&bckey[1], key, keylen); 287 err = bcrypt_buf(ep->seed, ep->key, p, p, len, ep->longstate); 300 err = bcrypt_buf(s, ep->key, p, p, len, ep->longstate); 310 err = bcrypt_buf(s, ep->key, data, data, ep->datalen, ep->longstate); 387 err = bcrypt_buf(ep->version[0], ep->key, [all...] |
/openwrt/package/kernel/lantiq/ltq-deu/src/ |
H A D | ifxmips_tcrypt.h | 21 const char *key; member in struct:cipher_speed_template 43 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
|
H A D | ifxmips_md5_hmac.c | 82 u8 key[MAX_HASH_KEYLEN]; member in struct:md5_hmac_ctx 126 /*! \fn int md5_hmac_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) 128 * \brief sets md5 hmac key 130 * \param key input key 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 145 hash->KIDX |= 0x80000000; // reset all 16 words of the key to '0' 146 memcpy(&mctx->key, key, keyle 161 md5_hmac_setkey_hw(const u8 *key, unsigned int keylen) argument [all...] |
H A D | ifxmips_sha1_hmac.c | 85 u8 key[SHA1_HMAC_MAX_KEYLEN]; member in struct:sha1_hmac_ctx 117 /*! \fn int sha1_hmac_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) 119 * \brief sets sha1 hmac key 121 * \param key input key 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 130 printk("Key length exceeds maximum key length\n"); 137 memcpy(&sctx->key, key, keyle 152 sha1_hmac_setkey_hw(const u8 *key, unsigned int keylen) argument [all...] |
H A D | ifxmips_des.c | 119 /*! \fn int des_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) 121 * \brief sets DES key 123 * \param key input key 124 * \param keylen key length 126 int des_setkey(struct crypto_tfm *tfm, const u8 *key, argument 136 memcpy ((u8 *) (dctx->expkey), key, keylen); 159 u32 *key = dctx->expkey; local 170 des->K1HR = DEU_ENDIAN_SWAP(*((u32 *) key + 0)); 171 des->K1LR = DEU_ENDIAN_SWAP(*((u32 *) key 398 des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument [all...] |
/openwrt/package/kernel/hostap-driver/files/lib/wifi/ |
H A D | hostap.sh | 176 config_get key "$vif" "key${idx}" 177 iwconfig "$ifname" enc "[$idx]" "${key:-off}" 179 config_get key "$vif" key 180 key="${key:-1}" 181 case "$key" in 182 [1234]) iwconfig "$ifname" enc "[$key]";; 183 *) iwconfig "$ifname" enc "$key";; [all...] |
/openwrt/package/base-files/files/lib/functions/ |
H A D | system.sh | 14 local key="$2" 24 mac_dirty=$(strings "$part" | sed -n 's/^'"$key"'=//p')
|
H A D | uci-defaults.sh | 242 local key="$2" 249 true|false) [ "$val" != "true" ]; json_add_boolean "$key" $? ;; 250 [0-9]) json_add_int "$key" "$val" ;; 251 *) json_add_string "$key" "$val" ;; 261 local key="$3" 279 true|false) [ "$val" != "true" ]; json_add_boolean "$key" $? ;; 280 [0-9]) json_add_int "$key" "$val" ;; 281 *) json_add_string "$key" "$val" ;;
|
/openwrt/package/network/services/dropbear/files/ |
H A D | dropbear.init | 90 key=dropbear/dropbear_${keytype}_host_key 91 [ -f /tmp/$key -o -s /etc/$key ] || { 95 /usr/bin/dropbearkey -t $keytype -f /tmp/$key 2>&- >&- && exec /etc/rc.common "$initscript" start
|
/openwrt/package/base-files/files/sbin/ |
H A D | wifi | 60 local key="$1" 63 echo -n "$key" | grep -qE "[^a-fA-F0-9]" && hex=0 64 [ "${#key}" -eq 10 -a $hex -eq 1 ] || \ 65 [ "${#key}" -eq 26 -a $hex -eq 1 ] || { 66 [ "${key:0:2}" = "s:" ] && key="${key#s:}" 67 key="$(echo -n "$key" | hexdump -ve '1/1 "%02x" ""')" 69 echo "$key" [all...] |