blob: d4721c0c3844d70f0ace9fd92d037c11f247be5d [file] [log] [blame]
/**
*
* Copyright (c) 2023 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import "MCCommissionableData.h"
#import <Foundation/Foundation.h>
@implementation MCCommissionableData
- (instancetype)initWithPasscode:(uint32_t)passcode
discriminator:(uint16_t)discriminator
spake2pIterationCount:(uint32_t)spake2pIterationCount
spake2pVerifier:(NSData * _Nullable)spake2pVerifier
spake2pSalt:(NSData * _Nullable)spake2pSalt
{
if (self = [super init]) {
_passcode = passcode;
_discriminator = discriminator;
_spake2pIterationCount = spake2pIterationCount;
_spake2pVerifier = spake2pVerifier;
_spake2pVerifier = spake2pVerifier;
}
return self;
}
@end