typeset -A IPSW_URLS
IPSW_URLS=(
  '5.0'   'http://appldnld.apple.com/iPhone4/041-8358.20111012.FFc34/iPhone3,1_5.0_9A334_Restore.ipsw'
  '5.0.1' 'http://appldnld.apple.com/iPhone4/041-3309.20111109.64rtg/iPhone3,1_5.0.1_9A405_Restore.ipsw'
  '5.1'   'http://appldnld.apple.com/iOS5/041-1537.20120307.EJrm4/iPhone3,1_5.1_9B176_Restore.ipsw'
  '5.1.1' 'http://appldnld.apple.com/iOS5.1.1/041-6051.2012.0525.Cvby7/iPhone3,1_5.1.1_9B208_Restore.ipsw'
  '6.0'   'http://appldnld.apple.com/iOS6/Restore/041-7175.20120919.wvv7Y/iPhone3,1_6.0_10A403_Restore.ipsw'
  '6.0.1' 'http://appldnld.apple.com/iOS6/041-7950.20121101.Lmr45/iPhone3,1_6.0.1_10A523_Restore.ipsw'
  '6.1'   'http://appldnld.apple.com/iOS6.1/091-0682.20130128.mefc4/iPhone3,1_6.1_10B144_Restore.ipsw'
  '6.1.2' 'http://appldnld.apple.com/iOS6.1/091-0722.20130215.BzrgV/iPhone3,1_6.1.2_10B146_Restore.ipsw'
  '6.1.3' 'http://appldnld.apple.com/iOS6.1/091-2610.20130319.Bedr4/iPhone3,1_6.1.3_10B329_Restore.ipsw'
)

typeset -A IPSW_SHA1
IPSW_SHA1=(
  '5.0'   'aacd559fee6652685c89de74b89a62de27ce938f'
  '5.0.1' 'a123b049c7a03cc952c6328de998d4f74d49c18b'
  '5.1'   '1454b106551053804f3ac39fff4c17454cb6ae90'
  '5.1.1' '1209f57051f675d0328c08a894b073589f9eeb20'
  '6.0'   '4553077c61fd9c487c906ee419d2159f807a00fb'
  '6.0.1' '3d123107c71588fef6f03bd1fc8ca42bda400621'
  '6.1'   '2dcaae314ae8e0a353ad43010159cf15f7f6bd4e'
  '6.1.2' 'b62c043338898893c210bb81e608b4b099de7c5f'
  '6.1.3' 'f8c53328656f2708e1d2bcb793f12ae46dd4eb23'
)

typeset -A IPSW_ROOT
IPSW_ROOT=(
  '5.0'   '018-7879-364.dmg'
  '5.0.1' '038-3700-001.dmg'
  '5.1'   '038-1768-165.dmg'
  '5.1.1' '038-5508-003.dmg'
  '6.0'   '038-6494-001.dmg'
  '6.0.1' '038-7954-010.dmg'
  '6.1'   '048-0820-001.dmg'
  '6.1.2' '048-0903-002.dmg'
  '6.1.3' '048-2748-005.dmg'
)

typeset -A IPSW_KEYS
IPSW_KEYS=(
  '5.0'   '5e5c52fd7e439936d89659b5aa4f79206cd64f09c9961e9d4712a0131075966e2271b354'
  '5.0.1' 'a8c7fe8c4698684db2b315cdf9b0c569e6769ed721b83799bad4dadfaf6186c6fd6e0fb1'
  '5.1'   'b51d75f7ba8c51397ccd5dbcf8929b14419bfc5e4b21b0370f73d2c9f9e1067b03336989'
  '5.1.1' 'd5811298fa4bb88e0bb15c7d16abe69ee74666bd263db16b59eb64b98872de0f9438a56b'
  '6.0'   'ca9ed452f256fa47ccdb387fdc0daa53d19428b2569fb089af58df576f6e54a4fb6de0ae'
  '6.0.1' '43fd5c7357cfc1bfa0c16ab72343bcb9e8974922b3c00af7a27cf522d2dca3ec471a6f83'
  '6.1'   '751775f5f345c9632fcc52876c63cffffd5b05b28b402986e3e0898c2fb8c58051bfd575'
  '6.1.2' '01c1fb58265e6a22ebe784edf55cc549d4f7f73d5a5769eb7365d1145b3f9e0798b8851a'
  '6.1.3' 'c676166434b79cbde341e094000dfc47b3161034371b25a9054880a757d73aead553a317'
)


