• Home
  • Raw
  • Download

Lines Matching refs:keyblob

357 	unsigned char *keyblob;  member
371 ret->keyblob = NULL; in load_openssh_key()
449 ret->keyblob = (unsigned char*)m_realloc(ret->keyblob, in load_openssh_key()
454 ret->keyblob + ret->keyblob_len, &outlen) != CRYPT_OK){ in load_openssh_key()
462 if (ret->keyblob_len == 0 || !ret->keyblob) { in load_openssh_key()
478 if (ret->keyblob) { in load_openssh_key()
479 memset(ret->keyblob, 0, ret->keyblob_size); in load_openssh_key()
480 m_free(ret->keyblob); in load_openssh_key()
502 memset(key->keyblob, 0, key->keyblob_size); in openssh_encrypted()
503 m_free(key->keyblob); in openssh_encrypted()
560 key->keyblob, key->keyblob_len); in openssh_read()
585 p = key->keyblob; in openssh_read()
613 ret = ber_read_id_len(p, key->keyblob+key->keyblob_len-p, in openssh_read()
617 key->keyblob+key->keyblob_len-p < len) { in openssh_read()
683 m_burn(key->keyblob, key->keyblob_size); in openssh_read()
684 m_free(key->keyblob); in openssh_read()
696 buffer * keyblob = NULL; in openssh_write() local
727 keyblob = buf_new(3000); in openssh_write()
728 buf_put_priv_key(keyblob, key, keytype); in openssh_write()
730 buf_setpos(keyblob, 0); in openssh_write()
732 buf_incrpos(keyblob, buf_getint(keyblob)); in openssh_write()
749 numbers[2].bytes = buf_getint(keyblob); in openssh_write()
750 numbers[2].start = buf_getptr(keyblob, numbers[2].bytes); in openssh_write()
751 buf_incrpos(keyblob, numbers[2].bytes); in openssh_write()
754 numbers[1].bytes = buf_getint(keyblob); in openssh_write()
755 numbers[1].start = buf_getptr(keyblob, numbers[1].bytes); in openssh_write()
756 buf_incrpos(keyblob, numbers[1].bytes); in openssh_write()
759 numbers[3].bytes = buf_getint(keyblob); in openssh_write()
760 numbers[3].start = buf_getptr(keyblob, numbers[3].bytes); in openssh_write()
761 buf_incrpos(keyblob, numbers[3].bytes); in openssh_write()
764 numbers[4].bytes = buf_getint(keyblob); in openssh_write()
765 numbers[4].start = buf_getptr(keyblob, numbers[4].bytes); in openssh_write()
766 buf_incrpos(keyblob, numbers[4].bytes); in openssh_write()
769 numbers[5].bytes = buf_getint(keyblob); in openssh_write()
770 numbers[5].start = buf_getptr(keyblob, numbers[5].bytes); in openssh_write()
771 buf_incrpos(keyblob, numbers[5].bytes); in openssh_write()
840 numbers[1].bytes = buf_getint(keyblob); in openssh_write()
841 numbers[1].start = buf_getptr(keyblob, numbers[1].bytes); in openssh_write()
842 buf_incrpos(keyblob, numbers[1].bytes); in openssh_write()
845 numbers[2].bytes = buf_getint(keyblob); in openssh_write()
846 numbers[2].start = buf_getptr(keyblob, numbers[2].bytes); in openssh_write()
847 buf_incrpos(keyblob, numbers[2].bytes); in openssh_write()
850 numbers[3].bytes = buf_getint(keyblob); in openssh_write()
851 numbers[3].start = buf_getptr(keyblob, numbers[3].bytes); in openssh_write()
852 buf_incrpos(keyblob, numbers[3].bytes); in openssh_write()
855 numbers[4].bytes = buf_getint(keyblob); in openssh_write()
856 numbers[4].start = buf_getptr(keyblob, numbers[4].bytes); in openssh_write()
857 buf_incrpos(keyblob, numbers[4].bytes); in openssh_write()
860 numbers[5].bytes = buf_getint(keyblob); in openssh_write()
861 numbers[5].start = buf_getptr(keyblob, numbers[5].bytes); in openssh_write()
862 buf_incrpos(keyblob, numbers[5].bytes); in openssh_write()
958 if (keyblob) { in openssh_write()
959 buf_burn(keyblob); in openssh_write()
960 buf_free(keyblob); in openssh_write()
1050 unsigned char *keyblob;
1067 ret->keyblob = NULL;
1141 ret->keyblob = sresize(ret->keyblob, ret->keyblob_size,
1145 memcpy(ret->keyblob + ret->keyblob_len, out, len);
1154 if (ret->keyblob_len == 0 || !ret->keyblob) {
1163 if (ret->keyblob) {
1164 memset(ret->keyblob, 0, ret->keyblob_size);
1165 m_free(ret->keyblob);
1185 if (GET_32BIT(key->keyblob) != 0x3f6ff9eb)
1195 pos += 4 + GET_32BIT(key->keyblob + pos); /* skip key type */
1198 len = GET_32BIT(key->keyblob + pos); /* find cipher-type length */
1201 if (len != 4 || 0 != memcmp(key->keyblob + pos + 4, "none", 4))
1206 memset(key->keyblob, 0, key->keyblob_size);
1207 m_free(key->keyblob);
1277 if (GET_32BIT(key->keyblob) != SSHCOM_MAGIC_NUMBER) {
1287 (len = GET_32BIT(key->keyblob + pos)) > key->keyblob_len - pos - 4) {
1292 !memcmp(key->keyblob+pos+4, prefix_rsa, sizeof(prefix_rsa) - 1)) {
1295 !memcmp(key->keyblob+pos+4, prefix_dsa, sizeof(prefix_dsa) - 1)) {
1307 (len = GET_32BIT(key->keyblob + pos)) > key->keyblob_len - pos - 4) {
1311 if (len == 4 && !memcmp(key->keyblob+pos+4, "none", 4))
1313 else if (len == 8 && !memcmp(key->keyblob+pos+4, "3des-cbc", 8))
1325 (len = GET_32BIT(key->keyblob + pos)) > key->keyblob_len - pos - 4) {
1329 ciphertext = (char *)key->keyblob + pos + 4;
1479 memset(key->keyblob, 0, key->keyblob_size);
1480 m_free(key->keyblob);