PHP function to convert a public key to a Microsoft CAPI Public Key BLOB