Changeset 159164 in webkit


Ignore:
Timestamp:
Nov 12, 2013 5:13:52 PM (10 years ago)
Author:
ap@apple.com
Message:

Implement key generation and JWK import for RSASSA-PKCS1-v1_5
https://bugs.webkit.org/show_bug.cgi?id=124236

Source/WebCore:

Build fix.

  • crypto/mac/CryptoKeyRSAMac.cpp: (WebCore::CryptoKeyRSA::buildAlgorithmDescription):

ifdef out some code on Mountain Lion. Bug 124249 track fixing this.

LayoutTests:

  • platform/mac/TestExpectations: Update expectations for Mountain Lion.

I'll investigate this later.

  • crypto/subtle/rsassa-pkcs1-v1_5-import-jwk.html: Quickly fail is promise is rejected.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r159160 r159164  
     12013-11-12  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Implement key generation and JWK import for RSASSA-PKCS1-v1_5
     4        https://bugs.webkit.org/show_bug.cgi?id=124236
     5
     6        * platform/mac/TestExpectations: Update expectations for Mountain Lion.
     7        I'll investigate this later.
     8
     9        * crypto/subtle/rsassa-pkcs1-v1_5-import-jwk.html: Quickly fail is promise is rejected.
     10
    1112013-11-12  Alexey Proskuryakov  <ap@apple.com>
    212
  • trunk/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-import-jwk.html

    r159160 r159164  
    6161    shouldBe("privateKey.algorithm.hash.name", "'sha-256'");
    6262    finishJSTest();
     63}, function(result) {
     64    debug("FAIL");
     65    finishJSTest();
    6366});
    6467</script>
  • trunk/LayoutTests/platform/mac/TestExpectations

    r159135 r159164  
    12981298webkit.org/b/123522 [ Mavericks ] media/track/track-in-band-legacy-api.html [ Pass Failure ]
    12991299
     1300# These tests are failing for multiple reasons, one of these being <webkit.org/b/124249>.
     1301[ MountainLion ] crypto/subtle/rsassa-pkcs1-v1_5-generate-key.html [ Skip ]
     1302[ MountainLion ] crypto/subtle/rsassa-pkcs1-v1_5-import-jwk.html [ Failure ]
     1303
    13001304# Audio and video tracks aren't supported on mac
    13011305media/track/audio
  • trunk/Source/WebCore/ChangeLog

    r159162 r159164  
     12013-11-12  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Implement key generation and JWK import for RSASSA-PKCS1-v1_5
     4        https://bugs.webkit.org/show_bug.cgi?id=124236
     5
     6        Build fix.
     7
     8        * crypto/mac/CryptoKeyRSAMac.cpp: (WebCore::CryptoKeyRSA::buildAlgorithmDescription):
     9        ifdef out some code on Mountain Lion. Bug 124249 track fixing this.
     10
    1112013-11-12  Joseph Pecoraro  <pecoraro@apple.com>
    212
  • trunk/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp

    r159160 r159164  
    111111    ASSERT(CCRSAGetKeyType(m_platformKey) == ccRSAKeyPublic || CCRSAGetKeyType(m_platformKey) == ccRSAKeyPrivate);
    112112    bool platformKeyIsPublic = CCRSAGetKeyType(m_platformKey) == ccRSAKeyPublic;
     113#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
    113114    CCRSACryptorRef publicKey = platformKeyIsPublic ? m_platformKey : CCRSACryptorGetPublicKeyFromPrivateKey(m_platformKey);
     115#else
     116    if (!platformKeyIsPublic)
     117        return;
     118    CCRSACryptorRef publicKey = m_platformKey;
     119#endif
    114120
    115121    size_t modulusLength;
Note: See TracChangeset for help on using the changeset viewer.