2.5.2.1 Conversion from RSA Public Key to publicKeyToken

Convert the RSA public key ([RFC3447] section 3.1) into the CryptoAPI PUBLICKEYBLOB format described in section 2.5.2.2.

  1. Construct the PublicKeyBlob using the result from step 1 in accordance with section 2.5.2.3.

  2. Compute the SHA-1 hash ([FIPS180-4] section 6.1) of the PublicKeyBlob.

  3. Take the last 8 bytes from the result of step 3, then reverse the order of those bytes.

  4. Encode the result of step 4 into the hexBinary ([W3C-XSD] section 3.2.15) representation.