예제 #1
0
 internal override string RecordDataToString()
 {
     return(Precedence
            + " " + (byte)GatewayType
            + " " + (byte)Algorithm
            + " " + ((GatewayType == IpSecGatewayType.None) ? "." : Gateway)
            + " " + BaseEncodingHelper.ToBase64String(PublicKey));
 }
예제 #2
0
 internal override string RecordDataToString()
 {
     return((byte)HashAlgorithm
            + " " + Flags
            + " " + Iterations
            + " " + ((Salt.Length == 0) ? "-" : BaseEncodingHelper.ToBase16String(Salt))
            + " " + BaseEncodingHelper.ToBase32HexString(NextHashedOwnerName)
            + " " + String.Join(" ", Types.ConvertAll <String>(ToString).ToArray()));
 }
예제 #3
0
        protected override string PublicKeyToString()
        {
            byte[] publicKey       = new byte[MaximumPublicKeyLength];
            int    currentPosition = 0;

            EncodePublicKey(publicKey, 0, ref currentPosition, null);

            return(BaseEncodingHelper.ToBase64String(publicKey));
        }
예제 #4
0
 internal override string RecordDataToString()
 {
     return(TSigAlgorithmHelper.GetDomainName(Algorithm)
            + " " + (int)(Inception - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds
            + " " + (int)(Expiration - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds
            + " " + (ushort)Mode
            + " " + (ushort)Error
            + " " + BaseEncodingHelper.ToBase64String(Key)
            + " " + BaseEncodingHelper.ToBase64String(OtherData));
 }
예제 #5
0
 internal override string RecordDataToString()
 {
     return(TSigAlgorithmHelper.GetDomainName(Algorithm)
            + " " + (int)(TimeSigned - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds
            + " " + (ushort)Fudge.TotalSeconds
            + " " + Mac.Length
            + " " + BaseEncodingHelper.ToBase64String(Mac)
            + " " + OriginalID
            + " " + (ushort)Error
            + " " + OtherData.Length
            + " " + BaseEncodingHelper.ToBase64String(OtherData));
 }
예제 #6
0
 internal override string RecordDataToString()
 {
     return(ToString(TypeCovered)
            + " " + (byte)Algorithm
            + " " + Labels
            + " " + OriginalTimeToLive
            + " " + SignatureExpiration.ToString("yyyyMMddHHmmss")
            + " " + SignatureInception.ToString("yyyyMMddHHmmss")
            + " " + KeyTag
            + " " + SignersName
            + " " + BaseEncodingHelper.ToBase64String(Signature));
 }
예제 #7
0
 protected override string PublicKeyToString()
 {
     return(BaseEncodingHelper.ToBase64String(PublicKey));
 }
예제 #8
0
 internal override string RecordDataToString()
 {
     return(@"\# " + ((RecordData == null) ? "0" : RecordData.Length + " " + BaseEncodingHelper.ToBase16String(RecordData)));
 }
예제 #9
0
 internal override string RecordDataToString()
 {
     return((byte)Algorithm
            + " " + (byte)FingerPrintType
            + " " + BaseEncodingHelper.ToBase16String(FingerPrint));
 }
예제 #10
0
 internal override string RecordDataToString()
 {
     return("0x" + BaseEncodingHelper.ToBase16String(RecordData));
 }