using System;
using System.Collections;
using System.IO;

using NUnit.Framework;

using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Security;
using Org.BouncyCastle.Utilities.Encoders;
using Org.BouncyCastle.Utilities.Test;

namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
{
	[TestFixture]
	public class PgpKeyRingTest
		: SimpleTest
	{
		private static readonly byte[] pub1 = Base64.Decode(
			"mQGiBEA83v0RBADzKVLVCnpWQxX0LCsevw/3OLs0H7MOcLBQ4wMO9sYmzGYn"
			+ "xpVj+4e4PiCP7QBayWyy4lugL6Lnw7tESvq3A4v3fefcxaCTkJrryiKn4+Cg"
			+ "y5rIBbrSKNtCEhVi7xjtdnDjP5kFKgHYjVOeIKn4Cz/yzPG3qz75kDknldLf"
			+ "yHxp2wCgwW1vAE5EnZU4/UmY7l8kTNkMltMEAJP4/uY4zcRwLI9Q2raPqAOJ"
			+ "TYLd7h+3k/BxI0gIw96niQ3KmUZDlobbWBI+VHM6H99vcttKU3BgevNf8M9G"
			+ "x/AbtW3SS4De64wNSU3189XDG8vXf0vuyW/K6Pcrb8exJWY0E1zZQ1WXT0gZ"
			+ "W0kH3g5ro//Tusuil9q2lVLF2ovJA/0W+57bPzi318dWeNs0tTq6Njbc/GTG"
			+ "FUAVJ8Ss5v2u6h7gyJ1DB334ExF/UdqZGldp0ugkEXaSwBa2R7d3HBgaYcoP"
			+ "Ck1TrovZzEY8gm7JNVy7GW6mdOZuDOHTxyADEEP2JPxh6eRcZbzhGuJuYIif"
			+ "IIeLOTI5Dc4XKeV32a+bWrQidGVzdCAoVGVzdCBrZXkpIDx0ZXN0QHViaWNh"
			+ "bGwuY29tPohkBBMRAgAkBQJAPN79AhsDBQkB4TOABgsJCAcDAgMVAgMDFgIB"
			+ "Ah4BAheAAAoJEJh8Njfhe8KmGDcAoJWr8xgPr75y/Cp1kKn12oCCOb8zAJ4p"
			+ "xSvk4K6tB2jYbdeSrmoWBZLdMLACAAC5AQ0EQDzfARAEAJeUAPvUzJJbKcc5"
			+ "5Iyb13+Gfb8xBWE3HinQzhGr1v6A1aIZbRj47UPAD/tQxwz8VAwJySx82ggN"
			+ "LxCk4jW9YtTL3uZqfczsJngV25GoIN10f4/j2BVqZAaX3q79a3eMiql1T0oE"
			+ "AGmD7tO1LkTvWfm3VvA0+t8/6ZeRLEiIqAOHAAQNBACD0mVMlAUgd7REYy/1"
			+ "mL99Zlu9XU0uKyUex99sJNrcx1aj8rIiZtWaHz6CN1XptdwpDeSYEOFZ0PSu"
			+ "qH9ByM3OfjU/ya0//xdvhwYXupn6P1Kep85efMBA9jUv/DeBOzRWMFG6sC6y"
			+ "k8NGG7Swea7EHKeQI40G3jgO/+xANtMyTIhPBBgRAgAPBQJAPN8BAhsMBQkB"
			+ "4TOAAAoJEJh8Njfhe8KmG7kAn00mTPGJCWqmskmzgdzeky5fWd7rAKCNCp3u"
			+ "ZJhfg0htdgAfIy8ppm05vLACAAA=");

		private static readonly byte[] sec1 = Base64.Decode(
			"lQHhBEA83v0RBADzKVLVCnpWQxX0LCsevw/3OLs0H7MOcLBQ4wMO9sYmzGYn"
			+ "xpVj+4e4PiCP7QBayWyy4lugL6Lnw7tESvq3A4v3fefcxaCTkJrryiKn4+Cg"
			+ "y5rIBbrSKNtCEhVi7xjtdnDjP5kFKgHYjVOeIKn4Cz/yzPG3qz75kDknldLf"
			+ "yHxp2wCgwW1vAE5EnZU4/UmY7l8kTNkMltMEAJP4/uY4zcRwLI9Q2raPqAOJ"
			+ "TYLd7h+3k/BxI0gIw96niQ3KmUZDlobbWBI+VHM6H99vcttKU3BgevNf8M9G"
			+ "x/AbtW3SS4De64wNSU3189XDG8vXf0vuyW/K6Pcrb8exJWY0E1zZQ1WXT0gZ"
			+ "W0kH3g5ro//Tusuil9q2lVLF2ovJA/0W+57bPzi318dWeNs0tTq6Njbc/GTG"
			+ "FUAVJ8Ss5v2u6h7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8zUC7ACAAA=");

//		private static readonly char[] pass1 = "qwertzuiop".ToCharArray();

		private static readonly byte[] pub2 = Base64.Decode(
			"mQGiBEBtfW8RBADfWjTxFedIbGBNVgh064D/OCf6ul7x4PGsCl+BkAyheYkr"
			+ "mVUsChmBKoeXaY+Fb85wwusXzyM/6JFK58Rg+vEb3Z19pue8Ixxq7cRtCtOA"
			+ "tOP1eKXLNtTRWJutvLkQmeOa19UZ6ziIq23aWuWKSq+KKMWek2GUnGycnx5M"
			+ "W0pn1QCg/39r9RKhY9cdKYqRcqsr9b2B/AsD/Ru24Q15Jmrsl9zZ6EC47J49"
			+ "iNW5sLQx1qf/mgfVWQTmU2j6gq4ND1OuK7+0OP/1yMOUpkjjcqxFgTnDAAoM"
			+ "hHDTzCv/aZzIzmMvgLsYU3aIMfbz+ojpuASMCMh+te01cEMjiPWwDtdWWOdS"
			+ "OSyX9ylzhO3PiNDks8R83onsacYpA/9WhTcg4bvkjaj66I7wGZkm3BmTxNSb"
			+ "pE4b5HZDh31rRYhY9tmrryCfFnU4BS2Enjj5KQe9zFv7pUBCBW2oFo8i8Osn"
			+ "O6fa1wVN4fBHC6wqWmmpnkFerNPkiC9V75KUFIfeWHmT3r2DVSO3dfdHDERA"
			+ "jFIAioMLjhaX6DnODF5KQrABh7QmU2FpIFB1bGxhYmhvdGxhIDxwc2FpQG15"
			+ "amF2YXdvcmxkLmNvbT6wAwP//4kAVwQQEQIAFwUCQG19bwcLCQgHAwIKAhkB"
			+ "BRsDAAAAAAoJEKXQf/RT99uYmfAAoMKxV5g2owIfmy2w7vSLvOQUpvvOAJ4n"
			+ "jB6xJot523rPAQW9itPoGGekirABZ7kCDQRAbX1vEAgA9kJXtwh/CBdyorrW"
			+ "qULzBej5UxE5T7bxbrlLOCDaAadWoxTpj0BV89AHxstDqZSt90xkhkn4DIO9"
			+ "ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeSWc39uK50T8X8dryDxUcwYc58yWb/"
			+ "Ffm7/ZFexwGq01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rlYF/4t3tjXYIf5xUj/"
			+ "c9NdjreKYgHfMtrbVM08LlxUVQlkjuF3DIk5bVH9Blq8aXmyiwiM5GrCry+z"
			+ "WiqkpZze1G577C38mMJbHDwbqNCLALMzo+W2q04Avl5sniNnDNGbGz9EjhRg"
			+ "o7oS16KkkD6Ls4RnHTEZ0vyZOXodDHu+sk/2kzj8K07kKaM8rvR7aDKiI7HH"
			+ "1GxJz70fn1gkKuV2iAIIiU25bty+S3wr+5h030YBsUZF1qeKCdGOmpK7e9Of"
			+ "yv9U7rf6Z5l8q+akjqLZvej9RnxeH2Um7W+tGg2me482J+z6WOawAWc=");

		private static readonly byte[] sec2 = Base64.Decode(
			"lQHpBEBtfW8RBADfWjTxFedIbGBNVgh064D/OCf6ul7x4PGsCl+BkAyheYkr"
			+ "mVUsChmBKoeXaY+Fb85wwusXzyM/6JFK58Rg+vEb3Z19pue8Ixxq7cRtCtOA"
			+ "tOP1eKXLNtTRWJutvLkQmeOa19UZ6ziIq23aWuWKSq+KKMWek2GUnGycnx5M"
			+ "W0pn1QCg/39r9RKhY9cdKYqRcqsr9b2B/AsD/Ru24Q15Jmrsl9zZ6EC47J49"
			+ "iNW5sLQx1qf/mgfVWQTmU2j6gq4ND1OuK7+0OP/1yMOUpkjjcqxFgTnDAAoM"
			+ "hHDTzCv/aZzIzmMvgLsYU3aIMfbz+ojpuASMCMh+te01cEMjiPWwDtdWWOdS"
			+ "OSyX9ylzhO3PiNDks8R83onsacYpA/9WhTcg4bvkjaj66I7wGZkm3BmTxNSb"
			+ "pE4b5HZDh31rRYhY9tmrryCfFnU4BS2Enjj5KQe9zFv7pUBCBW2oFo8i8Osn"
			+ "O6fa1wVN4fBHC6wqWmmpnkFerNPkiC9V75KUFIfeWHmT3r2DVSO3dfdHDERA"
			+ "jFIAioMLjhaX6DnODF5KQv4JAwIJH6A/rzqmMGAG4e+b8Whdvp8jaTGVT4CG"
			+ "M1b65rbiDyAuf5KTFymQBOIi9towgFzG9NXAZC07nEYS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cHyvAo"
			+ "WG2cnF/pNSQX11RlyyAOlw9TOEiDJ4aLbFdkUt+qZdRKeC8mEC2xsQ87HqFR"
			+ "pWKWABWaoUO0nxBEmvNOy97PkIeGVFNHDLlIeL++Ry03+JvuNNg4qAnwacbJ"
			+ "TwQzWP4vJqre7Gl/9D0tVlD4Yy6Xz3qyosxdoFpeMSKHhgKVt1bk0SQP7eXA"
			+ "C1c+eDc4gN/ZWpl+QLqdk2T9vr4wRAaK5LABh4kBIgQYAQIADAUCQG19pAUb"
			+ "DAAAAAAKCRDHzsMv2A6+h5C6B/0QWPJb1L9a/CHU7Of3zfHvzJxnk4S5fia5"
			+ "WBf+Ld7Y12CH+cVI/3PTXY63imIB3zLa21TNPC5cVFUJZI7hdwyJOW1R/QZa"
			+ "vGl5sosIjORqwq8vs1oqpKWc3tRue+wt/JjCWxw8G6jQiwCzM6PltqtOAL5e"
			+ "bJ4jZwzRmxs/RI4UYKO6EteipJA+i7OEZx0xGdL8mTl6HQx7vrJP9pM4/CtO"
			+ "5CmjPK70e2gyoiOxx9RsSc+9H59YJCrldogCCIlNuW7cvkt8K/uYdN9GAbFG"
			+ "RdanignRjpqSu3vTn8r/VO63+meZfKvmpI6i2b3o/UZ8Xh9lJu1vrRoNpnuP"
			+ "Nifs+ljmsAFn");

		private static readonly char[] sec2pass1 = "sandhya".ToCharArray();
		private static readonly char[] sec2pass2 = "psai".ToCharArray();

		private static readonly byte[] pub3 = Base64.Decode(
			"mQGiBEB9BH0RBACtYQtE7tna6hgGyGLpq+ds3r2cLC0ISn5dNw7tm9vwiNVF"
			+ "JA2N37RRrifw4PvgelRSvLaX3M3ZBqC9s1Metg3v4FSlIRtSLWCNpHSvNw7i"
			+ "X8C2Xy9Hdlbh6Y/50o+iscojLRE14upfR1bIkcCZQGSyvGV52V2wBImUUZjV"
			+ "s2ZngwCg7mu852vK7+euz4WaL7ERVYtq9CMEAJ5swrljerDpz/RQ4Lhp6KER"
			+ "KyuI0PUttO57xINGshEINgYlZ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gAMAwEAAhEDEQA/APMuotJlJVxstqaP"
			+ "o22NlAUp+YsNO0qSUtBcMu6n6EtOHcfPAHHFI16++oajQtTA3DapK02HFR8U"
			+ "pE9pTbQWtKm2WG2rlxVyQTcfGbn7Qm0OIjL77Wrs2NNm9lzTmmSxQ0PX4opS"
			+ "prk5tmESF6syggzGwOLG6gXgHFbZhBixk8XlIDcOQLRKt+rX+3qC5ZLTQblp"
			+ "Qlvwvxn9CMpZturVGkJHapQJphRH8hCLXbzrqpYsCx1zC5rtpJNuYQhASc0U"
			+ "AQv/2YhcBBMRAgAcBQJAfQV+AhsDBAsHAwIDFQIDAxYCAQIeAQIXgAAKCRCp"
			+ "zFfL42UDqfa2AJ9hjtEeDTbTEAuuSbzhYFxN/qc0FACgsmzysdbBpuN65yK0"
			+ "1tbEaeIMtqCwAgADuM0EQH0EfhADAKpG5Y6vGbm//xZYG08RRmdi67dZjF59"
			+ "Eqfo43mRrliangB8qkqoqqf3za2OUbXcZUQ/ajDXUvjJAoY2b5XJURqmbtKk"
			+ "wPRIeD2+wnKABat8wmcFhZKATX1bqjdyRRGxawADBgMAoMJKJLELdnn885oJ"
			+ "6HDmIez++ZWTlafzfUtJkQTCRKiE0NsgSvKJr/20VdK3XUA/iy0m1nQwfzv/"
			+ "okFuIhEPgldzH7N/NyEvtN5zOv/TpAymFKewAQ26luEu6l+lH4FsiEYEGBEC"
			+ "AAYFAkB9BH4ACgkQqcxXy+NlA6mtMgCgtQMFBaKymktM+DQmCgy2qjW7WY0A"
			+ "n3FaE6UZE9GMDmCIAjhI+0X9aH6CsAIAAw==");

		private static readonly byte[] sec3 = Base64.Decode(
			"lQHhBEB9BH0RBACtYQtE7tna6hgGyGLpq+ds3r2cLC0ISn5dNw7tm9vwiNVF"
			+ "JA2N37RRrifw4PvgelRSvLaX3M3ZBqC9s1Metg3v4FSlIRtSLWCNpHSvNw7i"
			+ "X8C2Xy9Hdlbh6Y/50o+iscojLRE14upfR1bIkcCZQGSyvGV52V2wBIm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kQqcxXy+NlA6mtMgCgvccZA/Sg7BXVpxli47SYhxSHoM4A"
			+ "oNCOMplSnYTuh5ikKeBWtz36gC1psAIAAA==");

		private static readonly char[] sec3pass1 = "123456".ToCharArray();

		//
		// GPG comment packets.
		//
		private static readonly byte[] sec4 = Base64.Decode(
			"lQG7BD0PbK8RBAC0cW4Y2MZXmAmqYp5Txyw0kSQsFvwZKHNMFRv996IsN57URVF5"
			+ "BGMVPRBi9dNucWbjiSYpiYN13wE9IuLZsvVaQojV4XWGRDc+Rxz9ElsXnsYQ3mZU"
			+ "7H1bNQEofstChk4z+dlvPBN4GFahrIzn/CeVUn6Ut7dVdYbiTqviANqNXwCglfVA"
			+ "2OEePvqFnGxs1jhJyPSOnTED/RwRvsLH/k43mk6UEvOyN1RIpBXN+Ieqs7h1gFrQ"
			+ "kB+WMgeP5ZUsotTffVDSUS9UMxRQggVUW1Xml0geGwQsNfkr/ztWMs/T4xp1v5j+"
			+ "QyJx6OqNlkGdqOsoqkzJx0SQ1zBxdinFyyC4H95SDAb/RQOu5LQmxFG7quexztMs"
			+ "infEA/9cVc9+qCo92yRAaXRqKNVVQIQuPxeUsGMyVeJQvJBD4An8KTMCdjpF10Cp"
			+ "qA3t+n1S0zKr5WRUtvS6y60MOONO+EJWVWBNkx8HJDaIMNkfoqQoz3Krn7w6FE/v"
			+ "/5uwMd6jY3N3yJZn5nDZT9Yzv9Nx3j+BrY+henRlSU0c6xDc9QAAnjJYg0Z83VJG"
			+ "6HrBcgc4+4K6lHulCqH9JiM6RFNBX2ZhY3RvcjoAAK9hV206agp99GI6x5qE9+pU"
			+ "vs6O+Ich/SYjOkRTQV9mYWN0b3I6AACvYAfGn2FGrpBYbjnpTuFOHJMS/T5xg/0m"
			+ "IzpEU0FfZmFjdG9yOgAAr0dAQz6XxMwxWIn8xIZR/v2iN2L9C6O0EkZvbyBCYXIg"
			+ "PGJhekBxdXV4PohXBBMRAgAXBQI9D2yvBQsHCgMEAxUDAgMWAgECF4AACgkQUGLI"
			+ "YCIktfoGogCfZiXMJUKrScqozv5tMwzTTk2AaT8AniM5iRr0Du/Y08SL/NMhtF6H"
			+ "hJ89nO4EPQ9ssRADAI6Ggxj6ZBfoavuXd/ye99osW8HsNlbqhXObu5mCMNySX2wa"
			+ "HoWyRUEaUkI9eQw+MlHzIwzA32E7y2mU3OQBKdgLcBg4jxtcWVEg8ESKF9MpFXxl"
			+ "pExxWrr4DFBfCRcsTwAFEQL9G3OvwJuEZXgx2JSS41D3pG4/qiHYICVa0u3p/14i"
			+ "cq0kXajIk5ZJ6frCIAHIzuQ3n7jjzr05yR8s/qCrNbBA+nlkVNa/samk+jCzxxxa"
			+ "cR/Dbh2wkvTFuDFFETwQYLuZAADcDck4YGQAmHivVT2NNDCf/aTz0+CJWl+xRc2l"
			+ "Qw7D/SQjOkVMR19mYWN0b3I6AACbBnv9m5/bb/pjYAm2PtDp0CysQ9X9JCM6RUxH"
			+ "X2ZhY3RvcjoAAJsFyHnSmaWguTFf6lJ/j39LtUNtmf0kIzpFTEdfZmFjdG9yOgAA"
			+ "mwfwMD3LxmWtuCWBE9BptWMNH07Z/SQjOkVMR19mYWN0b3I6AACbBdhBrbSiM4UN"
			+ "y7khDW2Sk0e4v9mIRgQYEQIABgUCPQ9ssQAKCRBQYshgIiS1+jCMAJ9txwHnb1Kl"
			+ "6i/fSoDs8SkdM7w48wCdFvPEV0sSxE73073YhBgPZtMWbBo=");

		//
		// PGP freeware version 7
		//
		private static readonly byte[] pub5 = Base64.Decode(
			"mQENBEBrBE4BCACjXVcNIFDQSofaIyZnALb2CRg+WY9uUqgHEEAOlPe03Cs5STM5"
			+ "HDlNmrh4TdFceJ46rxk1mQOjULES1YfHay8lCIzrD7FX4oj0r4DC14Fs1vXaSar2"
			+ "1szIpttOw3obL4A1e0p6N4jjsoG7N/pA0fEL0lSw92SoBrMbAheXRg4qNTZvdjOR"
			+ "grcuOuwgJRvPLtRXlhyLBoyhkd5mmrIDGv8QHJ/UjpeIcRXY9kn9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n3pbprojq2EynB/4/cEOtKbI5UisUd3vkTzvWOcqWUqGqi5wjjioNtIM5"
			+ "pur2nFvhQE7SZ+PbAa87HRJU/4WcWMcoLkHD48JrQwHCHOLHSV5muYowb78X4Yh9"
			+ "epYtSJ0uUahcn4Gp48p4BkhgsPYXkxEImSYzAOWStv21/7WEMqItMYl89BV6Upm8"
			+ "HyTJx5MPTDbMR7X51hRg3OeQs6po3WTCWRzFIMyGm1rd/VK1L5ZDFPqO3S6YUJ0z"
			+ "cxecYruvfK0Wp7q834wE8Zkl/PQ3NhfEPL1ZiLr/L00Ty+77/FZqt8SHRCICzOfP"
			+ "OawcVGI+xHVXW6lijMpB5VaVIH8i2KdBMHXHtduIkPr9");

		private static readonly byte[] sec5 = Base64.Decode(
			"lQOgBEBrBE4BCACjXVcNIFDQSofaIyZnALb2CRg+WY9uUqgHEEAOlPe03Cs5STM5"
			+ "HDlNmrh4TdFceJ46rxk1mQOjULES1YfHay8lCIzrD7FX4oj0r4DC14Fs1vXaSar2"
			+ "1szIpttOw3obL4A1e0p6N4jjsoG7N/pA0fEL0lSw92SoBrMbAheXRg4qNTZvdjOR"
			+ "grcuOuwgJRvPLtRXlhyLBoyhkd5mmrIDGv8QHJ/UjpeIcRXY9kn9oGXnEYcRbMaU"
			+ "VwXB4pLzWqz3ZejFI3lOxRWjm760puPOnGYlzSVBxlt2LgzUgSj1Mn+lIpWmAzsa"
			+ "xEiU4xUwEomQns72yYRZ6D3euNCibcte4SeXABEBAAEB8wqP7JkKN6oMNi1xJNqU"
			+ "vvt0OV4CCnrIFiOPCjebjH/NC4T/9pJ6BYSjYdo3VEPNhPhRS9U3071Kqbdt35J5"
			+ "kmzMq1yNStC1jkxHRCNTMsb1yIEY1v+fv8/Cy+tBpvAYiJKaox8jW3ppi9vTHZjW"
			+ "tYYq0kwAVojMovz1O3wW/pEF69UPBmPYsze+AHA1UucYYqdWO8U2tsdFJET/hYpe"
			+ "o7ppHJJCdqWzeiE1vDUrih9pP3MPpzc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QA7gu"
			+ "mjxOSjKT+jEm+8jACVzymEmcXRy4D5Ztqkw/Z16pvNcu1DI5m6xHwr8AEQEAAQF7"
			+ "osMrvQieBAJFYY+x9jKPVclm+pVaMaIcHKwCTv6yUZMqbHNRTfwdCVKTdAzdlh5d"
			+ "zJNXXRu8eNwOcfnG3WrWAy59cYE389hA0pQPOh7iL2V1nITf1qdLru1HJqqLC+dy"
			+ "E5GtkNcgvQYbv7ACjQacscvnyBioYC6TATtPnHipMO0S1sXEnmUugNlW88pDln4y"
			+ "VxCtQXMBjuqMt0bURqmb+RoYhHhoCibo6sexxSnbEAPHBaW1b1Rm7l4UBSW6S5U0"
			+ "MXURE60IHfP1TBe1l/xOIxOi8qdBQCyaFW2up00EhRBy/WOO6KAYXQrRRpOs9TBq"
			+ "ic2wquwZePmErTbIttnnBcAKmpodrM/JBkn/we5fVg+FDTP8sM/Ubv0ZuM70aWmF"
			+ "v0/ZKbkCkh2YORLWl5+HR/RKShdkmmFgZZ5uzbOGxxEGKhw+Q3+QFUF7PmYOnOtv"
			+ "s9PZE3dV7ovRDoXIjfniD1+8sLUWwW5d+3NHAQnCHJrLnPx4sTHx6C0yWMcyZk6V"
			+ "fNHpLK4xDTbgoTmxJa/4l+wa0iD69h9K/Nxw/6+X/GEM5w3d/vjlK1Da6urN9myc"
			+ "GMsfiIll5DNIWdLLxCBPFmhJy653CICQLY5xkycWB7JOZUBTOEVrYr0AbBZSTkuB"
			+ "fq5p9MfH4N51M5TWnwlJnqEiGnpaK+VDeP8GniwCidTYyiocNPvghvWIzG8QGWMY"
			+ "PFncRpjFxmcY4XScYYpyRme4qyPbJhbZcgGpfeLvFKBPmNxVKJ2nXTdx6O6EbHDj"
			+ "XctWqNd1EQas7rUN728u7bk8G7m37MGqQuKCpNvOScH4TnPROBY8get0G3bC4mWz"
			+ "6emPeENnuyElfWQiHEtCZr1InjnNbb/C97O+vWu9PfsE");

		private static readonly char[] sec5pass1 = "12345678".ToCharArray();

		//
		// Werner Koch "odd keys"
		//
		private static readonly byte[] pub6 = Base64.Decode(
			"mQGiBDWiHh4RBAD+l0rg5p9rW4M3sKvmeyzhs2mDxhRKDTVVUnTwpMIR2kIA9pT4"
			+ "3No/coPajDvhZTaDM/vSz25IZDZWJ7gEu86RpoEdtr/eK8GuDcgsWvFs5+YpCDwW"
			+ "G2dx39ME7DN+SRvEE1xUm4E9G2Nnd2UNtLgg82wgi/ZK4Ih9CYDyo0a9awCgisn3"
			+ "RvZ/MREJmQq1+SjJgDx+c2sEAOEnxGYisqIKcOTdPOTTie7o7x+nem2uac7uOW68"
			+ "N+wRWxhGPIxsOdueMIa7U94Wg/Ydn4f2WngJpBvKNaHYmW8j1Q5zvZXXpIWRXSvy"
			+ "TR641BceGHNdYiR/PiDBJsGQ3ac7n7pwhV4qex3IViRDJWz5Dzr88x+Oju63KtxY"
			+ "urUIBACi7d1rUlHr4ok7iBRlWHYXU2hpUIQ8C+UOE1XXT+HB7mZLSRONQnWMyXnq"
			+ "bAAW+EUUX2xpb54CevAg4eOilt0es8GZMmU6c0wdUsnMWWqOKHBFFlDIvyI27aZ9"
			+ "quf0yvby63kFCanQKc0QnqGXQKzuXbFqBYW2UQrYgjXji8rd8bQnV2VybmVyIEtv"
			+ "Y2ggKGdudXBnIHNpZykgPGRkOWpuQGdudS5vcmc+iGUEExECAB0FAjZVoKYFCQht"
			+ "DIgDCwQDBRUDAgYBAxYCAQIXgAASCRBot6uJV1SNzQdlR1BHAAEBLj4AoId15gcy"
			+ "YpBX2YLtEQTlXPp3mtEGAJ9UxzJE/t3EHCHK2bAIOkBwIW8ItIkBXwMFEDWiHkMD"
			+ "bxG4/z6qCxADYzIFHR6I9Si9gzPQNRcFs2znrTp5pV5Mk6f1aqRgZxL3E4qUZ3xe"
			+ "PQhwAo3fSy3kCwLmFGqvzautSMHn8K5V1u+T5CSHqLFYKqj5FGtuB/xwoKDXH6UO"
			+ "P0+l5IP8H1RTjme3Fhqahec+zPG3NT57vc2Ru2t6PmuAwry2BM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DvOSFzHBd/LsjFNVrrFbDs5Xw+cLGVHOIgR5IWAfgu5d1PAZU9uQ"
			+ "VgdGnQfmZg383RSPxvR3fnZz1rHNUGmS6w7x6FVbxa1QU2t38gNacIwHATAPcBpy"
			+ "JLfXoznbpg3ADbgCGyDjBwnuPQEQkYwRakbczRrge8IaPZbt2HYPoUsduXMZyJI8"
			+ "z5tvu7pUDws51nV1EX15BcN3++aY5pUyA1ItaaDymQVmoFbQC0BNMzMO53dMnFko"
			+ "4i42kohGBBARAgAGBQI3OvmjAAoJEHUPZJXInZM+hosAnRntCkj/70shGTPxgpUF"
			+ "74zA+EbzAKCcMkyHXIz2W0Isw3gDt27Z9ggsE4hGBBARAgAGBQI3NyPFAAoJEPbu"
			+ "3yAYS8TZh2UAoJVmzw85yHJzsXQ1vpO2IAPfv59NAJ9WY0oiYqb3q1MSxBRwG0gV"
			+ "iNCJ7YkBFQMFEDdD3tNSgFdEdlNAHQEByHEH/2JMfg71GgiyGJTKxCAymdyf2j2y"
			+ "fH6wI782JK4BWV4c0E/V38q+jpIYslihV9t8s8w1XK5niMaLwlCOyBWOkDP3ech6"
			+ "+GPPtfB3cmlL2hS896PWZ1adQHgCeQpB837n56yj0aTs4L1xarbSVT22lUwMiU6P"
			+ "wYdH2Rh8nh8FvN0IZsbln2nOj73qANQzNflmseUKF1Xh4ck8yLrRd4r6amhxAVAf"
			+ "cYFRJN4zdLL3cmhgkt0ADZlzAwXnEjwdHHy7SvAJk1ecNOA9pFsOJbvnzufd1afs"
			+ "/CbG78I+0JDhg75Z2Nwq8eKjsKqiO0zz/vG5yWSndZvWkTWz3D3b1xr1Id2IRgQQ"
			+ "EQIABgUCOCpiHgAKCRDj8lhUEo8OeQ+QAKCbOTscyUnWHSrDo4fIy0MThEjhOgCe"
			+ "L4Kb7TWkd/OHQScVBO8sTUz0+2g=");

//		private static readonly byte[] pub6check = Base64.Decode("62O9");

		//
		// revoked sub key
		//
		private static readonly byte[] pub7 = Base64.Decode(
			"mQGiB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IByl6ypUM2Zafq9AKUJsCRtMI"
			+ "PWakXUGfnHy9iUsiGSa6q6Jew1XpMgs7AAICB/93zriSvSHqsi1FeEmUBo431Jkh"
			+ "VerIzb6Plb1j6FIq+s3vyvx9K+dMvjotZqylWZj4GXpH+2xLJTjWkrGSfUZVI2Nk"
			+ "nyOFxUCKLLqaqVBFAQIjULfvQfGEWiGQKk9aRLkdG+D+8Y2N9zYoBXoQ9arvvS/t"
			+ "4mlOsiuaTe+BZ4x+BXTpF4b9sKZl7V8QP/TkoJWUdydkvxciHdWp7ssqyiKOFRhG"
			+ "818knDfFQ3cn2w/RnOb+7AF9wDncXDPYLfpPv9b2qZoLrXcyvlLffGDUdWs553ut"
			+ "1F5AprMURs8BGmY9BnjggfVubHdhTUoA4gVvrdaf+D9NwZAl0xK/5Y/oPuMZiQBG"
			+ "BBgRAgAGBQJBTrCMAAoJEL4JZHBQP3Ot09gAoMmLKloVDP+WhDXnsM5VikxysZ4+"
			+ "AKCrJAUO+lYAyPYwEwgK+bKmUGeKrIkARgQoEQIABgUCQU6wpQAKCRC+CWRwUD9z"
			+ "rQK4AJ98kKFxGU6yhHPr6jYBJPWemTNOXgCfeGB3ox4PXeS4DJDuLy9yllytOjo=");

//		private static readonly byte[] pub7check = Base64.Decode("f/YQ");

		private static readonly byte[] pub8 = Base64.Decode(
			"mQGiBEEcraYRBADFYj+uFOhHz5SdECvJ3Z03P47gzmWLQ5HH8fPYC9rrv7AgqFFX"
			+ "aWlJJVMLua9e6xoCiDWJs/n4BbZ/weL/11ELg6XqUnzFhYyz0H2KFsPgQ/b9lWLY"
			+ "MtcPMFy5jE33hv/ixHgYLFqoNaAIbg0lzYEW/otQ9IhRl16fO1Q/CQZZrQCg/9M2"
			+ "V2BTmm9RYog86CXJtjawRBcD/RIqU0zulxZ2Zt4javKVxrGIwW3iBU935ebmJEIK"
			+ "Y5EVkGKBOCvsApZ+RGzpYeR2uMsTnQi8RJgiAnjaoVPCdsVJE7uQ0h8XuJ5n5m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c/h6B7"
			+ "9Uqz3fUvGoewAWA=");

		private static readonly byte[] sec8 = Base64.Decode(
			"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");

		private static readonly char[] sec8pass = "qwertyui".ToCharArray();

		private static readonly byte[] sec9 = Base64.Decode(
			"lQGqBEHCokERBAC9rh5SzC1sX1y1zoFuBB/v0SGhoKMEvLYf8Qv/j4deAMrc"
			+ "w5dxasYoD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p8Ji8VPGSqAJ9K8eFJ+V0mxR+octJr"
			+ "6neEEX/i1Q==");

		public char[] sec9pass = "foo".ToCharArray();

		// version 4 keys with expiry dates
		private static readonly byte[] pub10 = Base64.Decode(
			"mQGiBEKqia0RBACc3hkufmscRSC4UvPZqMDsHm4+d/GXIr+3iNMSSEySJu8yk+k0"
			+ "Xs11C/K+n+v1rnn2jGGknv+1lDY6w75TIcTE6o6HGKeIDxsAm8P3MhoGU1GNPamA"
			+ "eTDeNybtrN/g6C65fCY9uI11hsUboYgQZ8ND22PB0VtvdOgq9D85qNUzxwCg1BbJ"
			+ "ycAKd4VqEvQ2Zglp3dCSrFMD/Ambq1kZqYa69sp3b9BPKuAgUgUPoytOArEej3Bk"
			+ "easAgAxNhWJy4GxigES3vk50rVi7w8XBuqbD1mQCzldF0HX0/A7PxLBv6od5uqqF"
			+ "HFxIyxg/KBZLd9ZOrsSaoUWH58jZq98X/sFtJtRi5VuJagMxCIJD4mLgtMv7Unlb"
			+ "/GrsA/9DEnObA/fNTgK70T+ZmPIS5tSt+bio30Aw4YGpPCGqpnm1u73b5kqX3U3B"
			+ "P+vGDvFuqZYpqQA8byAueH0MbaDHI4CFugvShXvgysJxN7ov7/8qsZZUMfK1t2Nr"
			+ "SAsPuKRbcY4gNKXIElKeXbyaET7vX7uAEKuxEwdYGFp/lNTkHLQgdGVzdCBrZXkg"
			+ "KHRlc3QpIDx0ZXN0QHRlc3QudGVzdD6IZAQTEQIAJAUCQqqJrQIbAwUJACTqAAYL"
			+ "CQgHAwIDFQIDAxYCAQIeAQIXgAAKCRDjDROQZRqIzDzLAJ42AeCRIBBjv8r8qw9y"
			+ "laNj2GZ1sACgiWYHVXMA6B1H9I1kS3YsCd3Oq7qwAgAAuM0EQqqJrhADAKWkix8l"
			+ "pJN7MMTXob4xFF1TvGll0UD1bDGOMMbes6aeXSbT9QXee/fH3GnijLY7wB+qTPv9"
			+ "ohubrSpnv3yen3CEBW6Q2YK+NlCskma42Py8YMV2idmYjtJi1ckvHFWt5wADBQL/"
			+ "fkB5Q5xSGgspMaTZmtmX3zG7ZDeZ0avP8e8mRL8UszCTpqs6vMZrXwyQLZPbtMYv"
			+ "PQpuRGEeKj0ysimwYRA5rrLQjnRER3nyuuEUUgc4j+aeRxPf9WVsJ/a1FCHtaAP1"
			+ "iE8EGBECAA8FAkKqia4CGwwFCQAk6gAACgkQ4w0TkGUaiMzdqgCfd66H7DL7kFGd"
			+ "IoS+NIp8JO+noxAAn25si4QAF7og8+4T5YQUuhIhx/NesAIAAA==");

		private static readonly byte[] sec10 = Base64.Decode(
			"lQHhBEKqia0RBACc3hkufmscRSC4UvPZqMDsHm4+d/GXIr+3iNMSSEySJu8yk+k0"
			+ "Xs11C/K+n+v1rnn2jGGknv+1lDY6w75TIcTE6o6HGKeIDxsAm8P3MhoGU1GNPamA"
			+ "eTDeNybtrN/g6C65fCY9uI11hsUboYgQZ8ND22PB0VtvdOgq9D85qNUzxwCg1BbJ"
			+ "ycAKd4VqEvQ2Zglp3dCSrFMD/Ambq1kZqYa69sp3b9BPKuAgUgUPoytOArEej3Bk"
			+ "easAgAxNhWJy4GxigES3vk50rVi7w8XBuqbD1mQCzldF0HX0/A7PxLBv6od5uqqF"
			+ "HFxIyxg/KBZLd9ZOrsSaoUWH58jZq98X/sFtJtRi5VuJagMxCIJD4mLgtMv7Unlb"
			+ "/GrsA/9DEnObA/fNTgK70T+ZmPIS5tSt+bio30Aw4YGpPCGqpnm1u73b5kqX3U3B"
			+ "P+vGDvFuqZYpqQA8byAueH0MbaDHI4CFugvShXvgysJxN7ov7/8qsZZUMfK1t2Nr"
			+ "SAsPuKRbcY4gNKXIElKeXbyaET7vX7uAEKuxEwdYGFp/lNTkHP4DAwLssmOjVC+d"
			+ "mWB783Lpzjb9evKzsxisTdx8/jHpUSS+r//6/Guyx3aA/zUw5bbftItW57mhuNNb"
			+ "JTu7WrQgdGVzdCBrZXkgKHRlc3QpIDx0ZXN0QHRlc3QudGVzdD6IZAQTEQIAJAUC"
			+ "QqqJrQIbAwUJACTqAAYLCQgHAwIDFQIDAxYCAQIeAQIXgAAKCRDjDROQZRqIzDzL"
			+ "AJ0cYPwKeoSReY14LqJtAjnkX7URHACgsRZWfpbalrSyDnq3TtZeGPUqGX+wAgAA"
			+ "nQEUBEKqia4QAwClpIsfJaSTezDE16G+MRRdU7xpZdFA9WwxjjDG3rOmnl0m0/UF"
			+ "3nv3x9xp4oy2O8Afqkz7/aIbm60qZ798np9whAVukNmCvjZQrJJmuNj8vGDFdonZ"
			+ "mI7SYtXJLxxVrecAAwUC/35AeUOcUhoLKTGk2ZrZl98xu2Q3mdGrz/HvJkS/FLMw"
			+ "k6arOrzGa18MkC2T27TGLz0KbkRhHio9MrIpsGEQOa6y0I50REd58rrhFFIHOI/m"
			+ "nkcT3/VlbCf2tRQh7WgD9f4DAwLssmOjVC+dmWDXVLRopzxbBGOvodp/LZoSDb56"
			+ "gNJjDMJ1aXqWW9qTAg1CFjBq73J3oFpVzInXZ8+Q8inxv7bnWiHbiE8EGBECAA8F"
			+ "AkKqia4CGwwFCQAk6gAACgkQ4w0TkGUaiMzdqgCgl2jw5hfk/JsyjulQqe1Nps1q"
			+ "Lx0AoMdnFMZmTMLHn8scUW2j9XO312tmsAIAAA==");

//		private static readonly char[] sec10pass = "test".ToCharArray();

		private static readonly byte[] subKeyBindingKey = Base64.Decode(
			"mQGiBDWagYwRBAD7UcH4TAIp7tmUoHBNxVxCVz2ZrNo79M6fV63riOiH2uDxfIpr"
			+ "IrL0cM4ehEKoqlhngjDhX60eJrOw1nC5BpYZRnDnyDYT4wTWRguxObzGq9pqA1dM"
			+ "oPTJhkFZVIBgFY99/ULRqaUYIhFGgBtnwS70J8/L/PGVc3DmWRLMkTDjSQCg/5Nh"
			+ "MCjMK++MdYMcMl/ziaKRT6EEAOtw6PnU9afdohbpx9CK4UvCCEagfbnUtkSCQKSk"
			+ "6cUp6VsqyzY0pai/BwJ3h4apFMMMpVrtBAtchVgqo4xTr0Sve2j0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 "Pln4fXclkFE927HxfbWoO+60hkOLKh7x+8fC82b3x9vCETujEaxrscO2xS7/MYXP"
			+ "8t1ffriTDmhuIuQS2q4fLgeWdqrODrMhrD8Dq7e558gzp30ZCqpiS7EmKGczL7B8"
			+ "gXxbBCVSTxYMJheXt2xMXsuJAD8DBRg1moGU8gBo4j+O/10RAgWdAKCPhaFIXuC8"
			+ "/cdiNMxTDw9ug3De5QCfYXmDzRSFUu/nrCi8yz/l09wsnxo=");

//		private static readonly byte[] subKeyBindingCheckSum = Base64.Decode("3HU+");

		//
		// PGP8 with SHA1 checksum.
		//
		private static readonly byte[] rewrapKey = Base64.Decode(
			"lQOWBEUPOQgBCADdjPTtl8oOwqJFA5WU8p7oDK5KRWfmXeXUZr+ZJipemY5RSvAM"
			+ "rxqsM47LKYbmXOJznXCQ8+PPa+VxXAsI1CXFHIFqrXSwvB/DUmb4Ec9EuvNd18Zl"
			+ "hJAybzmV2KMkaUp9oG/DUvxZJqkpUddNfwqZu0KKKZWF5gwW5Oy05VCpaJxQVXFS"
			+ "whdbRfwEENJiNx4RB3OlWhIjY2p+TgZfgQjiGB9i15R+37sV7TqzBUZF4WWcnIRQ"
			+ "DnpUfxHgxQ0wO/h/aooyRHSpIx5i4oNpMYq9FNIyakEx/Bomdbs5hW9dFxhrE8Es"
			+ "UViAYITgTsyROxmgGatGG09dcmVDJVYF4i7JAAYpAAf/VnVyUDs8HrxYTOIt4rYY"
			+ "jIHToBsV0IiLpA8fEA7k078L1MwSwERVVe6oHVTjeR4A9OxE52Vroh2eOLnF3ftf"
			+ "6QThVVZr+gr5qeG3yvQ36N7PXNEVOlkyBzGmFQNe4oCA+NR2iqnAIspnekVmwJV6"
			+ "xVvPCjWw/A7ZArDARpfthspwNcJAp4SWfoa2eKzvUTznTyqFu2PSS5fwQZUgOB0P"
			+ "Y2FNaKeqV8vEZu4SUWwLOqXBQIZXiaLvdKNgwFvUe3kSHdCNsrVzW7SYxFwaEog2"
			+ "o6YLKPVPqjlGX1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rZ0YriVjxGMDrX1"
			+ "8esfw+iLchfEwXtBIRwS");

		private static readonly char[] rewrapPass = "voltage123".ToCharArray();

		private static readonly byte[] pubWithX509 = Base64.Decode(
			  "mQENBERabjABCACtmfyo6Nph9MQjv4nmCWjZrRYnhXbivomAdIwYkLZUj1bjqE+j"
			+ "uaLzjZV8xSI59odZvrmOiqlzOc4txitQ1OX7nRgbOJ7qku0dvwjtIn46+HQ+cAFn"
			+ "2mTi81RyXEpO2uiZXfsNTxUtMi+ZuFLufiMc2kdk27GZYWEuasdAPOaPJnA+wW6i"
			+ "ZHlt0NfXIGNz864gRwhD07fmBIr1dMFfATWxCbgMd/rH7Z/j4rvceHD2n9yrhPze"
			+ "YN7W4Nuhsr2w/Ft5Cm9xO7vXT/cpto45uxn8f7jERep6bnUwNOhH8G+6xLQgTLD0"
			+ "qFBGVSIneK3lobs6+xn6VaGN8W0tH3UOaxA1ABEBAAG0D0NOPXFhLWRlZXBzaWdo"
			+ "dIkFDgQQZAIFAQUCRFpuMAUDCWdU0gMF/3gCGwPELGQBAQQwggTkMIIDzKADAgEC"
			+ "AhBVUMV/M6rIiE+IzmnPheQWMA0GCSqGSIb3DQEBBQUAMG4xEzARBgoJkiaJk/Is"
			+ "ZAEZFgNjb20xEjAQBgoJkiaJk/IsZAEZFgJxYTEVMBMGCgmSJomT8ixkARkWBXRt"
			+ "czAxMRUwEwYKCZImiZPyLGQBGRYFV2ViZmUxFTATBgNVBAMTDHFhLWRlZXBzaWdo"
			+ "dDAeFw0wNjA1MDQyMTEyMTZaFw0xMTA1MDQyMTIwMDJaMG4xEzARBgoJkiaJk/Is"
			+ "ZAEZFgNjb20xEjAQBgoJkiaJk/IsZAEZFgJxYTEVMBMGCgmSJomT8ixkARkWBXRt"
			+ "czAxMRUwEwYKCZImiZPyLGQBGRYFV2ViZmUxFTATBgNVBAMTDHFhLWRlZXBzaWdo"
			+ "dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK2Z/Kjo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eAj"
			+ "fPQsyRAh0nm0glzFmJN6TdOZbj7hqGZjc4opQ6nZo8h/ULnaEwMIUW4gcSkZt0ww"
			+ "CuErl5NUrN3DpkREeCG/fVvQZ8ays3ibQ5ZCZnYBkLYq/i0r3NLW34WfYhjDY48J"
			+ "oQWtvFSAxvRfz2NGmqnrCHPQZxqlfdta97kDa4VQ0zSeBaC70gZkLmD1GJMxWoXW"
			+ "6tmEcgPY5SghInUf+L2u52V55MjyAFzVp7kTK2KY+p7qw35vzckrWkwu8AAAAAAA"
			+ "AQE=");

		[Test]
		public void PerformTest1()
		{
			PgpPublicKeyRingBundle pubRings = new PgpPublicKeyRingBundle(pub1);

			int count = 0;

			foreach (PgpPublicKeyRing pgpPub1 in pubRings.GetKeyRings())
			{
				count++;

				int keyCount = 0;
				byte[] bytes = pgpPub1.GetEncoded();

				PgpPublicKeyRing pgpPub2 = new PgpPublicKeyRing(bytes);

				foreach (PgpPublicKey pubKey in pgpPub2.GetPublicKeys())
				{
					keyCount++;

					foreach (PgpSignature sig in pubKey.GetSignatures())
					{
						if (sig == null)
							Fail("null signature found");
					}
				}

				if (keyCount != 2)
				{
					Fail("wrong number of public keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of public keyrings");
			}

			//
			// exact match
			//
			count = 0;
			foreach (PgpPublicKeyRing pgpPub3 in pubRings.GetKeyRings("test (Test key) <test@ubicall.com>"))
			{
				if (pgpPub3 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 1)
			{
				Fail("wrong number of public keyrings on exact match");
			}

			//
			// partial match 1 expected
			//
			count = 0;
			foreach (PgpPublicKeyRing pgpPub4 in pubRings.GetKeyRings("test", true))
			{
				if (pgpPub4 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 1)
			{
				Fail("wrong number of public keyrings on partial match 1");
			}

			//
			// partial match 0 expected
			//
			count = 0;
			foreach (PgpPublicKeyRing pgpPub5 in pubRings.GetKeyRings("XXX", true))
			{
				if (pgpPub5 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 0)
			{
				Fail("wrong number of public keyrings on partial match 0");
			}

			//
			// case-insensitive partial match
			//
			count = 0;
			foreach (PgpPublicKeyRing pgpPub6 in pubRings.GetKeyRings("TEST@ubicall.com", true, true))
			{
				if (pgpPub6 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 1)
			{
				Fail("wrong number of public keyrings on case-insensitive partial match");
			}

			PgpSecretKeyRingBundle secretRings = new PgpSecretKeyRingBundle(sec1);
			count = 0;

			foreach (PgpSecretKeyRing pgpSec1 in secretRings.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpSec1.GetEncoded();

				PgpSecretKeyRing pgpSec2 = new PgpSecretKeyRing(bytes);

				foreach (PgpSecretKey k in pgpSec2.GetSecretKeys())
				{
					keyCount++;
					PgpPublicKey pk = k.PublicKey;

					pk.GetSignatures();

					byte[] pkBytes = pk.GetEncoded();

					PgpPublicKeyRing pkR = new PgpPublicKeyRing(pkBytes);
				}

				if (keyCount != 2)
				{
					Fail("wrong number of secret keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings");
			}

			//
			// exact match
			//
			count = 0;
			foreach (PgpSecretKeyRing o1 in secretRings.GetKeyRings("test (Test key) <test@ubicall.com>"))
			{
				if (o1 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings on exact match");
			}

			//
			// partial match 1 expected
			//
			count = 0;
			foreach (PgpSecretKeyRing o2 in secretRings.GetKeyRings("test", true))
			{
				if (o2 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings on partial match 1");
			}

			//
			// exact match 0 expected
			//
			count = 0;
			foreach (PgpSecretKeyRing o3 in secretRings.GetKeyRings("test", false))
			{
				if (o3 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 0)
			{
				Fail("wrong number of secret keyrings on partial match 0");
			}

			//
			// case-insensitive partial match
			//
			count = 0;
			foreach (PgpSecretKeyRing o4 in secretRings.GetKeyRings("TEST@ubicall.com", true, true))
			{
				if (o4 == null)
					Fail("null keyring found");

				count++;
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings on case-insensitive partial match");
			}
		}

		[Test]
		public void PerformTest2()
		{
			PgpPublicKeyRingBundle pubRings = new PgpPublicKeyRingBundle(pub2);

			int count = 0;

			byte[] encRing = pubRings.GetEncoded();

			pubRings = new PgpPublicKeyRingBundle(encRing);

			foreach (PgpPublicKeyRing pgpPub1 in pubRings.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpPub1.GetEncoded();

				PgpPublicKeyRing pgpPub2 = new PgpPublicKeyRing(bytes);

				foreach (PgpPublicKey pk in pgpPub2.GetPublicKeys())
				{
					byte[] pkBytes = pk.GetEncoded();

					PgpPublicKeyRing pkR = new PgpPublicKeyRing(pkBytes);

					keyCount++;
				}

				if (keyCount != 2)
				{
					Fail("wrong number of public keys");
				}
			}

			if (count != 2)
			{
				Fail("wrong number of public keyrings");
			}

			PgpSecretKeyRingBundle secretRings2 = new PgpSecretKeyRingBundle(sec2);

			count = 0;


			encRing = secretRings2.GetEncoded();
			PgpSecretKeyRingBundle secretRings = new PgpSecretKeyRingBundle(encRing);

			foreach (PgpSecretKeyRing pgpSec1 in secretRings2.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpSec1.GetEncoded();

				PgpSecretKeyRing pgpSec2 = new PgpSecretKeyRing(bytes);

				foreach (PgpSecretKey k in pgpSec2.GetSecretKeys())
				{
					keyCount++;
					PgpPublicKey pk = k.PublicKey;

					if (pk.KeyId == -1413891222336124627L)
					{
						int sCount = 0;

						foreach (PgpSignature pgpSignature in pk.GetSignaturesOfType(PgpSignature.SubkeyBinding))
						{
							int type = pgpSignature.SignatureType;
							if (type != PgpSignature.SubkeyBinding)
							{
								Fail("failed to return correct signature type");
							}
							sCount++;
						}

						if (sCount != 1)
						{
							Fail("failed to find binding signature");
						}
					}

					pk.GetSignatures();

					if (k.KeyId == -4049084404703773049L
						|| k.KeyId == -1413891222336124627L)
					{
						k.ExtractPrivateKey(sec2pass1);
					}
					else if (k.KeyId == -6498553574938125416L
						|| k.KeyId == 59034765524361024L)
					{
						k.ExtractPrivateKey(sec2pass2);
					}
				}

				if (keyCount != 2)
				{
					Fail("wrong number of secret keys");
				}
			}

			if (count != 2)
			{
				Fail("wrong number of secret keyrings");
			}
		}

		[Test]
		public void PerformTest3()
		{
			PgpPublicKeyRingBundle pubRings = new PgpPublicKeyRingBundle(pub3);

			int count = 0;

			byte[] encRing = pubRings.GetEncoded();

			pubRings = new PgpPublicKeyRingBundle(encRing);

			foreach (PgpPublicKeyRing pgpPub1 in pubRings.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpPub1.GetEncoded();

				PgpPublicKeyRing pgpPub2 = new PgpPublicKeyRing(bytes);

				foreach (PgpPublicKey pubK in pgpPub2.GetPublicKeys())
				{
					keyCount++;
					pubK.GetSignatures();
				}

				if (keyCount != 2)
				{
					Fail("wrong number of public keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of public keyrings");
			}

			PgpSecretKeyRingBundle secretRings2 = new PgpSecretKeyRingBundle(sec3);

			count = 0;

			encRing = secretRings2.GetEncoded();

			PgpSecretKeyRingBundle secretRings = new PgpSecretKeyRingBundle(encRing);

			foreach (PgpSecretKeyRing pgpSec1 in secretRings2.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpSec1.GetEncoded();

				PgpSecretKeyRing pgpSec2 = new PgpSecretKeyRing(bytes);

				foreach (PgpSecretKey k in pgpSec2.GetSecretKeys())
				{
					keyCount++;
					k.ExtractPrivateKey(sec3pass1);
				}

				if (keyCount != 2)
				{
					Fail("wrong number of secret keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings");
			}
		}

		[Test]
		public void PerformTest4()
		{
			PgpSecretKeyRingBundle secretRings1 = new PgpSecretKeyRingBundle(sec4);
			int count = 0;


			byte[] encRing = secretRings1.GetEncoded();

			PgpSecretKeyRingBundle secretRings2 = new PgpSecretKeyRingBundle(encRing);

			foreach (PgpSecretKeyRing pgpSec1 in secretRings1.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpSec1.GetEncoded();

				PgpSecretKeyRing pgpSec2 = new PgpSecretKeyRing(bytes);

				foreach (PgpSecretKey k in pgpSec2.GetSecretKeys())
				{
					keyCount++;
					k.ExtractPrivateKey(sec3pass1);
				}

				if (keyCount != 2)
				{
					Fail("wrong number of secret keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings");
			}
		}

		[Test]
		public void PerformTest5()
		{
			PgpPublicKeyRingBundle pubRings = new PgpPublicKeyRingBundle(pub5);

			int count = 0;

			byte[] encRing = pubRings.GetEncoded();

			pubRings = new PgpPublicKeyRingBundle(encRing);

			foreach (PgpPublicKeyRing pgpPub1 in pubRings.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpPub1.GetEncoded();

				PgpPublicKeyRing pgpPub2 = new PgpPublicKeyRing(bytes);

				foreach (PgpPublicKey o in pgpPub2.GetPublicKeys())
				{
					if (o == null)
						Fail("null keyring found");

					keyCount++;
				}

				if (keyCount != 2)
				{
					Fail("wrong number of public keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of public keyrings");
			}

			PgpSecretKeyRingBundle secretRings1 = new PgpSecretKeyRingBundle(sec5);

			count = 0;

			encRing = secretRings1.GetEncoded();

			PgpSecretKeyRingBundle secretRings2 = new PgpSecretKeyRingBundle(encRing);

			foreach (PgpSecretKeyRing pgpSec1 in secretRings1.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpSec1.GetEncoded();

				PgpSecretKeyRing pgpSec2 = new PgpSecretKeyRing(bytes);

				foreach (PgpSecretKey k in pgpSec2.GetSecretKeys())
				{
					keyCount++;
					k.ExtractPrivateKey(sec5pass1);
				}

				if (keyCount != 2)
				{
					Fail("wrong number of secret keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings");
			}
		}

		[Test]
		public void PerformTest6()
		{
			PgpPublicKeyRingBundle pubRings = new PgpPublicKeyRingBundle(pub6);

			foreach (PgpPublicKeyRing pgpPub in pubRings.GetKeyRings())
			{
				foreach (PgpPublicKey k in pgpPub.GetPublicKeys())
				{
					if (k.KeyId == 0x5ce086b5b5a18ff4L)
					{
						int count = 0;

						foreach (PgpSignature sig in k.GetSignaturesOfType(PgpSignature.SubkeyRevocation))
						{
							if (sig == null)
								Fail("null signature found");

							count++;
						}

						if (count != 1)
						{
							Fail("wrong number of revocations in test6.");
						}
					}
				}
			}

			byte[] encRing = pubRings.GetEncoded();
		}

		[Test, Explicit]
		public void PerformTest7()
		{
			PgpPublicKeyRing pgpPub = new PgpPublicKeyRing(pub7);
			PgpPublicKey masterKey = null;

			foreach (PgpPublicKey k in pgpPub.GetPublicKeys())
			{
				if (k.IsMasterKey)
				{
					masterKey = k;
					continue;
				}

				int count = 0;
				PgpSignature sig = null;

				foreach (PgpSignature sigTemp in k.GetSignaturesOfType(PgpSignature.SubkeyRevocation))
				{
					sig = sigTemp;
					count++;
				}

				if (count != 1)
				{
					Fail("wrong number of revocations in test7.");
				}

				sig.InitVerify(masterKey);

				if (!sig.VerifyCertification(k))
				{
					Fail("failed to verify revocation certification");
				}
			}
		}

		[Test]
		public void PerformTest8()
		{
			PgpPublicKeyRingBundle pubRings = new PgpPublicKeyRingBundle(pub8);

			int count = 0;

			byte[] encRing = pubRings.GetEncoded();

			pubRings = new PgpPublicKeyRingBundle(encRing);

			foreach (PgpPublicKeyRing pgpPub1 in pubRings.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpPub1.GetEncoded();

				PgpPublicKeyRing pgpPub2 = new PgpPublicKeyRing(bytes);

				foreach (PgpPublicKey o in pgpPub2.GetPublicKeys())
				{
					if (o == null)
						Fail("null key found");

					keyCount++;
				}

				if (keyCount != 2)
				{
					Fail("wrong number of public keys");
				}
			}

			if (count != 2)
			{
				Fail("wrong number of public keyrings");
			}

			PgpSecretKeyRingBundle secretRings1 = new PgpSecretKeyRingBundle(sec8);

			count = 0;

			encRing = secretRings1.GetEncoded();

			PgpSecretKeyRingBundle secretRings2 = new PgpSecretKeyRingBundle(encRing);

			foreach (PgpSecretKeyRing pgpSec1 in secretRings1.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpSec1.GetEncoded();

				PgpSecretKeyRing pgpSec2 = new PgpSecretKeyRing(bytes);

				foreach (PgpSecretKey k in pgpSec2.GetSecretKeys())
				{
					keyCount++;
					k.ExtractPrivateKey(sec8pass);
				}

				if (keyCount != 2)
				{
					Fail("wrong number of secret keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings");
			}
		}

		[Test]
		public void PerformTest9()
		{
			PgpSecretKeyRingBundle secretRings1 = new PgpSecretKeyRingBundle(sec9);

			int count = 0;

			byte[] encRing = secretRings1.GetEncoded();

			PgpSecretKeyRingBundle secretRings2 = new PgpSecretKeyRingBundle(encRing);

			foreach (PgpSecretKeyRing pgpSec1 in secretRings1.GetKeyRings())
			{
				count++;

				int keyCount = 0;

				byte[] bytes = pgpSec1.GetEncoded();

				PgpSecretKeyRing pgpSec2 = new PgpSecretKeyRing(bytes);

				foreach (PgpSecretKey k in pgpSec2.GetSecretKeys())
				{
					keyCount++;

					PgpPrivateKey pKey = k.ExtractPrivateKey(sec9pass);
					if (keyCount == 1 && pKey != null)
					{
						Fail("primary secret key found, null expected");
					}
				}

				if (keyCount != 3)
				{
					Fail("wrong number of secret keys");
				}
			}

			if (count != 1)
			{
				Fail("wrong number of secret keyrings");
			}
		}

		[Test]
		public void PerformTest10()
		{
			PgpSecretKeyRing secretRing = new PgpSecretKeyRing(sec10);

			foreach (PgpSecretKey secretKey in secretRing.GetSecretKeys())
			{
				PgpPublicKey pubKey = secretKey.PublicKey;

				if (pubKey.ValidDays != 28)
				{
					Fail("days wrong on secret key ring");
				}

				if (pubKey.GetValidSeconds() != 28 * 24 * 60 * 60)
				{
					Fail("seconds wrong on secret key ring");
				}
			}

			PgpPublicKeyRing publicRing = new PgpPublicKeyRing(pub10);

			foreach (PgpPublicKey pubKey in publicRing.GetPublicKeys())
			{
				if (pubKey.ValidDays != 28)
				{
					Fail("days wrong on public key ring");
				}

				if (pubKey.GetValidSeconds() != 28 * 24 * 60 * 60)
				{
					Fail("seconds wrong on public key ring");
				}
			}
		}

		[Test]
		public void PerformTest11()
		{
			PgpPublicKeyRing pubRing = new PgpPublicKeyRing(subKeyBindingKey);

			foreach (PgpPublicKey key in pubRing.GetPublicKeys())
			{
				if (key.GetValidSeconds() != 0)
				{
					Fail("expiration time non-zero");
				}
			}
		}

		[Test]
		public void GenerateTest()
		{
			char[] passPhrase = "hello".ToCharArray();
			DsaParametersGenerator pGen = new DsaParametersGenerator();
			pGen.Init(512, 80, new SecureRandom());
			DsaParameters dsaParams = pGen.GenerateParameters();
			DsaKeyGenerationParameters dsaKgp = new DsaKeyGenerationParameters(new SecureRandom(), dsaParams);
			IAsymmetricCipherKeyPairGenerator dsaKpg = GeneratorUtilities.GetKeyPairGenerator("DSA");
			dsaKpg.Init(dsaKgp);


			//
			// this takes a while as the key generator has to Generate some DSA parameters
			// before it Generates the key.
			//
			AsymmetricCipherKeyPair dsaKp = dsaKpg.GenerateKeyPair();
			IAsymmetricCipherKeyPairGenerator elgKpg = GeneratorUtilities.GetKeyPairGenerator("ELGAMAL");

			BigInteger g = new BigInteger("153d5d6172adb43045b68ae8e1de1070b6137005686d29d3d73a7749199681ee5b212c9b96bfdcfa5b20cd5e3fd2044895d609cf9b410b7a0f12ca1cb9a428cc", 16);
			BigInteger p = new BigInteger("9494fec095f3b85ee286542b3836fc81a5dd0a0349b4c239dd38744d488cf8e31db8bcb7d33b41abb9e5a33cca9144b1cef332c94bf0573bf047a3aca98cdf3b", 16);

			ElGamalParameters elParams = new ElGamalParameters(p, g);
			ElGamalKeyGenerationParameters elKgp = new ElGamalKeyGenerationParameters(new SecureRandom(), elParams);
			elgKpg.Init(elKgp);

			//
			// this is quicker because we are using preGenerated parameters.
			//
			AsymmetricCipherKeyPair elgKp = elgKpg.GenerateKeyPair();
			PgpKeyPair dsaKeyPair = new PgpKeyPair(PublicKeyAlgorithmTag.Dsa, dsaKp, DateTime.UtcNow);
			PgpKeyPair elgKeyPair = new PgpKeyPair(PublicKeyAlgorithmTag.ElGamalEncrypt, elgKp, DateTime.UtcNow);

			PgpKeyRingGenerator keyRingGen = new PgpKeyRingGenerator(PgpSignature.PositiveCertification, dsaKeyPair,
				"test", SymmetricKeyAlgorithmTag.Aes256, passPhrase, null, null, new SecureRandom());

			keyRingGen.AddSubKey(elgKeyPair);

			PgpSecretKeyRing keyRing = keyRingGen.GenerateSecretKeyRing();

			keyRing.GetSecretKey().ExtractPrivateKey(passPhrase);

			PgpPublicKeyRing pubRing = keyRingGen.GeneratePublicKeyRing();

			PgpPublicKey vKey = null;
			PgpPublicKey sKey = null;

			foreach (PgpPublicKey pk in pubRing.GetPublicKeys())
			{
				if (pk.IsMasterKey)
				{
					vKey = pk;
				}
				else
				{
					sKey = pk;
				}
			}

			foreach (PgpSignature sig in sKey.GetSignatures())
			{
				if (sig.KeyId == vKey.KeyId
					&& sig.SignatureType == PgpSignature.SubkeyBinding)
				{
					sig.InitVerify(vKey);

					if (!sig.VerifyCertification(vKey, sKey))
					{
						Fail("failed to verify sub-key signature.");
					}
				}
			}
		}

		[Test]
		public void InsertMasterTest()
		{
			SecureRandom random = new SecureRandom();

			char[] passPhrase = "hello".ToCharArray();
			IAsymmetricCipherKeyPairGenerator rsaKpg = GeneratorUtilities.GetKeyPairGenerator("RSA");

			rsaKpg.Init(new KeyGenerationParameters(random, 512));

			//
			// this is quicker because we are using pregenerated parameters.
			//
			AsymmetricCipherKeyPair rsaKp = rsaKpg.GenerateKeyPair();
			PgpKeyPair rsaKeyPair1 = new PgpKeyPair(PublicKeyAlgorithmTag.RsaGeneral, rsaKp, DateTime.UtcNow);

			rsaKp = rsaKpg.GenerateKeyPair();
			PgpKeyPair rsaKeyPair2 = new PgpKeyPair(PublicKeyAlgorithmTag.RsaGeneral, rsaKp, DateTime.UtcNow);

			PgpKeyRingGenerator keyRingGen = new PgpKeyRingGenerator(PgpSignature.PositiveCertification,
				rsaKeyPair1, "test", SymmetricKeyAlgorithmTag.Aes256, passPhrase, null, null, random);
			PgpSecretKeyRing secRing1 = keyRingGen.GenerateSecretKeyRing();
			PgpPublicKeyRing pubRing1 = keyRingGen.GeneratePublicKeyRing();

			keyRingGen = new PgpKeyRingGenerator(PgpSignature.PositiveCertification,
				rsaKeyPair2, "test", SymmetricKeyAlgorithmTag.Aes256, passPhrase, null, null, random);
			PgpSecretKeyRing secRing2 = keyRingGen.GenerateSecretKeyRing();
			PgpPublicKeyRing pubRing2 = keyRingGen.GeneratePublicKeyRing();

			try
			{
				PgpPublicKeyRing.InsertPublicKey(pubRing1, pubRing2.GetPublicKey());
				Fail("adding second master key (public) should throw an ArgumentException");
			}
			catch (ArgumentException e)
			{
				if (!e.Message.Equals("cannot add a master key to a ring that already has one"))
				{
					Fail("wrong message in public test");
				}
			}

			try
			{
				PgpSecretKeyRing.InsertSecretKey(secRing1, secRing2.GetSecretKey());
				Fail("adding second master key (secret) should throw an ArgumentException");
			}
			catch (ArgumentException e)
			{
				if (!e.Message.Equals("cannot add a master key to a ring that already has one"))
				{
					Fail("wrong message in secret test");
				}
			}
		}

		[Test]
		public void GenerateSha1Test()
		{
			char[] passPhrase = "hello".ToCharArray();

			IAsymmetricCipherKeyPairGenerator dsaKpg = GeneratorUtilities.GetKeyPairGenerator("DSA");
			DsaParametersGenerator pGen = new DsaParametersGenerator();
			pGen.Init(512, 80, new SecureRandom());
			DsaParameters dsaParams = pGen.GenerateParameters();
			DsaKeyGenerationParameters kgp = new DsaKeyGenerationParameters(new SecureRandom(), dsaParams);
			dsaKpg.Init(kgp);

			//
			// this takes a while as the key generator has to generate some DSA params
			// before it generates the key.
			//
			AsymmetricCipherKeyPair dsaKp = dsaKpg.GenerateKeyPair();


			IAsymmetricCipherKeyPairGenerator elgKpg = GeneratorUtilities.GetKeyPairGenerator("ELGAMAL");

			BigInteger g = new BigInteger("153d5d6172adb43045b68ae8e1de1070b6137005686d29d3d73a7749199681ee5b212c9b96bfdcfa5b20cd5e3fd2044895d609cf9b410b7a0f12ca1cb9a428cc", 16);
			BigInteger p = new BigInteger("9494fec095f3b85ee286542b3836fc81a5dd0a0349b4c239dd38744d488cf8e31db8bcb7d33b41abb9e5a33cca9144b1cef332c94bf0573bf047a3aca98cdf3b", 16);

			ElGamalParameters elParams = new ElGamalParameters(p, g);
			ElGamalKeyGenerationParameters elKgp = new ElGamalKeyGenerationParameters(new SecureRandom(), elParams);
			elgKpg.Init(elKgp);

			//
			// this is quicker because we are using preGenerated parameters.
			//
			AsymmetricCipherKeyPair elgKp = elgKpg.GenerateKeyPair();


			PgpKeyPair dsaKeyPair = new PgpKeyPair(PublicKeyAlgorithmTag.Dsa, dsaKp, DateTime.UtcNow);
			PgpKeyPair elgKeyPair = new PgpKeyPair(PublicKeyAlgorithmTag.ElGamalEncrypt, elgKp, DateTime.UtcNow);

			PgpKeyRingGenerator keyRingGen = new PgpKeyRingGenerator(PgpSignature.PositiveCertification, dsaKeyPair,
				"test", SymmetricKeyAlgorithmTag.Aes256, passPhrase, true, null, null, new SecureRandom());

			keyRingGen.AddSubKey(elgKeyPair);

			PgpSecretKeyRing keyRing = keyRingGen.GenerateSecretKeyRing();

			keyRing.GetSecretKey().ExtractPrivateKey(passPhrase);

			PgpPublicKeyRing pubRing = keyRingGen.GeneratePublicKeyRing();

			PgpPublicKey vKey = null;
			PgpPublicKey sKey = null;

			foreach (PgpPublicKey pk in pubRing.GetPublicKeys())
			{
				if (pk.IsMasterKey)
				{
					vKey = pk;
				}
				else
				{
					sKey = pk;
				}
			}

			foreach (PgpSignature sig in sKey.GetSignatures())
			{
				if (sig.KeyId == vKey.KeyId
					&& sig.SignatureType == PgpSignature.SubkeyBinding)
				{
					sig.InitVerify(vKey);

					if (!sig.VerifyCertification(vKey, sKey))
					{
						Fail("failed to verify sub-key signature.");
					}
				}
			}
		}

		[Test]
		public void RewrapTest()
		{
			SecureRandom rand = new SecureRandom();

			// Read the secret key rings
			PgpSecretKeyRingBundle privRings = new PgpSecretKeyRingBundle(
				new MemoryStream(rewrapKey, false));

			foreach (PgpSecretKeyRing pgpPrivEnum in privRings.GetKeyRings())
			{
				foreach (PgpSecretKey pgpKeyEnum in pgpPrivEnum.GetSecretKeys())
				{
					// re-encrypt the key with an empty password
					PgpSecretKeyRing pgpPriv = PgpSecretKeyRing.RemoveSecretKey(pgpPrivEnum, pgpKeyEnum);
					PgpSecretKey pgpKey = PgpSecretKey.CopyWithNewPassword(
						pgpKeyEnum,
						rewrapPass,
						null,
						SymmetricKeyAlgorithmTag.Null,
						rand);
					pgpPriv = PgpSecretKeyRing.InsertSecretKey(pgpPriv, pgpKey);

					// this should succeed
					PgpPrivateKey privTmp = pgpKey.ExtractPrivateKey(null);
				}
			}
		}

		[Test]
		public void PublicKeyRingWithX509Test()
		{
			checkPublicKeyRingWithX509(pubWithX509);

			PgpPublicKeyRing pubRing = new PgpPublicKeyRing(pubWithX509);

			checkPublicKeyRingWithX509(pubRing.GetEncoded());
		}

		private void checkPublicKeyRingWithX509(
			byte[] keyRing)
		{
			PgpPublicKeyRing pubRing = new PgpPublicKeyRing(keyRing);
			IEnumerator en = pubRing.GetPublicKeys().GetEnumerator();

			if (en.MoveNext())
			{
				PgpPublicKey key = (PgpPublicKey) en.Current;

				IEnumerator sEn = key.GetSignatures().GetEnumerator();

				if (sEn.MoveNext())
				{
					PgpSignature sig = (PgpSignature) sEn.Current;
					if (sig.KeyAlgorithm != PublicKeyAlgorithmTag.Experimental_1)
					{
						Fail("experimental signature not found");
					}
					if (!AreEqual(sig.GetSignature(), Hex.Decode("000101")))
					{
						Fail("experimental encoding check failed");
					}
				}
				else
				{
					Fail("no signature found");
				}
			}
			else
			{
				Fail("no key found");
			}
		}

		public override void PerformTest()
		{
			PerformTest1();
			PerformTest2();
			PerformTest3();
			PerformTest4();
			PerformTest5();
			PerformTest6();

			// NB: This was commented out in the original Java source
			//PerformTest7();

			PerformTest8();
			PerformTest9();
			PerformTest10();
			PerformTest11();

			GenerateTest();
			GenerateSha1Test();
			RewrapTest();
			PublicKeyRingWithX509Test();
			InsertMasterTest();
		}

		public override string Name
		{
			get { return "PgpKeyRingTest"; }
		}

		public static void Main(
			string[] args)
		{
			RunTest(new PgpKeyRingTest());
		}
	}
}
