Skip to content

Instantly share code, notes, and snippets.

View vcsjones's full-sized avatar
㊙️

Kevin Jones vcsjones

㊙️
View GitHub Profile
Method Job Toolchain DataSize NumberOfOperations Mode Algorithm Mean Error StdDev Ratio Gen0 Allocated Alloc Ratio
Encrypt_Cbc_ToSpan Job-VPVYBA branch 16 1 PKCS7 Aes 606.2 ns 4.99 ns 4.67 ns 1.05 0.0658 416 B 1.08
Encrypt_Cbc_ToSpan Job-QKOWKL main 16 1 PKCS7 Aes 579.0 ns 2.76 ns 2.58 ns 1.00 0.0610 384 B 1.00
Decrypt_Cbc_ToSpan Job-VPVYBA branch 16 1
namespace System.Security.Cryptography {
public abstract class AsymmetricAlgorithm : IDisposable {
+ public virtual void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes);
+ public virtual void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password);
+ public virtual void ImportFromPem(ReadOnlySpan<char> input);
}
public abstract class DSA : AsymmetricAlgorithm {
+ public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes);
+ public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password);
diff --git a/eng/native/configureplatform.cmake b/eng/native/configureplatform.cmake
index 8c4ddff8d23..e0819c5d933 100644
--- a/eng/native/configureplatform.cmake
+++ b/eng/native/configureplatform.cmake
@@ -381,7 +381,7 @@ if(NOT CLR_CMAKE_TARGET_BROWSER)
# but since we know that PIE is supported, we can safely skip this redundant check).
#
# The default linker on Solaris also does not support PIE.
- if(NOT CLR_CMAKE_TARGET_ANDROID AND NOT CLR_CMAKE_TARGET_SUNOS)
+ if(NOT CLR_CMAKE_TARGET_ANDROID AND NOT CLR_CMAKE_TARGET_SUNOS AND NOT CLR_CMAKE_TARGET_OSX)

Folks,

As described in my last email, the board has selected a nomination committee and [opened up nominations][1]. The nomination committee is:

  • Julie Lerman
  • Jessica White
  • Steve (Ardalis) Smith
  • Iris Classon
  • Rabeb Othmani

Keybase proof

I hereby claim:

  • I am vcsjones on github.
  • I am kjonesolo (https://keybase.io/kjonesolo) on keybase.
  • I have a public key whose fingerprint is E339 5431 B045 B2CA 6473 744E 873A C854 61B7 F81F

To claim this, I am signing this object:

TLD $
.movie 306.00
.sucks 282.00
.hiv 254.00
.casino 141.00
.creditcard 141.00
.gold 101.00
.reise 101.00
.adult 100.00
[Serializable]
public class LolSerialization : System.Runtime.Serialization.ISerializable
{
public int Test { get; }
public LolSerialization()
{
Test = 1;
}
protected LolSerialization(SerializationInfo info, StreamingContext context)
@vcsjones
vcsjones / pem.cs
Last active October 17, 2018 00:16
static void Main(string[] args)
{
var cert = new X509Certificate2("foo.cer"); //Or however you load the certificate.
var octets = cert.Export(X509ContentType.Cert);
var formatted = Convert.ToBase64String(octets);
var builder = new StringBuilder();
builder.AppendLine("-----BEGIN CERTIFICATE-----");
var i = 0;
while(i < formatted.Length)
{
static function OnBoot() {
var surveyType = FiddlerApplication.Assembly.GetType("Fiddler.Surveys.FiddlerSurveySettings", true);
var surveySettings = System.Activator.CreateInstance(surveyType, true);
var remindDateProp = surveyType.GetProperty("RemindDate", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);
var surveySave = surveyType.GetMethod("Save", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);
remindDateProp.SetValue(surveySettings, System.DateTime.Now.AddDays(7));
surveySave.Invoke(surveySettings, null);
}
require 'openssl'
encrypt_me = "what a fine day for coding" # Data to encrypt
@aes_key = (1..16).to_a.pack("C*") # Dummy bad key
@aes_iv = (17..32).to_a.pack("C*") # Dummy bad initialization vector
cipher = OpenSSL::Cipher::AES.new(128, :CBC)
cipher.encrypt # Put it in "encrypt" mode, doesn't actually encrypt
cipher.key = @aes_key
cipher.iv = @aes_iv
ciphertext = cipher.update(encrypt_me) + cipher.final