PublicKeyInfo.cs 793 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // PublicKeyInfo.cs - System.Security.Cryptography.Pkcs.PublicKeyInfo
  3. //
  4. // Author:
  5. // Sebastien Pouliot ([email protected])
  6. //
  7. // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
  8. //
  9. #if NET_1_2
  10. using System;
  11. namespace System.Security.Cryptography.Pkcs {
  12. public class PublicKeyInfo {
  13. private AlgorithmIdentifier _algorithm;
  14. private byte[] _key;
  15. // constructors
  16. // only used in KeyAgreeRecipientInfo.OriginatorIdentifierOrKey.Value
  17. // when SubjectIdentifierOrKeyType == PublicKeyInfo
  18. internal PublicKeyInfo (AlgorithmIdentifier algorithm, byte[] key)
  19. {
  20. _algorithm = algorithm;
  21. _key = key;
  22. }
  23. // properties
  24. public AlgorithmIdentifier Algorithm {
  25. get { return _algorithm; }
  26. }
  27. public byte[] KeyValue {
  28. get { return _key; }
  29. }
  30. }
  31. }
  32. #endif